hi all,
I created the database in MS SQL Server 2008 using the .sql files in App_Data folder, here is my connection string:
<
add name="Classifieds" connectionString="Server=(local);Integrated Security=True;Database=classifiedsdb;" providerName="System.Data.SqlClient" />
however i am getting the following error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 1591: private void InitConnection() {
Line 1592: this._connection = new global::System.Data.SqlClient.SqlConnection();
Line 1593: this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["classifiedsConnection"].ConnectionString;
Line 1594: }
Line 1595: |
my question is: I want to remove the App_Data folder since i have created the database in my sql server, i don't need to attach the database file anymore. What do i need to do to get this working?