Groups > Asp .Net > VS 2005 Web Application Projects > Re: "unable to start debugging on the web server.the underlying conniction was closed:An unexpected error occurred on a send"




"unable to start debugging on the web server.the
underlying conniction was closed:An unexpected error
occurred on a send"

"unable to start debugging on the web server.the underlying conniction was closed:An unexpected error occurred on a send"
Mon, 7 Jan 2008 05:19:41 +0000
Hi All

i need any help plz,every time i start debug the project i have this problem in
msgbox==>

"unable to start debugging on the web server.the underlying conniction was
closed:An unexpected error occurred on a  send" 

i have windows xp sp2 & vs.net 2005

and all thing is allright if i start new empty website frome 0

but if i put any redy or created website(like dotnetnuke or an example from any
book)  in the wwwroot and creat it in the iis

gives me this problem

and i did about 100 tek and tep in the my computer even i re formated it and re
installed vs.net 2005.

AND MY WEB.CONFIG

 

1    <?xml version="1.0"?>
2    <configuration>
3    	<configSections>
4    		<sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
5    			<sectionGroup name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
6    				<section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="MachineToApplication"/>
7    				<sectionGroup name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
8    					<section name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="Everywhere"/>
9    					<section name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="MachineToApplication"/>
10   					<section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="MachineToApplication"/>
11   				</sectionGroup>
12   			</sectionGroup>
13   		</sectionGroup>
14   	</configSections>
15   	<system.web>
16   17       <compilation defaultLanguage="VB"
debug="true">
18   19         <assemblies>
20           <add assembly="System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
21         </assemblies>
22   23   24   25       </compilation>
26   27       <!--<profile>
28         <properties>
29           <add name="FullName" defaultValue=""/>
30         </properties>
31       </profile>-->
32   33       <siteMap defaultProvider="foo"
enabled="true">
34         <providers>
35           <add name="foo" siteMapFile="web.sitemap"
type="System.Web.XmlSiteMapProvider"
securityTrimmingEnabled="true"/>
36         </providers>
37       </siteMap>
38   39       <authentication mode="Forms"/>
40       <roleManager enabled="true"/>
41   42       <pages styleSheetTheme="Default">
43         <controls>
44           <add tagPrefix="asp"
namespace="System.Web.UI" assembly="System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
45         </controls>
46   47       </pages>
48   49   50   51   52       <httpHandlers>
53   			<remove verb="*" path="*.asmx"/>
54   			<add verb="*" path="*.asmx"
validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
55   			<add verb="*" path="*_AppService.axd"
validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
56   			<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false"/>
57   		</httpHandlers>
58   		<httpModules>
59   			<add name="ScriptModule"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
60   		</httpModules>
61   	</system.web>
62   63     <system.webServer>
64   		<validation
validateIntegratedModeConfiguration="false"/>
65   		<modules>
66   			<add name="ScriptModule"
preCondition="integratedMode"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
67   		</modules>
68   		<handlers>
69   			<remove name="WebServiceHandlerFactory-Integrated"/>
70   			<add name="ScriptHandlerFactory" verb="*"
path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
71   			<add name="ScriptHandlerFactoryAppServices"
verb="*" path="*_AppService.axd"
preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
72   			<add name="ScriptResource"
preCondition="integratedMode" verb="GET,HEAD"
path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
73   		</handlers>
74   	</system.webServer>
75   </configuration>


 

 

PLEZ HELP ME  "SOS"
Post Reply
Re: "unable to start debugging on the web server.the underlying conniction was closed:An unexpected error occurred on a send"
Fri, 11 Jan 2008 10:31:52 +000
moh1980:

and all thing is allright if i start new empty website frome 0

but if i put any redy or created website(like dotnetnuke or an example from any
book)  in the wwwroot and creat it in the iis  

Hi moh1980,

From your description, I understand that you can use Visual Studio 2005 to
create HTTP type web project without any problem. However, if you config the
existing website project in IIS, Visual Studio cannot debug it with the error
message: "unable to start debugging on the web server.the underlying
conniction was closed: An unexpected error occurred on a send". If I have
any minunderstanding, please let me know.

In my opinion, if you manually create a simple web project in IIS failed, but
the new a HTTP web project works well. The most likely cause can be the
incorrect ASP.NET version configuration. You can check it by the following
steps:

    1. Open IIS manager.
    2. Right click the virtual directory of your project, and then select
“Properties”.
    3. Click the “ASP.NET” tab.
    4. Make sure the “ASP.NET version” is “2.0.50727”.

Meanwhile, there is a workaround to debug that we can open the web project as
file system project via “File | Open | Web Site… | File System”, then the
web prject will running in the build-in Development Server instead of IIS.
Post Reply
Re: "unable to start debugging on the web server.the underlying conniction was closed:An unexpected error occurred on a send"
Sat, 12 Jan 2008 00:07:19 +000
Thank you Mr  Benson Yu
Post Reply
Re: "unable to start debugging on the web server.the underlying conniction was closed:An unexpected error occurred on a send"
Sat, 12 Jan 2008 00:14:45 +000
how can i mark you as answer i am new in this website and in asp.net
Post Reply
about | contact