简体   繁体   中英

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

and i set the application pool to 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

the browser error 替代文字

and the global asax it refers to 替代文字

according to the net it should automatically be migrated with iis7 so whats the problem here?

You can't open global.asax in Visual Studio, you have to do it in Notepad/similar.

  1. Locate global.asax in your file manager, right click and choose Open With -> Notepad
  2. Make sure what's in the Inherits attribute equals to your global.asax.vb namespace and class.

Did this work?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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