Hi,
I developed an VB.Net application using Microsoft Visual Studio .NET 2003. I created an msi for that application. After installing the msi package, the application runs perfectly with Admin privileges. If i log into some other user account where they dont have admin privileges, it throws the following error.
An unhandled exception of type 'System.Unautho rizedAccessExce ption' occurred in mscorlib.dll
Additional information: Access to the path "C:\Program Files\Sasken\Ne tSim\NS.txt" is denied.
The code i had written is:
Private userData As FileStream
userData = New FileStream(Appl ication.Startup Path + "\NS.txt",FileM ode.OpenOrCreat e)
Please help me to solve this issue.
Regards,
Siva.
I developed an VB.Net application using Microsoft Visual Studio .NET 2003. I created an msi for that application. After installing the msi package, the application runs perfectly with Admin privileges. If i log into some other user account where they dont have admin privileges, it throws the following error.
An unhandled exception of type 'System.Unautho rizedAccessExce ption' occurred in mscorlib.dll
Additional information: Access to the path "C:\Program Files\Sasken\Ne tSim\NS.txt" is denied.
The code i had written is:
Private userData As FileStream
userData = New FileStream(Appl ication.Startup Path + "\NS.txt",FileM ode.OpenOrCreat e)
Please help me to solve this issue.
Regards,
Siva.
Comment