简体   繁体   English

Visual Studio iis7解析器错误?

[英]visual studio iis7 parser error?

i had to reset my computer to factory settings yesterday and reinstall visual studio now before the clean start when i created a mvc2 application everything appeared correct but now i get a parser error when opening with iis7 我昨天不得不将计算机重置为出厂设置,并在重新启动Visual Studio之前立即重新创建Visual Studio,当我创建mvc2应用程序时,一切似乎都正确,但是现在使用iis7打开时出现解析器错误

and i set the application pool to asp.net v4.0 我将应用程序池设置为asp.net v4.0

i would be able to fix this if what was in the window was actually visible in the file but its not so how can i fix it if i cant see it im using iis7 and visual studio 2010 ultimate here are some screen shots 如果窗口中的内容实际上在文件中可见,那么我将能够解决此问题,但事实并非如此,如果我无法使用iis7和Visual Studio 2010 Ultimate看到它,该如何解决?这里是一些屏幕截图

the browser error 浏览器错误 替代文字

and the global asax it refers to 和它所指的全局asax 替代文字

according to the net it should automatically be migrated with iis7 so whats the problem here? 根据网络,它应该自动与iis7一起迁移,这又是什么问题?

You can't open global.asax in Visual Studio, you have to do it in Notepad/similar. 您无法在Visual Studio中打开global.asax,而必须在记事本/类似文件中打开它。

  1. Locate global.asax in your file manager, right click and choose Open With -> Notepad 在文件管理器中找到global.asax,右键单击并选择“打开方式”->“记事本”
  2. Make sure what's in the Inherits attribute equals to your global.asax.vb namespace and class. 确保Inherits属性中的内容等于global.asax.vb命名空间和类。

Did this work? 这个工作了吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM