appdata

When should I opt for IsolatedStorage versus AppData file storage?

I've recently discovered the IsolatedStorage facilities in .net, and I'm wondering when I should use them for my application data versus when I should use (e.g.) Application.LocalUserAppDataPath. One thing that I've noticed is that Application doesn't exist outside of a winforms app, so it seems that IsolatedStorage might make sense for...

SHGetFolderPath() for a specific user.

I'm looking for a good way to get the local application data folder for a specific user -- without having to enter the login details for that user. SHGetFolderPath() can accept an access token for whatever user I want to get the local appdata folder for, but to get an access token, you have to provide the user's password. Also, accordin...

Allowing administrators to modify user's settings from within my program -- what's my best option?

I've been working on making my app easier to use for administrators. One of the things I'd really like to do is allow admins to modify other user's settings from within the program -- while still making it possible for regular ol' users to modify their own settings, as my application isn't necessarily only for administrators who want to ...

How to get a given user's AppData directory in C#?

Is it possible to get the application data directory for a given user who is NOT the user running the program in C#? ...

How do i add an App_Data folder in visual studio?

This is a silly question but How do I add an App_Data folder to a project? i have an xsd file that i want to include into the project. ...

How do I reference the Sqlite db file in the App_Data folder for my ASP.NET Web Application?

I'm currently storing my sqlite db file in the App_Data folder as per ASP.NET best pattern and practices. Currently I'm using the following in the webconfig: <connectionStrings> <add name="sqlite" connectionString="Data Source=|DataDirectory|MyDB; Version=3;" /> </connectionStrings> and the following in code: ...

Does Microsoft have a best practices document regarding the storage of App Data vs User Data on different Windows Platforms?

When creating an application that will be targeted to many versions of Windows what is the best practice to determine where application specific data should be stored. Specifically: Application Specific Data (e.g. app config data) User Specific Data/Settings I know on Windows Vista for instance there are environment variables, like %...

Disabling automatic generation of long url suffix on folder in AppData

Hello, From a Windows Forms .NET 3.0 application, I'm saving some user preferences using the built in Settings.Default.Save() mechanism. The results gets stored in the users AppData path as expected, but there's a long suffix attached to the folder name: C:\Users\Bob\AppData\Local\Acme\HelloWorld.exe_Url_ei0yyv33jvrgjqybolgkilwx2u1i32...

What is the suffix called in this example: HelloWorld.exe_Url_sbgzldmathiegtnjmnawytpet03ycanv?

Hello, I have a question about the very long random looking suffix that is appended to directories created in the AppData folder when saving user preferences from a C# .NET Windows forms application. For example: C:\Users\Bob\AppData\Local\Acme\HelloWorld.exe_Url_ei0yyv33jvrgjqybolgkilwx2u1i32lq\ The problem that I'm having is that I...

Writing files in App_Data causes tempdata to be null

I have a small asp.net MVC 1 web app that can store files and create directories in the App_Data directory. When the write operation succeeds, I add a message to the tempdata and do a redirectToRoute. The problem is that the tempdata is null when the action is executed. If i write the files in a directory outside of the web applications ...

How do I copy a DB from the server to the application's AppData folder?

Hello folks, I've been working on an ASP.NET application accessing a DB in my local machine. Now I want to have this DB in the app's AppData folder instead, so I can easily work on it from within VS SQL instance accessing the mdf file, and easily copy and share it between programmers. Thanks a lot! ...

Can 'Not putting my DB under the 'App_Data' affect the way Linq2Sql works?

Hello, I'm experiencing a problem while working with all my projects. I don't get Intellisense with Linq2Sql and, when I write partial classes in the model folder, properties created by the Linq2Sql designer are not recognized by the partial classes. So, I'm trying to rule out all the possible sources of the problem. I have 2 cases: ...

Does app data hide files or create a virtual folder?

My application creates a bunch of temporary .class files and I had been storing these files in my local application directory but I recently started storing these in appData. Everything functions fine and I even have a part of my application that creates an applet and needs to copy these .class files to make the applet and the applet wo...

Saving session data to ApplicationData Folder (Windows 7/WindowsVista/WindowsXP)

I am trying to save session data to the users local ApplicationData folder, but it Windows just seems to create a new ApplicationData folder with the files inside it wherever it wants. Sometimes it ends up on my desktop, and sometimes it's elsewhere. (like the bin folder, for example). It doesn't make any sense. I know that it redirect...

Windows application data directory

With the environment variable %allusersprofile% I can get the directory where common settings are stored. But most programs store their settings in the sub-folder "anwendungsdaten" (German, application data). Is there a way to get the direct path to this folder? The problem is that its name is language dependent. Thanks. ...

Problems with umlauts in python appdata environvent variable

Hi, I can't find a correct way to get the environment variable for the appdata path in python. The problem is that my user name includes special characters (the german ae and ue). I made a workaround wit PyQt for Vista and Windows 7 but it doesn't work for XP Systems. Does anybody know the correct encoding of these environment variabl...

Where is Win7's jump list system data stored?

As per Jumplist Extender, I'm trying to prevent other apps from refreshing their jump lists (it's assumed that the user WANTS to do this, seeing as this is a JL editor.) One idea is to look for file or registry changes, where the data may be stored, and prevent the data from being written to. The question is, where is the jump list data...

ASP.Net MVC SQLExpress Production Environment Update Scenario

New to actually deploying a Asp.Net MVC web application with sqlexpress in the App_Data folder, how would I handle database updates after it is live and in use. Here's my scenario and a few questions: I have an Asp.Net MVC 2 Web app w/ sqlexpress databases: [myappData.mdf, aspnetdb.mdf]. I was planning on publishing this to the produc...

SQL Express connect after editing in SQL Management Studio

I have a web application with a SQLExpress 2008R2 database in the AppData folder. I wanted to make an update to the database manually so in IIS I took the site offline. On the server I opened SQL Management Studio (as Administrator) and attached the database file and made my edits. I then detached the database dropping all connections...

Deploy SQL Express in App_Data directory

Despite using many sql databases before, I've never actually tried to develop an app with a database in the App_Data directory. Until now!! It's a small WCF service project, which has a sql express 2008 r2 database. Working in VS there are no problems, I thought it would be as easy as deploying to a server (win 2008 with sql 2008 r2 i...