ASP.NET MVC 2 user input to SQL 2008 Database problems

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-06-15T09:04:02Z Indexed on 2010/06/15 10:12 UTC
Read the original article Hit count: 251

Filed under:
|
|

After my publish in VS2010 the entire website loads and pulls data from the database perfectly. I can even create new users through the site with the correct key code, given out to who needs access. I have two connection strings in my web.config file

The first:

<add xdt:Transform="SetAttributes" xdt:Locator="Match(name)" name="EveModelContainer" connectionString="metadata=res://*/Models.EdmModel.EveModel.csdl|res://*/Models.EdmModel.EveModel.ssdl|res://*/Models.EdmModel.EveModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=localhost;Initial Catalog=fleet;Persist Security Info=True;User ID=fleet;Password=****&quot;" providerName="System.Data.EntityClient" />

The second:

<add xdt:Transform="SetAttributes" xdt:Locator="Match(name)" name="ApplicationServices" connectionString="Data Source=localhost;Initial Catalog=fleet;Persist Security Info=True;User ID=fleet;Password=****;MultipleActiveResultSets=True" />

The first one is the one that is needed to post data with the main application, EveModelContainer. Everything else is pulled using the standard ApplicationServices connection.

Do you see anything wrong with my connectionstring? I'm at a complete loss here. The site works perfectly on my friends server and not on mine... Could it be a provider issue? And if I go to iis 7's manager console, and click .net users I get a pop up message saying the custom provider isn't a trusted provider do I want to allow it to run at a higher trust level.

I'm at the point where I think its either my string or this trusted provider error... but I have no clue how to add to the trusted provider list...

Thank you in advance!!!

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc