Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1452

MySql.Web.SessionState run in medium trust produces error (no replies)

$
0
0
All,
I am trying to use the .net connector session state provider in medium trust mode as it is required by my hosting company (GoDaddy) but I get the following configuration error:

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Request for the permission of type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

Line 63: <providers>
Line 64: <remove name="MySqlSessionStateProvider"/>
Line 65: <add name="MySqlSessionStateProvider" type="MySql.Web.SessionState.MySqlSessionStateStore, MySql.Web, Version=6.3.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="MySqlServer" applicationName="/" />
Line 66: </providers>
Line 67: </sessionState>

This however runs just fine in full trust mode. I have re-created the error with mysql ver. 6.2.3.

The sessionState provider declaration is:
<sessionState cookieless="true" regenerateExpiredSessionId="true" mode="Custom" customProvider="MySqlSessionStateProvider">
<providers>
<remove name="MySqlSessionStateProvider"/>
<add name="MySqlSessionStateProvider" type="MySql.Web.SessionState.MySqlSessionStateStore, MySql.Web, Version=6.3.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="MySqlServer" applicationName="/" />
</providers>
</sessionState>


Would greatly appreciate any help,
Thank you.

Viewing all articles
Browse latest Browse all 1452

Latest Images

Trending Articles



Latest Images