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 section of your web.config file, add the following:
web.config
That should elevate your trust level, and you should be able to function normally after that.