app-data

Deploy doesn't copy app_data's subfolders

My web project has an app_data folder with subfolders. When I deploy my project from visual studio2008 (r-click, deploy, include app_data ticked) it only copies files from the app_data root, not it's subdirs. Is there a way to fix this? ...

how to use an mdf in App_Data with shared hosting

If I create a website that uses an mdf in App_Data with the connection string: Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf;Database=dbname; Trusted_Connection=Yes; what do I need to do to run the site in a shared hosting environment? Do I need to copy the contents of my mdf to the main SQL Server engine of my ...

Why are certain files not published in the App_Data folder?

I'm using Visual Studion 2008 to build and deploy a webservice project. I've added a bunch of files to the App_Data folder: some xml, some plain text and 2 pdf's. All these files are included in the .csproj file (if they are not, they will not be published) But when doing a 'publish' from VS2008 (of course with the option 'Included file...

Images that are in App_Data folder not shown in browser

When I set image URL property to asp image control that is in App_Data folder, image is showing in page design view but not in browser. <form id="form1" runat="server"> <div> <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Data/p3.jpg" /> </div> </form> It seems to be looking straight forward, but not showing image. Thanks ...

Visual Studion 2008 App_Data defaults

Is it possible to use the App_Data folder in conjunction with SQL Server 2005? When I try it specifies Express even though I have changed the Tools>Options>Database>Data Connections to the correct server. I have downloaded SQLEXPR32_x86_ENU.exe Version 10.0.1600.22 file locally and have gone through 7 installs and deinstalls with a var...

Access an XML file in /App_Data folder of my WCF service?

How do I access an XML file I added to /App_Data folder in my WCF Service? ...

Getting Access denied trying to read a file in App_Data in a ASP.NET project - Any pointers?

I've an XML file stored in App_Data which is only used to read some configuration on startup. When I attempt to open it within my code, I get an Access to the path ... is denied message. I'm having trouble understanding why, and how to solve it. I guess in theory I should alter the permissions on the file (and directory), but this has...

Asp.net mvc can not work without App_Data

I'm using a custom security (no membership provider). After the user logs in ... a folder "App_Data" with ASPNETDB.MDF gets automatically created ... on my local machine. If I deploy this to a remote server, it will not work due to security constraints on App_Data. Even if I delete this folder and restart the application ... it is re-cr...

Asp.net app_data folder contains db.

I am using VS 2005 I am new to asp.net i have a project created in asp.net c# which is using sql server express edition local database. there is a app_data folder there is *.mdf file inside i can see it also i can browse the tables from it. In app data folder i can see there are few .sql scripts named CreateAllObjects.sql DeleAllData...

Asp.net app_data connect db

I am having sql server express edition local database in app_data folder. How can i connect SQL Server Management Studio Expres with that db to execute sql scripts ? ...

Sql Express DB in APP_DATA when using IIS Virtual Directory

I want to setup a website that uses an SQL Express .mdf file located in the APP_DATA folder. when I create the site as a file-system website, it connects to the database file without issue... however when I create the same site in IIS and I get to the point where it wants to attach to the SQL Express database, it says it cannot connect....

ASP.NET app wont share database with Sql Server Management Studio Express

I have an ASP.NET 3.5 app with a SQL 2005 Express .mdf database file in its App_Data folder. Lets call that Foo.mdf. On its own the ASP.NET app can connect to the database with no problems. So far so good. Then, if I install Sql Server Management Studio Express on the server and start it, it finds the local SQLEXPRESS instance and conne...