2010-07-05 58 views
0

当我发布(仅运行此应用程序所需的文件)它到服务器时,我的应用程序无法正常工作。我在IIS中设置通配符映射。我收到以下错误:Asp.net 3.5 URL路由和winforms发布后不工作

HTTP错误404.4 - 未找到 您正在查找的资源没有与其关联的处理程序。

回答

0

那么你是说当你上传发布的应用程序版本时,你的代码才工作?

您是预先编译应用程序还是让服务器执行它?

你可以直接点击一个.html页面和.aspx页面吗?

听起来像是你被部署到IIS 6,这里有我的应用程序之一,我的IIS6部署笔记是3.5 URL路由:

Add read/write 
Add Default Application to Application name 
Under configuration add a wild card mapping: add aspnet_isapi.dll, untick verify that file exists 

Change ASP.NET version to 2.0 

Under directory security add IUSR Anonymous and password. 

make sure the directory has ASPNet user and IUSR accounts added in security folder tab.. v important 

希望这有助于!

1

在集成模式,在我的框(2008 R2,IIS7.5)在web.config要求UrlRoutingModule要被添加到所述system.webserver /模块部和UrlRoutingHandler要添加到所述system.webserver /处理程序(正如我见过的许多示例中所示)。如果UrlRoutingModule被添加到路由拒绝工作