asp.net URL重写错误



无法加载文件或程序集"UrlRewriteNet.UrlRewriter"或其依赖项之一。系统找不到指定的文件。

我们安装了url重写

在网站上试用过在虚拟目录上尝试

相同错误:/

有什么想法吗?

描述:在执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误以及错误在代码中的来源的更多信息。

异常详细信息:System.IO.FileNotFoundException:未能加载文件或程序集"UrlRewriteNet.UrlRewriter"或其依赖项之一。系统找不到指定的文件。

来源错误:

在执行当前web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。

程序集加载跟踪:以下信息有助于确定无法加载程序集"UrlRewriteNet.UrlRewriter"的原因。

警告:程序集绑定日志记录已关闭。要启用程序集绑定故障日志记录,请将注册表值[HHKLM\Software\Microsoft\Fusion!EnableLog](DWORD)设置为1。注意:程序集绑定失败日志记录会带来一些性能损失。要关闭此功能,请删除注册表值[HHKLM\Software\Microsoft\Fusion!EnableLog]。

堆栈跟踪:

[FileNotFoundException:未能加载文件或程序集"UrlRewriteNet.UrlRewriter"或其依赖项之一。系统找不到指定的文件。]System.RuntimeTypeHandle.GetTypeByName(字符串名称,布尔throwOnError,布尔ignoreCase,布尔reflectionOnly,StackCrawlMarkHandle堆栈标记,IntPtr pPrivHostBinder,布尔loadTypeFromPartialName,ObjectHandleOnStack类型)+0System.RuntimeTypeHandle.GetTypeByName(字符串名称,布尔throwOnError,布尔ignoreCase,布尔reflectionOnly,StackCrawlMark&stackMark,IntPtr pPrivHostBinder,布尔loadTypeFromPartialName)+153System.Type.GetType(字符串类型名称,布尔throwOnError,布尔ignoreCase)+63System.Web.Compilation.BuildManager.GetType(字符串类型名称,布尔throwOnError,布尔ignoreCase)+124System.Web.Configuration.ConfigUtil.GetType(字符串类型名称,字符串属性名称,ConfigurationElement configElement,XmlNode节点,布尔校验AptcaBit,布尔忽略用例)+76

[ConfigurationErrorsException:无法加载文件或程序集"UrlRewriteNet.UrlRewriter"或其依赖项之一。系统找不到指定的文件。]System.Web.Configuration.ConfigUtil.GetType(字符串类型名称,字符串属性名称,ConfigurationElement configElement,XmlNode节点,布尔校验AptcaBit,布尔忽略用例)+12773840System.Web.Configuration.Common.ModulesEntry.SecureGetType(字符串类型名称,字符串属性名称,ConfigurationElement配置元素)+69System.Web.Configuration.Common.ModulesEntry.ctor(字符串名称、字符串类型名称、字符串属性名称、ConfigurationElement configElement)+66System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)+300System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)+1262System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext、HttpContext上下文、MethodInfo[]处理程序)+133System.Web.HttpApplication.InitSpecial(HttpApplicationState状态,MethodInfo[]处理程序,IntPtr appContext,HttpContext上下文)+304System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext,HttpContext context)+404System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)+475

[HttpException(0x80004005):无法加载文件或程序集"UrlRewriteNet.UrlRewriter"或其依赖项之一。系统找不到指定的文件。]System.Web.HttpRuntime.FirstRequestInit(HttpContext上下文)+12966756System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext上下文)+159System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext上下文)+12806561

版本信息:Microsoft.NET Framework版本:4.0.30319;ASP.NET版本:4.0.30319.18408

只需复制UrlRewritingNet.UrlRewriter.dll并将其粘贴到父级和子级的bin文件夹中。。可能是not present in the child bin folder

请更改子网站的应用程序池设置。到不同的应用程序。池框架。

最新更新