472,983 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,983 software developers and data experts.

error message: Unable to start debugging on the web server"


I just started to develop an ASP.NET application in vs.net 2003 . But each
time I try to execute the application (which is basically empty so far), I
get a dialog box titled "Microsoft Development Environment" with this
message:

"Error while trying to run project: Unable to start debugging on the web
server. Server-side error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a Debug.Start without debugging. You may also
want to refer to the ASP.NET and ATL Server debugging topic in the online
documentation."

I have created ASP.NET code successfully in the past with my current
installation of vs.net 2003, and I don't recall getting this error message
before. Also, vs.net works fine for win forms development.

What could cause this error message?

The only significant change to my system configuration since my previous
ASP.NET development was my installation of the latest edition of vs.net 2005
from msdn downloads. Could this be a factor?

Thanks,
Bruce
Nov 18 '05 #1
5 6467
Just yesterday i talked to two people who had a similar problem

get yourself a version switcher
http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

and check to see which version its currently bound to.
if its not bound to 1.1 then switch it to 1.1 and then try debugging.

if its still gives you bother problems then
Project >> Configuration Mananger - Debug version
Web.config - Debug = true
and you should be a member of Administrators and Debuggers

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Bruce Schechter" <br***@coding-r-us.com> wrote in message
news:#6**************@TK2MSFTNGP09.phx.gbl...

I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I
get a dialog box titled "Microsoft Development Environment" with this
message:

"Error while trying to run project: Unable to start debugging on the web
server. Server-side error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a Debug.Start without debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online
documentation."

I have created ASP.NET code successfully in the past with my current
installation of vs.net 2003, and I don't recall getting this error message
before. Also, vs.net works fine for win forms development.

What could cause this error message?

The only significant change to my system configuration since my previous
ASP.NET development was my installation of the latest edition of vs.net 2005 from msdn downloads. Could this be a factor?

Thanks,
Bruce

Nov 18 '05 #2
Thanks for the guidance.

I ran the "version switcher" as recommended. In fact it seems that IIS was
configured to execute ASP.NET (aspx) apps via dotnet version 2.0 and so I
switched it back to version 1.1. So, I no longer get the original error
message described in my earlier message.

However, now I get a different error... When opening my project, vs.net
2003 gives this error message via a dialog box:
"The Web server reported the following error when attempting to create or
open the Web project located at the following URL: 'http://localhost/gta'.
'HTTP/1.1 500 Internal Server Error'."

Alternatively, I typed the address of my application (http://localhost/gta)
into IE. The resulting page givesan error message, which I cut-and-pasted
below.

Unfortunately, I was not able to understand how to execute the second
recommendation regarding "Project >> Configuration Mananger" from Hermit
Dave.

In addition to debugging this current problem, I would appreciate any
recommendations for articles about how to maintain two versions of vs.net
(in my case 2003 and 2005) simultaneously installed for ASP.NET development
on one machine.

Thanks,
Bruce

******* Start of error message from IE **********
Server Error in '/gta' Application.
----------------------------------------------------------------------------
----
Server cannot access application directory 'C:\Inetpub\wwwroot\gta\'. The
directory does not exist or is not accessible because of security settings.
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.Web.HttpException: Server cannot access
application directory 'C:\Inetpub\wwwroot\gta\'. The directory does not
exist or is not accessible because of security settings.

Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:
[HttpException (0x80004005): Server cannot access application directory
'C:\Inetpub\wwwroot\gta\'. The directory does not exist or is not accessible
because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +965
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

******* End of error message from IE **********
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:us**************@TK2MSFTNGP12.phx.gbl...
Just yesterday i talked to two people who had a similar problem

get yourself a version switcher
http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

and check to see which version its currently bound to.
if its not bound to 1.1 then switch it to 1.1 and then try debugging.

if its still gives you bother problems then
Project >> Configuration Mananger - Debug version
Web.config - Debug = true
and you should be a member of Administrators and Debuggers

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Bruce Schechter" <br***@coding-r-us.com> wrote in message
news:#6**************@TK2MSFTNGP09.phx.gbl...

I just started to develop an ASP.NET application in vs.net 2003 . But

each
time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development Environment" with this
message:

"Error while trying to run project: Unable to start debugging on the web
server. Server-side error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a Debug.Start without debugging. You may

also
want to refer to the ASP.NET and ATL Server debugging topic in the online documentation."

I have created ASP.NET code successfully in the past with my current
installation of vs.net 2003, and I don't recall getting this error message before. Also, vs.net works fine for win forms development.

What could cause this error message?

The only significant change to my system configuration since my previous
ASP.NET development was my installation of the latest edition of vs.net

2005
from msdn downloads. Could this be a factor?

Thanks,
Bruce


Nov 18 '05 #3
vs.net 2005 does set all the current projects to run under 2.0 so you have
to switch to 1.1

i dont know why you get the internal server error. but if you manage of open
the project under 2003 then go to
Build >> Configuration Manager - Set the active configuration to Debug

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Bruce Schechter" <br***@coding-r-us.com> wrote in message
news:#u**************@TK2MSFTNGP12.phx.gbl...
Thanks for the guidance.

I ran the "version switcher" as recommended. In fact it seems that IIS was configured to execute ASP.NET (aspx) apps via dotnet version 2.0 and so I
switched it back to version 1.1. So, I no longer get the original error
message described in my earlier message.

However, now I get a different error... When opening my project, vs.net
2003 gives this error message via a dialog box:
"The Web server reported the following error when attempting to create or
open the Web project located at the following URL: 'http://localhost/gta'.
'HTTP/1.1 500 Internal Server Error'."

Alternatively, I typed the address of my application (http://localhost/gta) into IE. The resulting page givesan error message, which I cut-and-pasted
below.

Unfortunately, I was not able to understand how to execute the second
recommendation regarding "Project >> Configuration Mananger" from Hermit
Dave.

In addition to debugging this current problem, I would appreciate any
recommendations for articles about how to maintain two versions of vs.net
(in my case 2003 and 2005) simultaneously installed for ASP.NET development on one machine.

Thanks,
Bruce

******* Start of error message from IE **********
Server Error in '/gta' Application.
-------------------------------------------------------------------------- -- ----
Server cannot access application directory 'C:\Inetpub\wwwroot\gta\'. The
directory does not exist or is not accessible because of security settings. 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.Web.HttpException: Server cannot access
application directory 'C:\Inetpub\wwwroot\gta\'. The directory does not
exist or is not accessible because of security settings.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[HttpException (0x80004005): Server cannot access application directory
'C:\Inetpub\wwwroot\gta\'. The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +965
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128 -------------------------------------------------------------------------- -- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

******* End of error message from IE **********
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:us**************@TK2MSFTNGP12.phx.gbl...
Just yesterday i talked to two people who had a similar problem

get yourself a version switcher
http://www.denisbauer.com/NETTools/A...nSwitcher.aspx

and check to see which version its currently bound to.
if its not bound to 1.1 then switch it to 1.1 and then try debugging.

if its still gives you bother problems then
Project >> Configuration Mananger - Debug version
Web.config - Debug = true
and you should be a member of Administrators and Debuggers

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Bruce Schechter" <br***@coding-r-us.com> wrote in message
news:#6**************@TK2MSFTNGP09.phx.gbl...

I just started to develop an ASP.NET application in vs.net 2003 . But each
time I try to execute the application (which is basically empty so far), I
get a dialog box titled "Microsoft Development Environment" with this
message:

"Error while trying to run project: Unable to start debugging on the
web server. Server-side error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start without debugging. You may

also
want to refer to the ASP.NET and ATL Server debugging topic in the online documentation."

I have created ASP.NET code successfully in the past with my current
installation of vs.net 2003, and I don't recall getting this error message before. Also, vs.net works fine for win forms development.

What could cause this error message?

The only significant change to my system configuration since my previous ASP.NET development was my installation of the latest edition of

vs.net 2005
from msdn downloads. Could this be a factor?

Thanks,
Bruce



Nov 18 '05 #4
Hi Bruce,

It seems the problem is related to security issues. You may try to grant
the account "NETWORK SERVICE" or ASPNET with full control permission on
\Inetpub\wwwroot\gta. Will this help?

Luke

Nov 18 '05 #5
Luke,

I added full control permission to those two accounts, but still get the
error.

At this point, I've decided to simply rebuild the system. (BTW, some
postings on the Whidbey newsgroups lead me to believe that it is unwise to
do ASP.NET development via vs.net 2003 when the current build of Whidbey is
installed all the same machine. I'm suspicious that the error messages
could relate to that issue. Once I rebuild this system, I'll keep the two
versions on seperate machines.) I'm confident that things will be fine
again, once I rebuild.

Thanks for everyone's help, never-the-less!

cheers, Bruce

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:j8**************@cpmsftngxa10.phx.gbl...
Hi Bruce,

It seems the problem is related to security issues. You may try to grant
the account "NETWORK SERVICE" or ASPNET with full control permission on
\Inetpub\wwwroot\gta. Will this help?

Luke

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bruce A. Julseth | last post by:
This is my 2nd request. Is the question too vague? Or, too difficult to answer. I'm really a newbie at this VS.NET stuff and do appreciate some help on this problem.---I keep getting the error...
0
by: Galore | last post by:
Hello, I'm trying to make a simple socket application, something like a chat application, but when I run it, it shows the following error when the client connects to the server: "Unable to read...
8
by: Grant Richard | last post by:
Using the TcpListener and TcpClient I created a program that just sends and receives a short string - over and over again. The program is fine until it gets to around 1500 to 1800 messages. At...
2
by: genc_ymeri | last post by:
Hi, We are a team of 4 using win2003 server (sp1) in our dev machines and VS2003 for our .Net web app. We did make a copy of our project (located to one "hardwarely old" PC ) to our machines. All...
4
by: a | last post by:
When executing the ASP.NET app, I get: "Error while trying to run a project: Unable to start debugging on the web server. A debugger is already attached. Would you like to disable future...
1
by: David | last post by:
Lately I have been getting the following error with all of my web applications, in debug and release mode. "Error while trying to run project: Unable to start debugging on the web server. Could...
0
by: matsla | last post by:
I have followed all guide lines to set up remote debugging but is it possible to do cross-domain remote debugging? I use same account/password on both computers (XP => 2003), added users to debug...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
3
by: mohsinews | last post by:
Hey, Hope you are all doing good. I am a new bee here. I have recently transfer a website from one hosting server to another and got the error message "Fatal error: Unable to read 4761 bytes...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.