Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Can't work with aspnetdb.mdf database in App_Data folder

$
0
0

I had a site on my xp computer that I was using with VWDExpress 2010, everything working fine. In particular, with the Database Explorer I could do everything I needed like adding or working with new tables or Views or working with the database diagram.

I got a new computer that is set up with Windows 7, so took the opportunity to update to VWD Express 2012.

I transferred all my website files to the new computer, and I can do most everything except working with the database explorer.

The aspnetdb.mdf database is there in the App_Data folder and when I do Preview in Browser, I can login and work with the site, so I'm connected to the database.

THE PROBlEM: When I look in the Database Explorer Pane I see this connection string in the data connections:

strConn (C:\Users\MyUsername\Documents\Visual Studio 2012\WebSites\MyWebsiteName\)

and when I click the expander arrow I see the tables and Views in the database ok but I cant do anything with them. I can't right-click and add a new table or show results or edit a table or anything. When I double-click on a view nothing happens -- it won't open up the View design.

I'm sure this is something simple, but I don't know how to fix it. Any help would be appreciated.

If it is of assistance, here is the connection string in my web.config file:

 <add name="strConn" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>