I\'m using ASP.NET 4.0 with C# for an web application. There was a part to import data from excel file. I\'ve used Microsoft.Jet.OLEDB.4.0 to do that. The process is-
In the <System.Web> section of your web.config file, add the following:
<System.Web>
web.config
<trust level="Full" />
That should elevate your trust level, and you should be able to function normally after that.