iloire / asp.net-mvc-example-invoicing-app

Example invoicing application in ASP.NET MVC3
222 stars 208 forks source link

SecurityException #5

Open remesq opened 12 years ago

remesq commented 12 years ago

I ran the project and commented out the two DB connection strings (I used SQL Compact) and then received this error:

System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.

Immediately thinking about "medium trust" I commented that out, which I am not sure whether that's good. Anyway, after doing that when I type in "user" and "pass" I get a validation error that I entered the "wrong username/password". I put back the medium trust line and still get the SecurityException above.

Sorry, but I am new to programming. So if it's something obvious just let me know.

Looking at the Invoice DB table, it looks like it wasn't even created.

remesq commented 12 years ago

Sorry to trouble you, but I am a novice at MVC and programming. It seems like the DB is not even being created (all the tables are empty when I do a Server Explore). Am I missing something?

Yours seemed to be a better alternative to learning MVC than the asp.net samples.