Ajay Kumar
Guest
|
Posted:
Mon Jan 17, 2005 6:15 pm Post subject:
Error in loading excel dll into webpart |
|
|
Hi all,
I have created a web part library using c#. As in my web part it require to
have refrence of excel object. As i need to create a excel document at the
end.
So in my webpart code when ever i create an instance of Excel object it
gives me a security exception
like this
Exception: Request for the permission of type
Microsoft.SharePoint.Security.SharePointPermission,
Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c failed.
Plese suggest me in detail how to solve this.
Needed urgently
Thanks in advance.
Ajay kumar |
|
Kyle Petersen
Guest
|
Posted:
Tue Jan 18, 2005 5:42 am Post subject:
Re: Error in loading excel dll into webpart |
|
|
From experience, I don't recommend using Office components from a server
side technology (such as webparts or ASP.Net). Check out Q257757 for more
information.
The best solution I have found to manipulate Excel files from ASP.Net is to
use ADO.Net and the oldedb provider (Q316934)
Kyle Petersen
"Ajay Kumar" <AjayKumar@discussions.microsoft.com> wrote in message
news:43717C55-B6C2-4726-AD8E-D3AE483B2317@microsoft.com...
| Quote: | Hi all,
I have created a web part library using c#. As in my web part it require
to
have refrence of excel object. As i need to create a excel document at
the
end.
So in my webpart code when ever i create an instance of Excel object it
gives me a security exception
like this
Exception: Request for the permission of type
Microsoft.SharePoint.Security.SharePointPermission,
Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c failed.
Plese suggest me in detail how to solve this.
Needed urgently
Thanks in advance.
Ajay kumar
|
|
|