Question system.security.securityexception

rvlune

Member
Joined
Oct 24, 2007
Messages
10
Programming Experience
Beginner
Hello,

I have made an simple application (.exe).
When i run this program local on my machine it works fine.
When i run it from an server i get the system.security.securityexception message.

Is there a solution for my problem :confused:

Regards,
Reinder
 
first off all its better you paste your code right here , specially the section that thrown Exception.
it can contain many reasons , for example if you run the program under inappropriate USER account , it can cause these kind of problems.
first of all , put the section of code that produce exception into TRY & CATCH
& then do it like that :
VB.NET:
Try

Catch e As Exception
    MessageBox.Show(e.Message) ' e.message shows the reason of securityexception
End Try

by the way you have to at least tell us what is Error Message not the exception !
probably you need to set some permission under Administrator tools - Microsoft .NET framework ( version ) machine - all code & ... i think that path must be correct , check it
 
Last edited by a moderator:
Back
Top