Welcome to Dream.In.Code
Getting Help is Easy!

Join 107,308 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,045 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Unable to start debugging on the web server.

 
Reply to this topicStart new topic

Unable to start debugging on the web server., Unable to start debugging on the web server. The web server is not co

Thapa
post 1 Oct, 2007 - 07:13 PM
Post #1


New D.I.C Head

*
Joined: 24 Sep, 2007
Posts: 20



Thanked 1 times
My Contributions


Hi i am trying to run my friend Program in my machine which has got following in one solution:-
his program got
Data Access Layer
Business Layer
Web Service
And interface





I have copied program file and Services file to my wwwroot and again provided the reference to different Layer as required. but when i Build the solution there is no error message but when i tried to run it i got following Message:-

Error message is "Unable to start debugging on the web server. The web server is not configured correctly."

to over come this error i removed the web service and created another one and again add reference and make a change as required in interface layer but still i got same error! I am looking forward if some one can Help me to over come this Problem!

Regards

This post has been edited by PsychoCoder: 1 Oct, 2007 - 09:13 PM
User is offlineProfile CardPM

Go to the top of the page


PsychoCoder
post 1 Oct, 2007 - 09:12 PM
Post #2


DIC.Rules == true;

Group Icon
Joined: 26 Jul, 2007
Posts: 7,128



Thanked 50 times

Dream Kudos: 7700

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI

My Contributions


That has nothing to do with the web service, it has to do with the web server, meaning remote debugging isn't enabled, or you don't have permissions for it, on the server thats hosting your site, or the ASP.Net application hasn't been set as a web application

You can try enabling remote debugging in the web.config, to do that

  1. Open the web.config file
    • Y ou cannot access the file remotely using a Web browser due to built-in IIS & .Net security
  2. Look for the <compilation> tag. This marks the beginning of the <compilation> section.
  3. Inside the <compilation> tag, you will create the debug attribute
    • Attributes are case sensitive, so be sure to specify "debug", not "Debug" or "DEBUG."
  4. Set debug to true, like in the example below

CODE

<configuration>
    <system.web>
        <compilation defaultLanguage="VB" debug="true">
   ...
   ...
   ...



To make sure your web site is registered as a web application try the following:

  1. Open the IIS admin app.
  2. Right click on your app's directory (/virtual dir) and select Properties.
  3. On the Directory tab, under Application Settings, next to Application Name there will be a 'Create' button - click it. Once the dir has been registered as a web app then this button will say 'Remove'.
  4. Click Apply (or OK).


One last thing, you need to enable debugging for your web application, to do this:

  1. Go to Internet Information Services
  2. Right mouse click on your project directory
  3. Go to the ASP.NET tab
  4. Click the Edit Configuration button
  5. Select the Application Tab
  6. Check the 'Enable Debugging' checkbox

Hope this helps smile.gif
User is online!Profile CardPM

Go to the top of the page

jairosoft
post 6 May, 2008 - 11:01 AM
Post #3


New D.I.C Head

*
Joined: 6 May, 2008
Posts: 1

Thanks for your help. I am having the same problem. Like you suggested, I made sure the website directory was configured correctly using the IIS manager and going into the properties of each website directory. I have checked that the web directory is
configured correctly (so that a remove button is showing), and I have made sure that Integrated Windows Authentication is check marked, and in the the ASP.NET tab, I have made sure that "enable debugging" is checked, and I have made sure that the web.config file for each website says debug="true" where it should go. So everything seems to be configured correctly, but still, I get the error message that says "Unable to start debugging on the web server. The web server is not configured correctly. . . ." If I run one of my websites without debugging (ctrl-F5) then it doesn't want to display. One of those error pages comes up.

I don't know what could have caused this, I recall that this has been like this since I downloaded a website that I had created and uploaded on another computer, and so when I went to run it in VS 2008, it was saying that this website was already precompiled, (but I had previously replaced the precompiled pages with regular pages, as far as I can tell). So maybe there were some leftover precompiled files somewhere that I overlooked.

Anyway, the error message is happening to all the other website that I have on my wwwroot directory and it wasn't doing that before. Help.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/28/08 07:06AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month