Error in loading excel dll into webpart
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Error in loading excel dll into webpart

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Ajay Kumar
Guest





Posted: Mon Jan 17, 2005 6:15 pm    Post subject: Error in loading excel dll into webpart Reply with 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
Back to top
Kyle Petersen
Guest





Posted: Tue Jan 18, 2005 5:42 am    Post subject: Re: Error in loading excel dll into webpart Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB