C
Claude
I added a COM reference of Excel 2003 object model so I can
drive Excel from my C# .net application.
I've added code in a button click to write on an Excel worksheet.
When I run my application and click on the button,
the application interrops and an error occurs :
"SecurityException was unhandled"
"Cet assembly n'autorise pas les appelants d'un niveau de confiance partiel."
(sorry for the last one in french, but my IDE is in french) : in english it
would
sound like :
"This assembly does not authorize the appelants of a partial reliable level."
I've tried the exemple found at :
http://support.microsoft.com/default.aspx/kb/302084
but the error occurs again.
Products used :
Microsoft Visual C# .Net 2005 (Microsoft Visual Studio 2005 Pro SP1)
..Net 2.0 Framework
Microsoft Excel 2003 SP2 (Microsoft Office 2003 Pro)
What can I do to make it work ?
Thanks,
Claude
drive Excel from my C# .net application.
I've added code in a button click to write on an Excel worksheet.
When I run my application and click on the button,
the application interrops and an error occurs :
"SecurityException was unhandled"
"Cet assembly n'autorise pas les appelants d'un niveau de confiance partiel."
(sorry for the last one in french, but my IDE is in french) : in english it
would
sound like :
"This assembly does not authorize the appelants of a partial reliable level."
I've tried the exemple found at :
http://support.microsoft.com/default.aspx/kb/302084
but the error occurs again.
Products used :
Microsoft Visual C# .Net 2005 (Microsoft Visual Studio 2005 Pro SP1)
..Net 2.0 Framework
Microsoft Excel 2003 SP2 (Microsoft Office 2003 Pro)
What can I do to make it work ?
Thanks,
Claude