ASP.NET MVC 2: Connection String error?
I needed to start fresh with a new MVC 2 Project
This is what the error points to:
public DealDataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["RESTRO_DEVConnectionString"].ConnectionString, mappingSource)
{
On开发者_Python百科Created();
}
The only difference between the two projects could possibly that the first one was not an EMPTY MVC 2 Project... whereas the second one was.
Are there some definitions or settings that differ?
This is looking for a connection string in a web.config file. The connection string is named "RESTRO_DEVConnectionString" in that web.config file.
If you don't have this in your new web.config file, you can probably copy the line of XML fro the original web.config file.
精彩评论