Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 permission problem

Author  Topic 

-Dman100-
Posting Yak Master

210 Posts

Posted - 2004-10-19 : 19:08:48
I apologize if this post is off-topic. I haven't had any luck anywhere else. I'm attempting to create a new asp.net web application project in Visual Studio.Net. I keep getting the error message: The UNC Share \\myservername\wwwroot$\myvirtualdirectory does not exist or you do not have access.

Here is the scenario. I created a site directory in the wwwroot folder under IIS on my testing server. In IIS I created a virtual directory pointing to that folder. I open Visual Studio.Net which is on a seperate PC (my workstation) and try to create the new asp.net web application project and I get the above mentioned error.

I know the directory is there. I have permissions set. I can access the directory through MyNetworkPlaces.

Can anyone offer any help? The only thing I could think of is that Visual Studio.Net will not create a project over a UNC share? I thought I could do that. So, I'm lost.

Any help is greatly appreciated. Thank you.
-D-

MichaelP
Jedi Yak

2489 Posts

Posted - 2004-10-19 : 19:16:42
Delete that virtual directory in IIS, then delete the folder.
Open VS.net and create a new web project. It should create the project on your local machine in your local InetPub dir.

Once you have the site built with all the pages etc (or even just one page to test with) click on the Project in the solution explorer and then click the Copy Project button at the top of the solution explorer. You could also use the menu's at the top and select Project--> Copy Project. Once you do this, it will ask you for a destination URL. Enter in the destination like this:
http://mytargetserver/myprojectname
Select Frontpage as the Web Access Method
Select Only files needed to run this application if you are deploying to a production webserver or to anyplace where you don't want to deploy the uncompiled source.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

-Dman100-
Posting Yak Master

210 Posts

Posted - 2004-10-19 : 20:22:50
Thanks for the help Michael. I take it that I need IIS installed locally in order to develop asp.net web apps in Visual Studio.Net. I cannot use IIS running on a server connected over a small LAN? Thanks again.
-D-
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2004-10-19 : 20:28:22
D, I think there is a way to do what you are trying, but I've never done it that way. I'm pretty sure that you need IIS local to make it work. Besides, getting all of the debugging features from the IDE is going to be harder when working with a remote machine.

Get Windows 2000 Pro or higher or Windows XP Pro and get IIS installed locally. After that, follow the instructions I gave you and you'll be set! If you don't have IIS installed when you installed VS.net, then you might need to rerun setup to get ASP.net installed into IIS. There's a command line way to do it as well if you search around on Google. I think its like aspnet_iis.exe -i or something.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page
   

- Advertisement -