System.ApplicationException: Cannot open file - system

I have an application that needs to open an excel file. However, when I run it, i get this error. I have already granted all permissions necessary to the file and the folders housing the file. Are there any other causes for this exception? My application is built on Visual Studio 2005 in VB and it is housed on a windows 2003 server. I've already tried refreshing the IIS as well.
Thanks!
Jennifer

Turns out the application on the server was pointing to a different version of the spreadsheet where the columns had been modified. I copied the spreadsheet that was on my local machine and copied it on to the new server (renaming the previous spreadsheet). Once the application was pointing to the correct spreadsheet, it worked.

Related

FileZilla Not Responding when accessing App_Data folder containing an MDF file

I am having a strange issue with FileZilla client Not Responding (Picture attached) exclusively when accessing my App_Data folder in an asp.net website which contains a mdf file (SQL Database file). The folder I'm trying to access is on my local machine. I do not have any issues with viewing any other file types.
I am running the newest version of FileZilla client (3.34.0), I have tried reinstalling. I've also tried deleting the files in AppData/Roaming/FileZilla to see if that was the issue. I've checked my crashdumps in AppData\Local\CrashDumps, and there are no dumps. I've also made sure all SQL services are not running in case the MDF file was somehow in use.
I've searched around the web, and haven't found anyone with the same issue, and as a temporary solution have to use Windows file explorer to manage my FTP for this site.
Has anyone had a similar issue, or have any ideas of what I can try next? Any help is appreciated.
FileZilla Client not responding

Accurev plugin with visual studio 2012

Every time I log into the Accurev plugin in visual studio 2012 I have to re enter the server information. Has anyone else run into this issue?
What version of Windows are you running and what are the User Access Controls (UAC) settings for the system? Higher UAC settings will block writing to files located within the "Program Files (x86)" directory, which is where AccuRev is installed and maintains the "acclient.cnf" file. This is the file that lists which servers are available for you to login. Open this file with a text editor, add the server you login to by adding a line like the following:
SERVERS = myserver:5050
Please notice the spaces before and after the equals sign is intentional and needed. Your server name can use either the short name of the fully qualified domain name. The number after the colon is port number that AccuRev uses for establishing connections.
This file is located in the "AccuRev\bin" directory.

Protecting information after installer VB 2012

When in make Installer on my project in Visual Basic 2012. I'm using InstallShield - and filed that i need to create the program are only "Debug or Realese" Folder. But there are files "program.exe.config" files. Everyone can open it if he has VB or program that can open VB 2012 files. In those files there is an information about connection to server that program makes. So they have my server name and mine user/password that gives access to mine sql server. Can i make the line with server information crypted and it still workes to avoid - changing server/logging into my server.
Or how can i block the files while i'm making the installer. - So they could not open them.
Store encrypted password and username in config file. And decrypt them inside code right before connection. This should make the trick.
Make the same with server name if you'd like to.

Windows Service File I/O Exception

I am trying to write a Windows service on a PC running 64-bit Windows using Visual Studio 2008. In this service, I am trying to read a a control file from an external drive located on a different machine on the same LAN. The path to the file from the reading machine will be via a mapped network drive...( T:). I am using a TextFieldParser from Microsoft.VisualBasic.FileIO class to read the file at T:\filename. I'm getting a file not found exception, however, the path to the drive works perfectly if I copy and paste it into Windows Explorer from the same machine.
Anyone know if there are any issues connecting in this manner and/or what I am doing wrong?
Thanks for you help.
You will need to make sure that the account under which the service runs has a drive mapping to T:, or, better, try using a UNC path (e.g. \\server1\someshare\filename). And you will still need to make sure that the account has access to the file. Try to use an account with its access rights limited to only what it needs, so not the Administrator account.

VB.Net 2005 Setup Project Application Data Folder no Content

Under VB.Net 2005, I created a Setup Project which produced installation files for a windows application. I placed the mdb file in the User's Application Data Folder and remapped the DataDirectory to Environment.SpecialFolder.ApplicationData at runtime. Unfortunately, sometimes the system just did create the mdb file at the Application Directory. An example was that I installed the program in Windows 7 under a normal user account. I chose inside the installer that the program would be made available to everyone. After installation, the mdb file would be created automatically for the Administrator account but not for the normal user account. For XP, the whole thing worked fine.
I am tempted to write a routine to check and create the mdb file if it is not present, but why does this happens and what other opinions do I have?
If the application is installed for all users instead of once for each user that logs onto the machine, then you will eventually run into a problem where the database isn't available for the signed on user.
In order to resolve this, you would probably be better off checking for the existence of the database on application startup and then either copying a standard version from the application directory to the current user's data directory or creating a new db from scratch in place. I would recommend the first approach.