sam
sam

Reputation: 164

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 alt text

and the global asax it refers to alt text

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

Upvotes: 0

Views: 311

Answers (1)

Martin S Ek
Martin S Ek

Reputation: 2043

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?

Upvotes: 1

Related Questions