PDA

View Full Version : IIS Site Root in Shared Folder


fruvos
Sep 11, 2006, 07:16 PM
I'm running Parallels on my MacBook, and have been delighted with its performance. However, there is one thing which I would like to get working if possible.

I'm a web developer, and from time to time I have to develop using IIS and ASP. I've configured IIS on my XP installation within Parallels and under the default values it works great. However, since I develop in Dreamweaver within the OSX environment and test using http://192.168.0.6/sitename on IIS of my Parallels windows machine (where 192.168.0.6 is its bridges IP and sitename is a subfolder of the default c:\inetpub\wwwroot, it would be really benificial if I could configure the home directory of IIS to be \\.psf\webroot where webroot is a shared folder configured in Parallels to point to a folder on my OSX filseystem.

Whilst I can browse to the files in question on the shared directory, when I configure the home directory of IIS it doesn't work, throwing a Bad Request error.

Is there any way I can do this? Why is IIS not liking the home directory being configured as a Parallels shared directory? If I can get this working then I can simply save my files in dreamweaver and immediately preview them in my browser using IIS on the Parallels machine.

Any suggestions / thoughts will be greatly appreciated.

Thanks in advance.

David Corrales
Sep 11, 2006, 07:49 PM
Why don't you try mounting that folder as a static drive letter? For example, mount it to Z: then you can easily access it as if it was a regular folder :)

fruvos
Sep 11, 2006, 08:14 PM
Why don't you try mounting that folder as a static drive letter? For example, mount it to Z: then you can easily access it as if it was a regular folder :)

I've tried this already, having mapped the shared drive to w:\

However, when I try to open index.htm, whish is in w:\ I get a 404 error. Dunno why, so opinions duly appreciated.

David Corrales
Sep 11, 2006, 08:26 PM
Why don't you set up a regular folder inside your guest computer as a shared one. Then just access the files via the regular ubuntu Network Servers. Kinda doing the same thing but backwards... IIS might like that better.

tgrogan
Sep 11, 2006, 08:46 PM
Why don't you post this question to the mac forum where it should be posted? This forum is for posting solutions - not for posting problems!

David Corrales
Sep 11, 2006, 08:54 PM
Why don't you post this question to the mac forum where it should be posted? This forum is for posting solutions - not for posting problems!
Well I guess that's what moderators are for... I rather just help with what I can :rolleyes:

tgrogan
Sep 11, 2006, 09:02 PM
WADR - No problems with your efforts, but there have been some really useful posts to this forum that have helped me and it is difficult separating the inappropriate posts from the useful ones when people are too lazy to post to the proper forum. The description is very plain but too many people just post first without thinking how they effect the usefullness of the forum to other people.

Parallels is a very small company, sometimes they need help with moderating too...

David Corrales
Sep 11, 2006, 09:11 PM
WADR - No problems with your efforts, but there have been some really useful posts to this forum that have helped me and it is difficult separating the inappropriate posts from the useful ones when people are too lazy to post to the proper forum. The description is very plain but too many people just post first without thinking how they effect the usefullness of the forum to other people.

Parallels is a very small company, sometimes they need help with moderating too...

Maybe they could assign some voluntary moderators with limited access. Maybe only move posts or remove ofensive language.

jrotondo
Jul 31, 2007, 04:49 PM
Y'know, for folks using the search function to find a solution to their problem, they don't really care if the thread is posted in the "right" forum. All I know is that your comment killed a thread that I was also interested in an answer to.

Please leave the administration of the forum to the Parallels moderators. You're detracting, not contributing to the community.

reuben
Sep 20, 2007, 07:55 PM
I too am having difficulties getting this to work. No matter if I mount the shared site root folder (which resides on my host Mac) as \\.psf\share or as a mapped network drive or even thru \\mymac\sharename (an smb share).. i can see the folders in the IIS admin for the website, but any HTTP request to the site results in a 401.1 "Unauthorized: Logon Failed" error..

would love to figure this out..

reuben
Sep 20, 2007, 08:02 PM
oh, i should mention that if I mount the webroot as a drive, if I click the "Browse" button in the "Home Directory" tab of the IIS default website config and navigate to the mapped drive, the "OK" button is greyed out no matter what (including all subdirs therein).

blarg

lgriffin
Nov 29, 2007, 07:57 AM
Hi for what it's worth i have a solution that has fixed this issue for me. I hope this helps someone because this was very frustrating for me.Let's say all your websites are stored in 'clients' in your os x home folder, and you want to share your clients folder with parallels:

Problem:
If you select the share Parallels created for you, e.g. //.psf/clients and use that as your shared folder in IIS, you'll get all kinds of permissions issues.


1.) Turn on bridged networking.
2.) Goto os x's preferences and turn on file sharing, select that clients folder and turn on SMB sharing for that folder
3.) Go back to parallels, My Computer, My Network Places
4.) You'll see the shares you created, navigate to that clients folder and copy the address
5.) Paste that address into IIS
6.) Go back to parallels. Hit the start button / run / type 'cmd' to bring up a command prompt. When it comes up type 'ipconfig'. Note the IP address.
7.) Back to os x, safari: type in that address. That should work!


Make sure the account you 'connect as' is matched up to the account in os x's preferences sharing.

alargent
Dec 4, 2007, 01:44 AM
lgriffin,

Can you tell me what the address looks like that you're pasting into IIS? When I look in "My Network Places", I see my shared folder from OS X called something like "\\Mac12345asdfasdf\mysharedfolder\", but using that doesn't seem to work for me.

I've also tried the full IP address of my Mac, like "\\192.168.1.1\mysharedfolder", but that's not working either.

Thanks much.

lgriffin
Dec 10, 2007, 10:14 AM
Hi just a follow up post.

Yes the method i posted above works, however the problem is that IIS or Samba will cache the .NET pages and let's say you make a change in dreamweaver in Leopard, then refresh firefox on the guest OS, you won't see that change. I tried everything six ways to sunday to get around this problem. If anyone has a concrete answer i will pay you, lol, because i don't think there is one. Currently i'm storing my files on the guest os.

rafudu
Aug 2, 2008, 09:38 AM
Hi!
I was having this issue, and I solved just by running chmod -R 777 <sitefolder> and pointing IIS to the shared folder.

Then, map the IP in /etc/hosts and you'll be fine.

Good luck!

lgriffin
Aug 2, 2008, 02:09 PM
Can u post detailed instructions please!

Upton O'Good
Aug 2, 2008, 09:02 PM
Why not set up your asp application directory as a WebDav directory? It should be under Web Service Extensions in IIS Manager. I think you can open a WebDav directory in Dreamweaver. You can also mount them in the Finder.

Upton O'Good
Aug 2, 2008, 09:05 PM
Why don't you post this question to the mac forum where it should be posted? This forum is for posting solutions - not for posting problems!

Why would Mac users be the right people to ask about IIS and Windows permissions???

Friggin' listmom wannabes.

lgriffin
Aug 3, 2008, 08:08 AM
I believe that is only in IIS6? However we are talking about IIS 5.1 on XP here.

rafudu
Aug 3, 2008, 08:17 AM
Now i'm getting:
"HTTP 401.3 - Access denied by ACL on resource
Internet Information Services"

The weird is that i can acces the site once. If I click refresh, I get that error. It only happens with .asp files, .html load ok. I've already chmod 777 my mac folder

Thanks!

John@Parallels
Aug 3, 2008, 08:51 AM
IUSR_machine name should be in that folder ACL with at least r-x permissions.

Also filemon and regmon from sysinternals.com are good friends
from Mac OS fs_usage is good friend to trace permissions

rafudu
Aug 3, 2008, 08:56 AM
How? Can you explain it to me?

Thanks!

John@Parallels
Aug 3, 2008, 10:38 AM
Filemon shows permissions on file system (Access denied etc)
Regmon to registry hives (Access denied etc)
fs_usage example
sudo fs_usage -e -f filesys|grep -v CACHE_HIT|grep -v grep|grep -v mds| grep -i parallels
shows example how to trace Parallels Desktop application and files accessed with comment

You will see access denied permissions so you need to assign permissions to files,folders , registry hives

rafudu
Aug 4, 2008, 07:14 AM
Ok. I executed this command and accessed the site via IE. In terminal, the following appears:

0.000176 Parallels
08:10:11 getattrlist cations/Parallels/Parallels Desktop.app/Contents/Resources/Parallels-Win.icns 0.000022 Parallels
08:10:11 getattrlist cations/Parallels/Parallels Desktop.app/Contents/Resources/Parallels-Win.icns 0.000020 Parallels
08:10:11 getattrlist cations/Parallels/Parallels Desktop.app/Contents/Resources/Parallels-Win.icns 0.000016 Parallels
08:10:11 open cations/Parallels/Parallels Desktop.app/Contents/Resources/Parallels-Win.icns 0.000027 Parallels
08:10:11 open cations/Parallels/Parallels Desktop.app/Contents/Resources/Parallels-Win.icns 0.000021 Parallels


and:

0.000084 Parallels
08:11:40 statfs Windows XP 1/winxp.hdd/winxp.hdd.0.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds 0.000038 Parallels



How do I assign those permissions?

Thanks!

John@Parallels
Aug 5, 2008, 05:08 AM
I provided example for Parallels Desktop Applications, but you need to trace shared folders, also try first filemon

rafudu
Aug 5, 2008, 03:02 PM
Apparently, Windows gets lost dealing with the OS X filesystem and stuff. The trick is to copy your site files to windows, share that folder (give everyone full access) , and edit from OS X. That's the best solution i've found so far.

Upton O'Good
Aug 11, 2008, 03:11 PM
I believe that is only in IIS6? However we are talking about IIS 5.1 on XP here.

It was in IIS 5.0. I don't know about 5.1 specifically, but it would seem odd if they removed it.