I've been trying to get this to work on 1and1. I've come across the following problem:
Description: 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.
string loginUrl = Href(Utils.RelativeWebRoot + "Account/login.aspx");
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54
System.Web.HttpContextWrapper.GetService(Type serviceType) +11
System.Web.WebPages.UrlRewriterHelper.IsUrlRewriterTurnedOn(HttpContextBase httpContext) +108
System.Web.WebPages.UrlRewriterHelper.WasRequestRewritten(HttpContextBase httpContext) +13
System.Web.WebPages.UrlUtil.GenerateClientUrlInternal(HttpContextBase httpContext, String contentPath) +138
System.Web.WebPages.UrlUtil.GenerateClientUrl(HttpContextBase httpContext, String basePath, String path, Object pathParts) +144
System.Web.WebPages.WebPageExecutingBase.Href(String path, Object pathParts) +44
Is there any way around this? 1and1 will not change their policy :(
You need to run far far away from 1&1 and GoDaddy for they offer horrible service for BlogEngine.Net.
Give us at try at:
Our Basic Hosting Prices is below:
We offer a set-up specifically design for BlogEngine.Net so no adjustments need to be made on your end to make it work.
Just Upload, Enable write permissions, and Go!
BE would be up and running in about 5-10 mins tops.
Our prices are also the lowest you will find in the World.
These are our every day prices and not specials or one time only specials.
Our basic starts off at $0.99 and Goes lower!
We also offer 6 Billing cycles you can choose and each offers a different level of a discount.
If you have any questions please ask them here.
Have a great day!