« Previous Next »

Thread: Deployment Issue - Unable to start debugging on the web server - Error

Last post 07-06-2009 6:42 PM by r@msex. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-14-2007, 12:38 AM

    • vaassud
    • Not Ranked
    • Joined on 06-14-2007, 4:29 AM
    • Posts 1

    Deployment Issue - Unable to start debugging on the web server - Error

    Hi,

    I'm getting "Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a receive." from Visual Studio 2005 when i try to run new web application/service projects. After some debugging techniques i came to know that its because of deployment issues in IIS.

    Following things i have tried.

    1. In Virtual directory property

             1.1  ASP.Net version is 2.0.50727

             1.2 Application Name as "TestService"

             1.3 Windows and Anonymous authentication are enabled ( I tried with either one )

    2. Tried with ipaddress instead of localhost in the browser

    3. In the Web.config debug=true

    4. Added ASPNET user to my project folders inside "C:\SYSROOT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" and assigned full control

    5. 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 - Done

    6. Internet Options->Security->Trusted Sites->--- Add the following:http://localhost http://127.0.0.1 - done       

    My IIS logs shows that

    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2007-06-11 03:43:14
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2007-06-11 03:43:14 W3SVC1 127.0.0.1 DEBUG /test/Default.aspx - 80 - 127.0.0.1 - 401 2 2148074254
    2007-06-11 03:43:14 W3SVC1 127.0.0.1 DEBUG /test/Default.aspx - 80 - 127.0.0.1 - 401 1 0
    2007-06-11 03:43:17 W3SVC1 127.0.0.1 DEBUG /test/Default.aspx - 80 COMPANY\VAASSU 127.0.0.1 - 500 0 0
    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2007-06-11 03:52:01
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2007-06-11 03:52:01 W3SVC1 127.0.0.1 DEBUG /TestService/Service.asmx - 80 - 127.0.0.1 - 401 2 2148074254
    2007-06-11 03:52:01 W3SVC1 127.0.0.1 DEBUG /TestService/Service.asmx - 80 - 127.0.0.1 - 401 1 0
    2007-06-11 03:52:01 W3SVC1 127.0.0.1 DEBUG /TestService/Service.asmx - 80 COMPANY\VAASSU 127.0.0.1 - 500 0 0
    2007-06-11 03:52:24 W3SVC1 127.0.0.1 GET /TestService/Service.asmx - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+InfoPath.2;+.NET+CLR+2.0.50727) 401 2 2148074254
    2007-06-11 03:52:24 W3SVC1 127.0.0.1 GET /TestService/Service.asmx - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+InfoPath.2;+.NET+CLR+2.0.50727) 401 1 0
    2007-06-11 03:52:24 W3SVC1 127.0.0.1 GET /TestService/Service.asmx - 80 COMPANY\VAASSU 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+InfoPath.2;+.NET+CLR+2.0.50727) 500 0 0
    2007-06-11 03:52:50 W3SVC1 127.0.0.1 GET /TestService/Service.asmx - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+InfoPath.2;+.NET+CLR+2.0.50727) 500 0 0

    If I trying to browse .asmx file from IIS admin, getting "Server Application Unavailable" Error.

    Can anyone help me out regarding this?

    Rgs

    Vasu

     

  • 06-14-2007, 3:32 PM In reply to

    Re: Deployment Issue - Unable to start debugging on the web server - Error

    Obvious question is whether you enabled ASP.NET as a web service extension.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 06-18-2007, 4:43 AM In reply to

    Re: Deployment Issue - Unable to start debugging on the web server - Error

    Hi Vasu,

    According to the HTTP log:

    HTTP Error 500.0 - Internal Server Error

    Occurred right after the user been authenticated.

    1. What is happening if you open /test/Default.aspx directly in web browser (without debugging)? The log file doesn’t have enough information to show this.

    2. I think you might forgot to check the NTFS files permission for the user COMPANY\VAASSU. Please make sure this user has appropriate file permission to access default.aspx and other ASP.NET files like web.config and DLL files in the /Bin folder.

    3. You need Administrator privileges to debug your web application. So please make sure user COMPANY\VAASSU is in the Administrators group.  

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 07-06-2009, 6:42 PM In reply to

    • r@msex
    • Not Ranked
    • Joined on 07-06-2009, 6:18 PM
    • Posts 1

    Re: Deployment Issue - Unable to start debugging on the web server - Error

    Hi 

    I put http://127.0.0.1/MyApplication/Page.aspx,  instead of http://localhost/...

    Other solution is:

    Change the Property Pages setting.
    1. In the "Solution Explorer" right click in your application
    2. Select "Property Pages" and then you need to change Specific Page option for Start URL: "http://127.0.0.1/YourApp"
    3. Set the Windows Authentication to enabled, in your web application in the IIS Authentication section.

    Regards,

     

Page 1 of 1 (4 items)
Microsoft Communities