I'm in the process of installing a default 4.5.1_install installation onto IIS6.
My IIS server has its default security trust polict set to medium.
Having tried to install using the wizard I couldn't get past the permissions check as this would always fail completely (no boxes checked). I therefore tried to use the auto-install/traditional method and half way through running the install I get the error below.
It seems that this is due to Medium trust not being granted the FileIOPermission by default. I'm going to attempt to create a custom trust config file based on web_mediumtrust.config and include FileIOPermission as:
<IPermission
class="FileIOPermission"
version="1"
Read="C:\SomeDir;$AppDir$"
Write="$AppDir$"
Append="$AppDir$"
PathDiscovery="$AppDir$"
/>
Just thought I'd post this in case anyone else has similar issue. I'll post back to report my results.
Error I received was:
Error: Error configuring Child PortalRequest for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String PortalName, String FirstName, String LastName, String Username, String Password, String Email, String Description, String KeyWords, String TemplatePath, String TemplateFile, String HomeDirectory, String PortalAlias, String ServerPath, String ChildPath, Boolean IsChildPortal)
00:00:07.190 - Portal failed to install:Error!