asp.net mvc – The virtual path maps to another application, which is not allowed

what a waste of time… i was getting this error:

Error 1
The virtual path ‘/Views/Shared/Site.Master’ maps to another application, which is not allowed. C:\temp\Views\Cart\New.aspx

this didn’t really help me, some searching said stuff about IIS mappings etc… anyways it turns out to be very simple… one of my views had a missing tilde ~

“/Views/Shared/Site.Master” i changed it to   “~/Views/Shared/Site.Master” and the problem was gone…

as i said what a waste of time !!!!


Advertisement

One Response to asp.net mvc – The virtual path maps to another application, which is not allowed

  1. Pingback: ASP.NET MVC Archived Blog Posts, Page 1

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s