Page 1 of 1

System.Security.Permissions.FileIOPermission

Posted: Wed 06 Jun 2012 11:07
by robertosanval
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

Re: System.Security.Permissions.FileIOPermission

Posted: Mon 11 Jun 2012 08:38
by Pinturiccio
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.