Hello, prior to the upgrade from 4.03 to 4.08, we were using Inventua's HrefExchanger for friendly URLs. Once we upgraded, we started receiving a security error whenever the HrefHttpModule was included in HttpModules section of Web.Config. We thought it might be an incompatibility, so we purchased DNN Master's SEO module which also has a friendly url module. When we implement this http module "DNNMastersSEORewrite" we receive the same security error. We host at GoDaddy and never had security problems before with these modules, only after the upgrade. All of the "requirepermission" attributes of the ConfigSection keys are set to "false". The two keys that generate the error are:
<!--<add name="DNNMastersSEORewrite" type="DNNMasters.SEO.Rewrite.RewriteUrl,DNNMasters.SEO.Rewrite" />-->
<!-- <add name="HrefHttpModule" type= "Inventua.HrefExchanger.HrefHttpModule,Inventua.HrefExchanger"/>-->
Any support you can provide us would be very helpful as our site is now generating all sorts of errors and we are probably getting dinged by search engines because of the 404 errors for urls. THanks!
The error we get is:
Security Exception
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.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.IO.Path.GetFullPath(String path) +98 DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.GetFileName(String FileName) +136 DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, Boolean PersistAppRestart) +37 DotNetNuke.Entities.Host.HostSettings.GetHostSettings() +293 DotNetNuke.Common.Globals.get_PerformanceSetting() +6 DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsDictionary(Int32 PortalId) +134 DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsCollectionByTabID(Int32 TabID, Int32 PortalId) +25 DotNetNuke.Entities.Tabs.TabController.FillTabInfo(IDataReader dr, Boolean CheckForOpenDataReader, Boolean CheckForLegacyFields) +1906 DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId) +57 DNNMasters.SEO.Rewrite.RewriteUrl.getPortalId2(HttpRequest request, String& portalTitle) +668 DNNMasters.SEO.Rewrite.RewriteUrl.context_BeginRequest(Object sender, EventArgs e) +458 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433