I am a structural engineer in a consulting firm and I have been developing analysis applications for 15+ years. I am not an IT guy.
My problem is this. I have encountered a problem when I install a program on a machine other than mine. The program installs to other machines successfully, but when the application is executed on machines other than mine, a "generic error occurred in GDI+ .... at System.Drawing.Image.Save" error message is issued. This error does not occur on my machine.
The error occurs when an attempt is made to save a Bitmap image to file. I have used the Visual Studio Set and Deployment project to create an .msi file that installs the software. I am not sure if the issue lies with the installation settings in my installer package, such as the VB.Net Framework version, target machine security, or some other setting that I have not set correctly. As I stated earlier, I am not an IT guy, and I don't have much experience with program installation on other machines.
I have written an abbreviated program that isolates the source of the the error. A sample of the code that produces the error is given below. Again, the error does not occur on my machine. Any help would be appreciated.
Sub SaveBitmapFile()
Dim BitmapFileName, NewBitmapFileName As String
Dim FileInfo As New FileInfo(System.Windows.Forms.Application.ExecutablePath)
BitmapFileName = FileInfo.DirectoryName & "\BitmapFile.bmp"
NewBitmapFileName = FileInfo.DirectoryName & "\NewBitmapFileName.bmp"
Dim NewBitmapFile As New Bitmap(BitmapFileName)
NewBitmapFile.Save(NewBitmapFileName)
End Sub
My problem is this. I have encountered a problem when I install a program on a machine other than mine. The program installs to other machines successfully, but when the application is executed on machines other than mine, a "generic error occurred in GDI+ .... at System.Drawing.Image.Save" error message is issued. This error does not occur on my machine.
The error occurs when an attempt is made to save a Bitmap image to file. I have used the Visual Studio Set and Deployment project to create an .msi file that installs the software. I am not sure if the issue lies with the installation settings in my installer package, such as the VB.Net Framework version, target machine security, or some other setting that I have not set correctly. As I stated earlier, I am not an IT guy, and I don't have much experience with program installation on other machines.
I have written an abbreviated program that isolates the source of the the error. A sample of the code that produces the error is given below. Again, the error does not occur on my machine. Any help would be appreciated.
Sub SaveBitmapFile()
Dim BitmapFileName, NewBitmapFileName As String
Dim FileInfo As New FileInfo(System.Windows.Forms.Application.ExecutablePath)
BitmapFileName = FileInfo.DirectoryName & "\BitmapFile.bmp"
NewBitmapFileName = FileInfo.DirectoryName & "\NewBitmapFileName.bmp"
Dim NewBitmapFile As New Bitmap(BitmapFileName)
NewBitmapFile.Save(NewBitmapFileName)
End Sub