本地站点上的基本 iis 5.0 xml 解析错误
我正在开始一份新工作,并继承了 2.0 .net 框架上的 asp .net Web 应用程序。 该应用程序工作正常。 从vs 2005发布成功。我在IIS中新建了一个虚拟目录,指向刚刚发布的预编译目录。
当我加载应用程序时,出现如下错误:
XML 解析错误:格式不正确 位置: http://localhost/Subpoena/ 第 1 行,第 2 列:<%@ page language="C#" autoeventwireup="true"继承="Home, App_Web_ysxqzhr9" %> -^
我不太确定如何解决这个问题。 App_Web_ysxqzhr9是bin目录下的一个dll,是我发布项目时用VS 2005创建的。
我承认我对 IIS 技能有点生疏,所以这可能是我没有设置的一些设置......或者它可能是完全不同的东西。
有人有什么想法吗?
I'm starting a new job and am inheriting a asp .net web application on the 2.0 .net framework. The application works alright. It published successfully from vs 2005. I created a new virtual directory in IIS and pointed to the precompiled directory just published.
When I load my application, I get an error that reads as follows:
XML Parsing Error: not well-formed
Location: http://localhost/Subpoena/
Line Number 1, Column 2:<%@ page language="C#" autoeventwireup="true" inherits="Home, App_Web_ysxqzhr9" %>
-^
I'm not real sure what to do to fix this. The App_Web_ysxqzhr9 is a dll in the bin directory that was created by VS 2005 when I published the project.
I admit I'm a bit rusty on my IIS skills so it might be some setting that I haven't set...or it could be something entirely different.
Anyone have any thoughts at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
叹气
好的找到答案了。 讽刺的是,它也出现了堆栈溢出。 这是:
ASP. NET 2.0 应用程序在 IIS 5 上导致错误(aspnet_wp.exe (PID: XXXX) 意外停止。)
对我有用的是 Mitchel Sellers 响应:
无论如何,感谢您的所有帮助。
sigh
Okay found the answer. Ironically it too was on stack overflow. Here it is:
ASP.NET 2.0 Application on IIS 5 Resulting in Error (aspnet_wp.exe (PID: XXXX) stopped unexpectedly.)
What worked for me was Mitchel Sellers response:
Thanks anyway for all your help guys.
您的 IIS 配置正确吗? 您应该仔细检查该 asp 文件是否确实被解释为 ASP,而不仅仅是尝试由浏览器显示为 XML。 在文件夹的配置中,确保“应用程序名称”字段旁边的按钮显示“删除”而不是“创建”。
Is your IIS configured correctly? You should double check that the asp file is actually being interpreted as ASP and not just trying to be displayed as XML by the browser. In the configuration for the folder and make sure the button next to the Application Name field says Remove not Create.
您可能还需要安装 Microsoft WSE 扩展。
像这样的东西: http: //www.microsoft.com/downloads/details.aspx?FamilyID=018a09fd-3a74-43c5-8ec1-8d789091255d&displaylang=en
编辑:
System.Web 是 WSE 的一部分,但我不确定它们是如何协同工作的。
You may also need to install Microsoft WSE extensions.
Something like this: http://www.microsoft.com/downloads/details.aspx?FamilyID=018a09fd-3a74-43c5-8ec1-8d789091255d&displaylang=en
EDIT:
System.Web is part of the WSE but I'm not sure how it all plays together.