Last post Jan 22, 2009 06:26 PM by viva-emptiness
Jan 22, 2009 04:42 AM|viva-emptiness|LINK
i have a very strange problem. yesterday, when trying to upload a beta version of a portal into our shared hosting (1&1), i got the following error:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
after investigating, i figured out that a simple ajax web site that has nothing more than a default.aspx page containing a scriptmanager (or toolkitscriptmanager) AND a login control will
throw this exeption. i do not have this error in my local dev machine or in our local testing server. removing either the login control or the scriptmanager will resolve the problem, but having both on the same page will always throw this error. i also tried
changing in web.config the trust level from default high to medium, but didnt get any error.
Jan 22, 2009 09:43 AM|kilko|LINK
This seems to be a permission error. Try applying write permissions to the folder in question and this should help.
Jan 22, 2009 09:44 AM|TOMCIO|LINK
I will try to make it VERY easy for you and save you a looot of time - change hosting ! try
softsyshosting both are cheap and very good
Really 1&1 is great as long as you will use it for static pages or simple web app. BUT if you plan use "new" things .net 3.5, ajax and more you are out of luck. It took them almost year to upgrade
plans to .net 2.0 and they have a lot of restrictions on shared accounts. They (1&1) have great deals for dedicated and vps (so you can install whatever you want)
Jan 22, 2009 10:43 AM|HostingASPNet|LINK
As kilko said you should apply write/modify permissions, but if you could not resolve the problem ask 1&1 support for help.
Jan 22, 2009 01:37 PM|viva-emptiness|LINK
yep, already planning to move to another hosting company, i am mostly used to dedicated hosting, and had worked on nice web+db dedicated server configs in the past. but now joined a smaller new company and our needs are limited.
what would you recommend for a reliable flexible dedicated hosting solution with moderate needs, we mostly build very small portals for clients and host them, but i will not give up on asp.net 2.0/3.5 and sql server 2005 :)
how much would it cost all in all (primary set up + monthly fees) for one server with vpn remote access.
Jan 22, 2009 01:39 PM|viva-emptiness|LINK
ho, and btw, i didnt find any solution except removing the scriptmanager from the page that has the login control (scriptmanager was included in the master page actually, now i have to put it individually in every page..), and 1&1 support did not help much
Jan 22, 2009 02:10 PM|HostingASPNet|LINK
RackSpace are some of the best for Dedicated Hosting, but they are not cheap.
Jan 22, 2009 06:26 PM|viva-emptiness|LINK
well, i am looking for something not expensive and offers maximum flexibility. i have never dealt with vps...
in my case ,what is the best and cost effective solution?