当前位置:编程学习 > C#/ASP.NET >>

为什么windows7安装了.net 3.5.1还会出现此错误。。

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.InvalidOperationException: Could not start HTTP Listener.
 The two most common causes for this are:
 1) You already have another program listening on the specified port
 2) You dont have permissions to listen to http requests. Use the httpreserve command line utility to run using a non-administrator account.
 Exception message: 拒绝访问。
   在 Microsoft.Dss.Core.DssRuntimeLoader.WaitForInitialize(Boolean isShuttingDown)
   在 Microsoft.Dss.Core.DssRuntimeLoader.Initialize()
   在 Microsoft.Dss.Hosting.DssEnvironment.Initialize(DssRuntimeConfiguration configuration, String[] manifestFilePaths)
   在 ConductorClt.ConductorClt.ConductorClt_Load(Object sender, EventArgs e) 位置 C:\Documents and Settings\Administrator\桌面\机器鱼课程文件\机器鱼课程文件\机器鱼课程文件\URWPGSim2D.20120826Src\URWPGSim2D\ConductorClt\ConductorClt.cs:行号 78
   在 System.Windows.Forms.Form.OnLoad(EventArgs e)
   在 System.Windows.Forms.Form.OnCreateControl()
   在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在 System.Windows.Forms.Control.CreateControl()
   在 System.Windows.Forms.Control.WmShowWindow(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在 System.Windows.Forms.Form.WmShowWindow(Message& m)
   在 System.Windows.Forms.Form.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4984 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4984 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
URWPGSim2DClient
    程序集版本: 1.2.123.20110
    Win32 版本: 1.2.123.20110
    基本代码: file:///C:/Users/g/Desktop/URWPGSim2D/URWPGSim2D/bin/URWPGSim2DClient.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4986 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4985 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4985 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Dss.Runtime
    程序集版本: 2.2.76.0
    Win32 版本: 2.2.76.0
    基本代码: file:///C:/Users/g/Desktop/URWPGSim2D/URWPGSim2D/bin/Microsoft.Dss.Runtime.DLL
----------------------------------------
Microsoft.Dss.Environment
    程序集版本: 2.2.76.0
    Win32 版本: 2.2.76.0
    基本代码: file:///C:/Users/g/Desktop/URWPGSim2D/URWPGSim2D/bin/Microsoft.Dss.Environment.DLL
----------------------------------------
Microsoft.Ccr.Core
    程序集版本: 2.2.76.0
    Win32 版本: 2.2.76.0
    基本代码: file:///C:/Users/g/Desktop/URWPGSim2D/URWPGSim2D/bin/Microsoft.Ccr.Core.DLL
----------------------------------------
Microsoft.Dss.Base
    程序集版本: 2.2.76.0
    Win32 版本: 2.2.76.0
    基本代码: file:///C:/Users/g/Desktop/URWPGSim2D/URWPGSim2D/bin/Microsoft.Dss.Base.DLL
----------------------------------------
System.Core
    程序集版本: 3.5.0.0
    Win32 版本: 3.5.30729.4926 built by: NetFXw7
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Data
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.Ccr.Adapters.WinForms
    程序集版本: 2.2.76.0
    Win32 版本: 2.2.76.0
    基本代码: file:///C:/Users/g/Desktop/URWPGSim2D/URWPGSim2D/bin/Microsoft.Ccr.Adapters.WinForms.DLL
----------------------------------------
System.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.resources.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如: 

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。


--------------------编程问答--------------------  Exception message: 拒绝访问。


装了3.5与错误有啥关系嘛。。
不是提示很清禁楚。拒绝访问。 --------------------编程问答-------------------- 跟安装3.5可能关系不大。
可能跟你没有UAC提升,没有足够权限有关系。 --------------------编程问答-------------------- You dont have permissions to listen to http requests. Use the httpreserve command line utility to run using a non-administrator account

你没有相应的权限来操作,你右键使用管理员运行vs看看。 --------------------编程问答-------------------- 额,大家讲的我不是很清楚,能不能麻烦再讲明白一点,谢了。。 --------------------编程问答-------------------- nice fish 大神级回答,我就是因为权限不够 --------------------编程问答-------------------- 在控制面板这样设置.


补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,