My boss wanted me to setup my test visual studio environment that it is in production on an iis 7 server. Due to that fact,
I did the following since this occurs in production:
1. I removed the default web site and application pools in iis7.
2. I created a new application pool and website in IIS7.
3. I removed the C:\inetpub\wwwroot\directory since they were are part of the stock install.
Now when I am in the visual studio project folder and I want to specify the 'Use local IIS Web server, I get getting the message that it can not create the virtual directory.
I want to point to the physical file that looks like C:\Support, however I do not know how to translate this to a url. Thus can you tell me how to translate this to a url address?
Also what I removed caused visual studio not to recognize how to sworkup with IIS, can you tell me how to restore the values back to the way the default visual studio was setup?
Wendy, those instructions show how to set up your project using your local IIS web server, like you having IIS on your local host. I would presume your boss wouldn't have you actually developing code on the production web server, generally very bad idea.
To test your code on the production web server, you would create a site with a different port number in IIS. From there, you would copy/publish your files into that folder on the prod web server. Then do your testing.
The whole thing is not to use the production server. I am going to using my visual studio.net 2010 ide to connect to iis 7 that is on my workstation.
Also i am going to deploy the web application the same way that the old contract shop did. I am using the setup and deployment project that is in visual studio 2010.
I will then deploy the application to my workstation. I will then open visual studio 2010 and attached to the worker process called w3wp.exe.
**Note once I know how to deploy the web app using the setup and deployment project, I will ask management to allow me to change the deployment to a current method.
Ok, so you do have IIS installed, good. Now, did you enable aspx webpages in the IIS? That can usually cause grief since asp.net pages are not served by default. You have to turn them on.
When trying to use local iis web server, remember it thinks you are specifying the default web site. Choose custom and then put in the URL including the port number, if not port 80. Also, make sure that you list Localhost as a hostname in IIS for that site
or it won't find it.
wendy elizab...
Member
321 Points
390 Posts
testing with vs2010 first time
May 04, 2012 02:22 PM|LINK
I am new to testing a 2010 web application using visual studio.net 2010. I want to test the C# web form application using IIS.
I found the following link that says what to use:
http://ukchill.com/technology/setting-up-a-web-project-environment-in-visual-studio-2010-to-allow-debugging-using-both-iis7-and-the-development-web-server/
I am still having problems.
My boss wanted me to setup my test visual studio environment that it is in production on an iis 7 server. Due to that fact,
I did the following since this occurs in production:
1. I removed the default web site and application pools in iis7.
2. I created a new application pool and website in IIS7.
3. I removed the C:\inetpub\wwwroot\directory since they were are part of the stock install.
Now when I am in the visual studio project folder and I want to specify the 'Use local IIS Web server, I get getting the message that it can not create the virtual directory.
I want to point to the physical file that looks like C:\Support, however I do not know how to translate this to a url. Thus can you tell me how to translate this to a url address?
Also what I removed caused visual studio not to recognize how to sworkup with IIS, can you tell me how to restore the values back to the way the default visual studio was setup?
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: testing with vs2010 first time
May 04, 2012 02:36 PM|LINK
Wendy, those instructions show how to set up your project using your local IIS web server, like you having IIS on your local host. I would presume your boss wouldn't have you actually developing code on the production web server, generally very bad idea. To test your code on the production web server, you would create a site with a different port number in IIS. From there, you would copy/publish your files into that folder on the prod web server. Then do your testing.
wendy elizab...
Member
321 Points
390 Posts
Re: testing with vs2010 first time
May 04, 2012 03:42 PM|LINK
The whole thing is not to use the production server. I am going to using my visual studio.net 2010 ide to connect to iis 7 that is on my workstation.
Also i am going to deploy the web application the same way that the old contract shop did. I am using the setup and deployment project that is in visual studio 2010.
I will then deploy the application to my workstation. I will then open visual studio 2010 and attached to the worker process called w3wp.exe.
**Note once I know how to deploy the web app using the setup and deployment project, I will ask management to allow me to change the deployment to a current method.
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: testing with vs2010 first time
May 04, 2012 03:50 PM|LINK
Ok, so you do have IIS installed, good. Now, did you enable aspx webpages in the IIS? That can usually cause grief since asp.net pages are not served by default. You have to turn them on.
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: testing with vs2010 first time
May 04, 2012 03:52 PM|LINK
When trying to use local iis web server, remember it thinks you are specifying the default web site. Choose custom and then put in the URL including the port number, if not port 80. Also, make sure that you list Localhost as a hostname in IIS for that site or it won't find it.
wendy elizab...
Member
321 Points
390 Posts
Re: testing with vs2010 first time
May 04, 2012 04:13 PM|LINK
How do you 'enable aspx webpages in the IIS'?
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: testing with vs2010 first time
May 04, 2012 04:18 PM|LINK
This how-to from IIS forums should help you: http://learn.iis.net/page.aspx/106/hosting-applications-on-iis/