Access to theme.skin denied

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/6/2006 3:25:13 AM
Gravatar
Total Posts 4

Access to theme.skin denied

Hi, I've just installed and setup mojo portal for postgres on my XP system. It appears that the user authentication works, but I get an error trying to access theme.skin (See below.) I've tried all sorts of things, such as setting permissions, setting the trust to low, and making accessible to all actions (read, write, directory browsing, etc.) Nothing seems to work here. Can someone help? Server Error in '/mojoPortal' Application. -------------------------------------------------------------------------------- Access to the path 'C:\mojoportal\pgsqlreleasefiles\web\Data\Sites\1\skins\centered1\theme.skin' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\mojoportal\pgsqlreleasefiles\web\Data\Sites\1\skins\centered1\theme.skin' is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via [identity impersonate="true"/], the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [UnauthorizedAccessException: Access to the path 'C:\mojoportal\pgsqlreleasefiles\web\Data\Sites\1\skins\centered1\theme.skin' is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014515 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114 System.IO.File.Open(String path, FileMode mode) +42 mojoPortal.Web.mojoThemeVirtualFile.Open() +187 System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) +205 System.Web.UI.PageThemeParser.ParseInternal() +132 System.Web.UI.TemplateParser.Parse() +155 System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() +105 System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) +54 System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +256 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +29 System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(String themeName) +601 System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(HttpContext context, String themeName) +68 System.Web.UI.Page.InitializeThemes() +2021419 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +532 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
9/6/2006 3:31:21 AM
Gravatar
Total Posts 4

Re: Access to theme.skin denied

Sorry for the double post and the whacky formatting. I did use whitespace and decent formatting here, but it appears not to have taken.
9/6/2006 4:39:29 AM
Gravatar
Total Posts 18444

Re: Access to theme.skin denied

You need to make the Data folder beneath the root of the web writable by the aspnet worker process.
Right click the Data folder in Windows Explorer and go to Properties > security tab. (If you don't see a security tab, then google about xp, simple file security or simple file sharing). If ASP.NET Machine account is listed, give it full control. If its not listed, then click Add..>Advanced..> Find Now and add it then give it full permission.

Setting the Trust level to low makes security so tight mojoportal will not work. On your xp machine you should leave the trust level entry of web.config commented out so you run in Full trust.

Hope it helps,

Joe
9/6/2006 1:25:01 PM
Gravatar
Total Posts 4

Re: Access to theme.skin denied

Thanks Joe, that fixed it. It was the simple file sharing setting that threw me. Thanks for your help.
You must sign in to post in the forums. This thread is closed to new posts.