Author |
|
Malon Newbie
Joined: 30 August 2013 Location: South Africa
Online Status: Offline Posts: 4
|
Posted: 30 August 2013 at 5:42am | IP Logged
|
|
|
Hi Guys
I have installed webmail lite on a 2008R2 server, after installation when I navigate to the url to view the webmail interface, I get the error below, any ideas?
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.Web.AspNetHostingPermission, System, 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.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +42
System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +145
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +73
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +111
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +279
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 30 August 2013 at 5:51am | IP Logged
|
|
|
I understand this is about ASP.NET version of WebMail, and if so, this article looks relevant even though it's about the Pro. See if you can modify the application's trust level, that should fix the problem.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Malon Newbie
Joined: 30 August 2013 Location: South Africa
Online Status: Offline Posts: 4
|
Posted: 30 August 2013 at 6:15am | IP Logged
|
|
|
Hi Igor
Thanks, I did do that but still get the same. Please find a copy of my web.config file:
<?xml version="1.0"?>
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="0">
<listeners>
<!--<add name="MyListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\temp\webmail.log"/>-->
</listeners>
</trace>
</system.diagnostics>
<appSettings>
<add key="dataFolderPath" value="App_Data\"/>
<add key="WebMailFolderPath" value=""/>
</appSettings>
<system.web>
<httpRuntime maxRequestLength="32768" executionTimeout="3600"/>
<compilation defaultLanguage="c#" debug="false"/>
<customErrors mode="Off"/>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="60"/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<xhtmlConformance mode="Legacy"/>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
</configuration
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 30 August 2013 at 6:22am | IP Logged
|
|
|
You're quoting configuration file of WebMail Lite, but this is actually about main config file of Microsoft.NET Framework. Note that, instead of changing trust level, you might also try tweaking System.Web.AspNetHostingPermission directly.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Malon Newbie
Joined: 30 August 2013 Location: South Africa
Online Status: Offline Posts: 4
|
Posted: 30 August 2013 at 6:43am | IP Logged
|
|
|
In win2008R2, there is no option under administrative tools to do any changes. Any ideas
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 30 August 2013 at 6:45am | IP Logged
|
|
|
Nope, sorry. That would be IIS configuration issue, we suggest to check Microsoft support resources on this.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Malon Newbie
Joined: 30 August 2013 Location: South Africa
Online Status: Offline Posts: 4
|
Posted: 03 September 2013 at 11:34pm | IP Logged
|
|
|
Hi Igor
What I have done is install on a win2008 std server and this works 100% without any issues. I then set the win2008R2 server to the same settings as the win2008 std server but I still get the same error message.
Is this software compatible with win2008R2 as this software is only an update to win2008 std.
Regards
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 04 September 2013 at 2:23am | IP Logged
|
|
|
In the past, we didn't get any reports about incompatibilities with that Windows version.
Please consider switching to PHP version of the product, ASP.NET one isn't going to receive any updates anymore.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|