我正在尝试在不支持每this个帖子支持MVC的主机上运行Asp.net MVC 1应用程序,但确实支持.net 2,3,3.5
然而,我收到的错误消息并没有告诉我多少:
Server Error in '/assetmanagement' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'TryHTTPHandler' or one of its dependencies. The system cannot find the file specified.
Source Error:
[No relevant source lines]
Source File: D:\Hosting\4582955\html\web.config Line: 65
Assembly Load Trace: The following information can be helpful to determine why the assembly 'TryHTTPHandler' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
对于TryHTTPHandler的谷歌搜索或堆栈溢出搜索似乎几乎没有任何结果。
我的web.config
第65行如下:
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/"/>
我已经为System.Web,System.Web.Mvc,System.Web.Routing和System.Web.Abstractions打开了本地拷贝。我不知道如何确定我的主机是否有.net 3.5或.net 3.5 SP1。
如何获取绑定日志或任何其他想法我的配置有什么问题?我在主持人身上所做的事情相当有限,因为它是付费托管。
答案 0 :(得分:0)
如果您仔细阅读错误消息,它会告诉您如何启用融合日志:由于您无权访问主机注册表,因此您必须尝试在您控制的计算机上重现该问题
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].