Visual Studio Development Bookmark and Share   
 index > Installing and Registering Visual Studio Express Editions > How to turn off ASP.NET Development Server
 

How to turn off ASP.NET Development Server

I am having trouble with running application under IIS and, therefore, would like to make my Visual Web Express edition run the application under IIS and not ASP.NET Development server. Is it possible to do that? how?

Bascially my application just reads data off Excel sheet and displays the data on web page. This does work under ASP.NET dev. server but when i try to use IIS (yes i have set it to run that applicaation under 2.0) it throws the following error:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified



Due to the fact that this doesn't happen under ASP.NET Dev. server and that i couldn't find any of the documentation on Microsoft's web site or anywhere else, i am just running out of options and would like to know if this is some known issue with any workaround... or is it simply that i am missing out some setting to run the exact same application under IIS 5 under WinXP (Both are on same machine, for now).
Saud  Thursday, December 29, 2005 6:55 PM

After beating my head on the screen for a couple of hours....

The ASP.NET Development Server is the default way to run the project from VS 2005.

To runthe App from the local IIS do the following.

  • Set up the application as a Virtual Directory in IIS on your local machine.
  • Go To Website / Start Options from the Menu
  • Select Start Options in the Tree on the left of the box.
  • Select Use Custom Server
  • Enter the URL of the database on the local box (http://localhost/MyWeb where "MyWeb" is the Virtual Directory.

This will put you back in the standard IIS debug.

This fixed a problem that I was having with the Infragistics controls that I am using.

Nathan

 

 

Nathan Jaynes  Friday, January 13, 2006 8:27 PM

After beating my head on the screen for a couple of hours....

The ASP.NET Development Server is the default way to run the project from VS 2005.

To runthe App from the local IIS do the following.

  • Set up the application as a Virtual Directory in IIS on your local machine.
  • Go To Website / Start Options from the Menu
  • Select Start Options in the Tree on the left of the box.
  • Select Use Custom Server
  • Enter the URL of the database on the local box (http://localhost/MyWeb where "MyWeb" is the Virtual Directory.

This will put you back in the standard IIS debug.

This fixed a problem that I was having with the Infragistics controls that I am using.

Nathan

 

 

Nathan Jaynes  Friday, January 13, 2006 8:27 PM

Hi!

Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx?tabindex=1&tabid=39

The other way to do this would be to create a new website, and instead of using a file system website, use http:// and use http://localhost/MyApp and it'll create an IIS website, then you can simply add your existing files to your current.

The other way you could do this would be to use the copy web feature to copy your web application from the file system, to your local iis box, then reopen it from the iis setup.

HTH,

PEte

PeteL - MSFT  Friday, January 13, 2006 9:25 PM
Hi, 

is it possible for you to share the source code for reading from an excel file,

thanks in advance

tecno
Dtecno  Tuesday, October 13, 2009 7:36 AM

You can use google to search for other answers

Custom Search

More Threads

• Registration Page says, "Server is too busy."
• Dependency Caching
• Visual Studio Express Editions for beginners
• Expresi Licensing of a company
• How do I install Visual Studio Express on Vista?
• Install says my OS is older than Win2k SP4
• Can not publish ASP.NET website
• VS 2008 project
• Express Beta Cleanup Tool seems to be improving
• Problem creating WPF project