[英]Branched Site Deployment Problems
I have branched some code on my dev machine for an ASP.NET Webforms app. 我已经在我的开发机器上为ASP.NET Webforms应用程序分支了一些代码。 .NET 4.0.
.NET 4.0。 The working copy (original) runs on IIS 7 localhost in an IIS Application.
工作副本(原始)在IIS应用程序中的IIS 7本地主机上运行。
I thoguht I would keep things simple and configured the branch site to run in Cassini. 我认为我会保持简单,并配置分支站点以在Cassini中运行。 The page that rendered was a grey page with Diagnose Connection Problems button.
呈现的页面是带有“诊断连接问题”按钮的灰色页面。 It had a heading "Internet Explorer cannot display the webpage".
它的标题为“ Internet Explorer无法显示该网页”。 Fiddler revealed a 302 reponse code.
Fiddler透露了302响应代码。 No idea why a redirect is occurring.
不知道为什么发生重定向。
So, not wanting to waste time, I changed the configuration to use IIS 7, created a new IIS Application for it. 因此,不想浪费时间,我将配置更改为使用IIS 7,为此创建了一个新的IIS应用程序。
The exact same result when trying to run the app. 尝试运行该应用程序时,结果完全相同。 So, the result is common, regardless of whether I use IIS 7 or Cassini.
因此,无论使用IIS 7还是Cassini,结果都是常见的。
Has anyone experienced this? 有人经历过吗? Is there something I'm forgetting to configure in the application.
有什么我忘记在应用程序中配置的东西吗?
Cheers. 干杯。
I have resolved this now. 我现在已经解决了。 I'm not surprised that no-one answered, as this was a really weird scenario with a fix that does not obviously address the issue.
没有人回答我并不感到惊讶,因为这是一个非常奇怪的场景,其修复程序显然无法解决该问题。
I had to do two things: 我必须做两件事:
1 - delete the Global.asax and create a new one, making sure that it inherits from the Microsoft.Practices.CompositeWeb.WebClientApplication class. 1-删除Global.asax并创建一个新的,确保它继承自Microsoft.Practices.CompositeWeb.WebClientApplication类。
2 - in the RadScriptManager (a Telerik component), change the RadScriptReferences to normal ScriptReferences. 2-在RadScriptManager(Telerik组件)中,将RadScriptReferences更改为普通的ScriptReferences。
I have no idea why these changes were required. 我不知道为什么需要这些更改。 But they worked.
但是他们工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.