C
CodeMan7777
I have written some simple code to open Excel in C#, but for some reason a
SecurityException is thrown instead.
MSExcel.Application xl;
xl = new MSExcel.Application();
The code compiles fine, but never executes well at runtime giving only:
An unhandled exception of type 'System.Security.SecurityException' occurred
in TestApp02.exe
Additional information: Security error.
Does anyone have an idea as to what I am missing? I have written similar VB6
code using GetObject(), but I can't remember ever coming accross a similar
security issue.
SecurityException is thrown instead.
MSExcel.Application xl;
xl = new MSExcel.Application();
The code compiles fine, but never executes well at runtime giving only:
An unhandled exception of type 'System.Security.SecurityException' occurred
in TestApp02.exe
Additional information: Security error.
Does anyone have an idea as to what I am missing? I have written similar VB6
code using GetObject(), but I can't remember ever coming accross a similar
security issue.