System.Security.Permissions.FileIOPermission

System.Security.Permissions.FileIOPermission

Postby robertosanval » Wed 06 Jun 2012 11:07

Hello,

I've moved a website in .net 2.0 from IIS6 to IIS7 and now the MySql connections are not working, I'm receiving the attached error.

My web.config it's the same that was in the old server, and I have the following lines in it:

<add assembly="CoreLab.Data, Version=4.70.22.0, Culture=neutral, PublicKeyToken=09AF7300EEC23701" />
<add assembly="CoreLab.MySql, Version=4.70.29.0, Culture=neutral, PublicKeyToken=09AF7300EEC23701" />
<add assembly="CoreLab.MySql.Web, Version=4.70.29.0, Culture=neutral, PublicKeyToken=09AF7300EEC23701" />

Thanks in advance

Image
robertosanval
 
Posts: 1
Joined: Wed 06 Jun 2012 11:00

Re: System.Security.Permissions.FileIOPermission

Postby Pinturiccio » Mon 11 Jun 2012 08:38

This issue can be caused by the fact, that IIS7 accounts have limited permissions. Give access for IUSR and IIS_IUSRS users to the whole folder of the website and to the App_Licenses.dll file in particular.
Pinturiccio
Devart Team
 
Posts: 1935
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for MySQL