在 IIS 7 Windows Server 2008 R2 上部署 ASP.NET MVC3 应用程序时出现问题

发布于 2024-12-11 04:43:26 字数 612 浏览 1 评论 0 原文

我刚刚使用部署包创建了一个 ASP.NET MVC3 应用程序。在我的 Windows Server 2008 R2 计算机上运行的 IIS7.5 中,我在新站点 MySite 中部署了该包。因此,查看站点树,我有两个节点:MySite 和默认网站。 MySite 有一个名为 MyApplication 的子节点(我导入的那个)。 MySite 的绑定指向端口 95。 ApplicationPoolIdentity 使用用户登录(服务器上的管理员),因为应用程序需要模拟用户。应用程序身份方面的一切都运行良好(我已经检查过) 现在,当我尝试访问该应用程序时,我的 Firefox 浏览器上收到消息“地址受到限制”。我输入 http://myserver:95/MySite/MyApplication。 奇怪的是,一切都可以在 Windows 7 上运行! Windows Server 上有一些特殊的安全限制吗? 信号是,访问 Windows 7 地址时,我会看到 IIS7 欢迎页面,但如果我尝试访问 Windows 服务器地址,则不会出现这种情况。 Windows 服务器上的 IIS 已启动并运行,因为我托管了一个工作完美的 TFS 服务器! 有什么想法吗?

I've just created a ASP.NET MVC3 application with a deployment package. In my IIS7.5 running on a Windows Server 2008 R2 machine I deployed the package, in a new site MySite. So, looking at the site tree, I have two nodes, MySite and Default Web Site. MySite has a subnode called MyApplication (the one I have imported). The bindings of MySite are pointing to port 95.
ApplicationPoolIdentity is using a user login (administrator on the server) since the application need to impersonate a user. Everything is running well on the application identity side (I have checked this)
Now, when I try to access the application, I get the message "the adress is restricted" on my firefox browser. I type in http://myserver:95/MySite/MyApplication.
The strange thing is that everything works on Windows 7! Are there some special security restrictions on Windows Server?
The signal is that accessing the Windows 7 adress I get the IIS7 welcome page, but this does not happen if I try to access the Windows server one. And the IIS on windows server is up and running since I'm hosting a TFS server which is working perfectly!
Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

送舟行 2024-12-18 04:43:26

只是添加另一点:

如果我使用来自以下位置的 dll,我可以与 silverlight 客户端中的集线器进行协商: http://chris.59north.com/post/2011/12/15/SignalR-and-Silverlight.aspx 在我用 github 上的最新 dll 替换所有 dll 后,我我收到如上所述的错误。请注意,我使用的是 Signalr.Client.SilverLight5.dll 和 System.Threading.Tasks.SL5.dll,而不是 Signalr.Client.SilverLight.dll。

这是确切的错误,从 fiddler 中提取它

**

HttpException]: The controller for path '/MyVD/negotiate' was not found or does not implement IController.
 at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
 at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
 at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
 at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

**

谢谢,Alpee

Just to add another point:

I am able to negoiate with the hub in my silverlight client, if i use the dlls from : http://chris.59north.com/post/2011/12/15/SignalR-and-Silverlight.aspx After i replace all the dlls with the latest ones from the github, I am getting the error as mentioned above. Please note instead of Signalr.Client.SilverLight.dll, i am using Signalr.Client.SilverLight5.dll and the System.Threading.Tasks.SL5.dll.

This is the exact error, extracted it from fiddler

**

HttpException]: The controller for path '/MyVD/negotiate' was not found or does not implement IController.
 at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
 at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
 at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
 at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

**

Thanks, Alpee

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文