2009-03-15, 14:32
beefke Wrote:Both version 2.203 and 2.201 crash at my pc during startup (version 2.141 runs fine):
Windows XP Pro, .NET 3.5
system.invalidoperationexception
The media companion directory under C:\Documents and Settings\Caro\Application Data has not been created yet (even creating it, doesn't seem to do anything)
Any ideas?
I have absolutely no idea what is causing this.
The following is the code that is raising this message and exiting the program :
Code:
Public applicationdatapath As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Media Companion\"
Dim f As New IO.DirectoryInfo(applicationdatapath)
If Not f.Exists Then
Try
Directory.CreateDirectory(applicationdatapath)
Catch ex As Exception
MsgBox(ex.Message.ToString)
End
End Try
End If
I can't see why you are having an issue with this, for some reason the Directory.CreateDirectory(applicationdatapath) is failing and raising the exception and I don't know why, it has to be some kind of permissions problem