【发布时间】:2014-03-29 22:53:47
【问题描述】:
无法加载文件或程序集“UrlRewritingNet.UrlRewriter”或其依赖项之一。该系统找不到指定的文件。
我们安装了url重写
在网站上试过 在虚拟目录上尝试过
同样的错误:/
有什么想法吗?
说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.IO.FileNotFoundException:无法加载文件或程序集“UrlRewritingNet.UrlRewriter”或其依赖项之一。系统找不到指定的文件。
来源错误:
在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。
程序集加载跟踪:以下信息有助于确定程序集“UrlRewritingNet.UrlRewriter”无法加载的原因。
警告:程序集绑定日志记录已关闭。 要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) 设置为 1。 注意:有一些与程序集绑定失败日志相关的性能损失。 要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。
堆栈跟踪:
[FileNotFoundException:无法加载文件或程序集“UrlRewritingNet.UrlRewriter”或其依赖项之一。该系统找不到指定的文件。] System.RuntimeTypeHandle.GetTypeByName(字符串名称,布尔 throwOnError,布尔 ignoreCase,布尔反射,StackCrawlMarkHandle stackMark,IntPtr pPrivHostBinder,布尔 loadTypeFromPartialName,ObjectHandleOnStack 类型)+0 System.RuntimeTypeHandle.GetTypeByName(字符串名称,布尔 throwOnError,布尔 ignoreCase,布尔反射,StackCrawlMark 和 stackMark,IntPtr pPrivHostBinder,布尔 loadTypeFromPartialName)+153 System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +63 System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124 System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76
[ConfigurationErrorsException:无法加载文件或程序集“UrlRewritingNet.UrlRewriter”或其依赖项之一。该系统找不到指定的文件。] System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +12773840 System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69 System.Web.Configuration.Common.ModulesEntry..ctor(字符串名称,字符串类型名称,字符串属性名称,ConfigurationElement configElement)+66 System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +300 System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1262 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext,HttpContext 上下文,MethodInfo[] 处理程序)+133 System.Web.HttpApplication.InitSpecial(HttpApplicationState 状态,MethodInfo[] 处理程序,IntPtr appContext,HttpContext 上下文)+304 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): 无法加载文件或程序集“UrlRewritingNet.UrlRewriter”或其依赖项之一。该系统找不到指定的文件。] System.Web.HttpRuntime.FirstRequestInit(HttpContext 上下文)+12966756 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext 上下文)+159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12806561
版本信息:Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18408
【问题讨论】:
-
summea - 你是怎么做到的?在我的 web.config 中,我添加了重写区域...
-
这是一个 IIS 功能。不是 com 对象之类的参考功能...这就是为什么我对您的参考感到困惑
-
不知道这是否有帮助...我们在这里遇到的情况是,在升级 Windows Server 2012 后,我们的站点由于类似的问题而停止工作(我们甚至没有使用要么!)我们应用的修复是卸载“IIS URL重写模块2”组件(通过添加/删除程序)并重新安装。
-
谢谢你,brendan green 我会试试...
-
重新安装 iis url rewrite module 2 没有解决问题...