Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to start debugging on the web server

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hi, I recently upgraded to visual studio .net 2003 and when I attempt to start a web application, I get this error: Error while trying to run project: Unable to start debugging on the web server. I have went through several checks, such as aspnet_regiis -i ,iisrest, debugging is set to true in the web.config file. I tried starting app w/out debugging and then attempted to attach to the aspnet process. When I start the application without debugging, I get this error: Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 77:
Line 78: // Add the Page Title
Line 79: objBuilder.AppendFormat( &quot;\n<title>{0}</title>&quot;, objPageInfo.Title );
Line 80:
Line 81: // Add the Page Style
Source File: d:\program files\asp.net starter kits\asp.net community starter kit (csvs)\communitystarterkit\communitydefault.aspx.cs Line: 79


Any help or ideas would be greatly appreciated! Thanks in advance!

 
Ok, I figured out the Error Message about debugging. I am not sure why it worked but this is what I read on an MSDN page: check and see if HTTP Keep-Alives Enabled is on or off, if off turn it on. but I still get the following error when I start the app via Visual Studio.<b>Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 77:
Line 78: // Add the Page Title
Line 79: objBuilder.AppendFormat( &quot;\n<title>{0}</title>&quot;, objPageInfo.Title );
Line 80:
Line 81: // Add the Page Style


Source File: d:\program files\asp.net starter kits\asp.net community starter kit (vbvs)\communitystarterkit\communitydefault.aspx.cs Line: 79

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
ASPNET.StarterKit.Communities.communityDefault.Page_Init(Object s, EventArgs e) in d:\program files\asp.net starter kits\asp.net community starter kit (vbvs)\communitystarterkit\communitydefault.aspx.cs:79
System.Web.UI.Control.OnInit(EventArgs e)
ASPNET.StarterKit.Communities.communityDefault.OnInit(EventArgs e) in d:\program files\asp.net starter kits\asp.net community starter kit (vbvs)\communitystarterkit\communitydefault.aspx.cs:39
System.Web.UI.Control.InitRecursive(Control namingContainer)
System.Web.UI.Page.ProcessRequestMain()




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 </b> Thanks.

 
If you create an empty page and set it as a start page, will the app run with an error as well?
 
LV,
Thanks for the quick response. No, there is no error when I run the app w/empty page as start up. I don't understand that when I type in the URL into IE, I don't get an error, but when I attempt to run it via VS 2003, I get an error. Here's the uRL:
 
That's strange. Means that the app compliles fine. What I would probably try to do is comment out all code behind, make sure it runs fine and then start uncommenting the code line by line. Maybe that will lead to a certain line of code that causes an error. Also, in project's properties, do you have &quot;Enable ASP debugging&quot; set to true? BTW, nice looking site.
 
Hi ksbrace

Had the same problem a while back - the only solution I can offer you that finally solved my problem (it's a bit of a mission so it's a last resort kind of solution ... ) is to uninstall .NET framework, uninstall IIS, reinstall IIS and reinstall .NET framework.

Hope you come right!

Craftor
:cool:
 
Well, here's the answer to my problem. I had communityDefault.aspx as the startup page, when it should have been default.aspx. Thanks for the help. BTW, this site is Community Starter Kit available from asp.net w/a few mods.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top