Hello All,
I have DNN application hosted on shared hosting with Hostgator.
To achieve one functionality i need to create folder at location root\Portals\0\Users but it throws below error
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Also while installing Onyak-FileShare module i got below error
DotNetNuke.Services.Exceptions.PageLoadException: Request for the
permission of type 'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
---> System.Security.SecurityException: Request 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.DirectoryInfo.Create() at
DotNetNuke.Services.Installer.Util.WriteStream(Stream sourceStream, String
destFileName) at
DotNetNuke.Services.Installer.InstallerInfo.ReadZipStream(Stream inputStream,
Boolean isEmbeddedZip) at
DotNetNuke.Services.Installer.InstallerInfo..ctor(Stream inputStream, String
sitePath) at DotNetNuke.Services.Installer.Installer..ctor(Stream inputStream,
String physicalSitePath, Boolean loadManifest, Boolean deleteTemp) at
DotNetNuke.Modules.Admin.Extensions.Install.wizInstall_NextButtonClick(Object
sender, WizardNavigationEventArgs e) in
d:\inetpub\vhosts\doctorsdaily.in\httpdocs\DesktopModules\Admin\Extensions\Install.ascx.cs:line
770 at
System.Web.UI.WebControls.Wizard.OnNextButtonClick(WizardNavigationEventArgs e)
at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at
System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source,
EventArgs args) at System.Web.UI.Control.RaiseBubbleEvent(Object source,
EventArgs args) at
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) at
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) The action that failed was: Demand The
type of the first permission that failed was:
System.Security.Permissions.FileIOPermission The Zone of the assembly that
failed was: MyComputer --- End of inner exception stack trace
Anyone has any idea, whats going wrong here?
Thanks in Advance.
-Avi