Questions tagged [app-data]
68 questions
2
votes
3 answers
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?

Boris Callens
- 90,659
- 85
- 207
- 305
2
votes
2 answers
Deploying NServiceBus sample to cloud fails due to use of App_Data?
I am using the sample from here
NService Bus Sample
and trying to deploy to Azure
I get the error below
Has anyone got any idea how to fix this?
The code they suggest in the message does not compile (LogManager.use is not valid)
Detected running in…

Paul
- 2,773
- 7
- 41
- 96
2
votes
1 answer
How can I write data to the App_Data folder in ASP.NET MVC?
I can write data to the App_Data folder in my ASP.NET Web API app like so:
string appDataFolder = HttpContext.Current.Server.MapPath("~/App_Data/");
var htmlStr = // method that returns html as a string
string htmlFilename = "platypus.html";
string…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
2
votes
2 answers
Run SQL script on MDF file in App_Data
I have the following setup:
Development: My own computer using an MDF file with a connectionstring which refers to my app_data folder.
Production: An online server with its own SQL database
When I want to create a new table / fields in my system,…

Lars Holdgaard
- 9,496
- 26
- 102
- 182
2
votes
2 answers
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…
name
1
vote
1 answer
asp.net: Can i modify a xml file in the App_Data folder without VS?
i have a (hopefully) simple question:
Can i modify a xml file located in the App_Data folder without Visual Studio?
I want another person who is not allowed to develop my project in Visual Studio to grant the permission to edit a xml file.
The…

Keith L.
- 2,084
- 11
- 41
- 64
1
vote
2 answers
Cannot access my class in WebMatrix (razor) App_Data folder
I have tried every solution I have found on stackoverflow but I cannot seem to access a class I created in the App_Data folder.
If I have this class (only showing part of the class):
public class Encryption
{
public string Encrypt(string…

Paul Keefe
- 298
- 2
- 11
1
vote
1 answer
MVC Code First: App_Data Folder Not Being Created
I'm using the MVC Code First approach to create a SQL Compact database (from WebConfig: data source=|DataDirectory|MailBoxDB.sdf). The .sdf file should get created automatically, and it does if I manually create the App_Data folder on the web…

jchadhowell
- 1,131
- 1
- 14
- 25
1
vote
1 answer
in the default ASP.NET project created using VS2010, where is |DataDirectory| set?
I see the following connection string in the default web.config:
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
I'm at the point when I want to change the…

Bassel
- 452
- 5
- 21
1
vote
2 answers
Get Manufacturer Name from Setup
In .NET, when creating a setup project the application files are stored in a path similar to this:
C:\Program Files\[Manufacturer]\[Product Name]
I am generating a folder inside of the common application data so I can read/write on Win 7 without…

Josh G
- 14,068
- 7
- 62
- 74
1
vote
3 answers
Handling of android app uninstallation
I have created some files through my android application. I want to remove these files when the application is removed from the device. How can I get it done. Any help will be appreciated..
Thanks in advance..

subair_a
- 1,028
- 2
- 14
- 19
1
vote
0 answers
iOS how to sync data from inhouse app with pc?
Quick summary: I am looking for a way to automatically sync data over cable from my app with a map on my computer.
Context:
I have a selfmade iOS app which I use as a tool during guided tours. This app is installed on 40 iPads and displays pictures…

Laurens Van Lieshout
- 33
- 4
1
vote
1 answer
Deploy App_Data folder to Azure Insufficient Permissions
I am running VS2015 as Administrator.
I have deployed before with files in App_Data folder.
I have deployed this project many times to Azure with success.
After adding a .pdf file today in App_Data folder and attempting to deploy I get this…

JoshYates1980
- 3,476
- 2
- 36
- 57
1
vote
0 answers
Can't read Excel file from the App_Data folder after uploading using a RadUpload

Dulan Chiranthaka
- 11
- 3
1
vote
1 answer
Can background services keep running when the App Data is encrypted in iOS
I am trying to research on creating an iOS application which has background services running in the background. The application data needs to be accessed for this background service.
Also I want the app data stored on the device to be encrypted. But…

user3498193
- 11
- 2