Database Connection fails with 'Request for the permission of type' failed error message
Sample Error
Database Connection (OLEDB) Exception. Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Solution or Workaround
This error indicates a misconfigured server. The web server's .Net Framework is not configured to allow standard database connections.
First thing to do, try to change the trust level in the web.config file, by adding <trust level="Full" /> to the "system.web" section.
If that does not work, you will need to contact your web host or server administrator. PDshop does NOT require full trust, it will work in a medium trust environment, if the server was configured to allow standard database connections.
If you receive the error shown above, it indicates that some basic Asp.Net (.Net Framework) features are disabled. Things like making database connections are generally considered standard & safe (and required to host a website that has a database). This issue is usually the result of an oversight by your web host or server admin; they should have no problem addressing this issue.
See (or refer your admin/host) to the article from Microsoft titled "Configuring ASP.Net servers for Medium Trust" below.
First thing to do, try to change the trust level in the web.config file, by adding <trust level="Full" /> to the "system.web" section.
If that does not work, you will need to contact your web host or server administrator. PDshop does NOT require full trust, it will work in a medium trust environment, if the server was configured to allow standard database connections.
If you receive the error shown above, it indicates that some basic Asp.Net (.Net Framework) features are disabled. Things like making database connections are generally considered standard & safe (and required to host a website that has a database). This issue is usually the result of an oversight by your web host or server admin; they should have no problem addressing this issue.
See (or refer your admin/host) to the article from Microsoft titled "Configuring ASP.Net servers for Medium Trust" below.
Related Articles
Other Resources
Related Topics
Search for help...