I can solve the problem by setting full permissions to the installation directory, but that seems like cheating. The installer works as expected on XP computers, however, when tested on Windows 7 machines an exception is thrown the first time a database call is made, which states that there are insufficient permissions on the folder containing the mdb file.Ä«etween Windows XP and Windows 7, windows seems to have locked down permissions on Program Files subfolders. The first time a database call is made, the database gets connected to the local SQL Server Express instance. The connection string is like this: Server=.\SQLExpress AttachDbFilename=|DataDirectory|MyDB.mdf Database=MyDB integrated security=true user instance=true I have built a Setup and Deployment (msi) package that installs the application and all it's depenedencies, including the mdb database file, into a working folder under the Program Files directory. I have developed a C# 4.0 desktop application that uses a SQL Server Express 2005 database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |