error thrown at application startup (mojoRoleProvider)

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/13/2007 1:44:13 PM
Gravatar
Total Posts 22

error thrown at application startup (mojoRoleProvider)

I deployed the release version of Mojoportal 2.2.3.3 for SQLite; browsing Default.aspx I get the following error:

Server Error in '/MojoPortal' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Exception has been thrown by the target of an invocation.

Source Error:


Line 453: <providers>
Line 454: <clear />
Line 455: <add name="mojoRoleProvider" type="mojoPortal.Web.mojoRoleProvider" />
Line 456: </providers>
Line 457: </roleManager>


Source File: C:\Inetpub\wwwroot\MojoPortal\web.config Line: 455


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

--

I set log level to DEBUG and this is the outcome:

2007-08-13 20:25:17,406 [2752] INFO mojoPortal.Web.Global [(null)] - Global.asax.cs Application_Start
2007-08-13 20:25:19,140 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /MojoPortal
2007-08-13 20:25:19,359 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /MojoPortal
2007-08-13 20:25:19,453 [2752] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest
2007-08-13 20:25:19,500 [2752] DEBUG mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper.cs LoadSiteSettings
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= localhost
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= localhost
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /MojoPortal
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= localhost
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= localhost
2007-08-13 20:25:19,562 [2752] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /MojoPortal
2007-08-13 20:25:19,656 [2752] ERROR mojoPortal.Web.Global [(null)] - System.Configuration.ConfigurationErrorsException: Exception has been thrown by the target of an invocation. (C:\Inetpub\wwwroot\MojoPortal\web.config line 455)
at System.Web.Security.Roles.Initialize()
at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2007-08-13 20:25:19,687 [2752] ERROR mojoPortal.Web.Global [(null)] - System.Configuration.ConfigurationErrorsException: Exception has been thrown by the target of an invocation. (C:\Inetpub\wwwroot\MojoPortal\web.config line 455)
at System.Web.Security.Roles.Initialize()
at System.Web.Security.RoleManagerModule.OnLeave(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Unfortunately I have not VS205 (except the Express Edition, would you consider making it usable?), so I can't check the debug version.

 

 

 

 

8/13/2007 5:08:57 PM
Gravatar
Total Posts 18439

Re: error thrown at application startup (mojoRoleProvider)

Can you try the new 2.2.3.4 files? The setup process is a lot more improved.

Joe

8/14/2007 2:30:12 AM
Gravatar
Total Posts 22

Re: error thrown at application startup (mojoRoleProvider)

Hi Joe, I tied the 2.2.3.4 release, and the installation went "quite" smooth: I now am seeing the Welcome page, but first had to face a minor issue:

in my first attempt I got:

--

Server Error in '/MojoPortal' Application.
--------------------------------------------------------------------------------

Could not find a part of the path 'C:\Inetpub\wwwroot\MojoPortal\Data\Sites\1\systemfiles\sitesettingscachedependecy.config'.
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.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\MojoPortal\Data\Sites\1\systemfiles\sitesettingscachedependecy.config'.

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:


[DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\MojoPortal\Data\Sites\1\systemfiles\sitesettingscachedependecy.config'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1971376
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, Int32 bufferSize, FileOptions options) +115
System.IO.StreamWriter.CreateFile(String path, Boolean append) +58
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +91
System.IO.StreamWriter..ctor(String path, Boolean append) +31
System.IO.File.CreateText(String path) +34
mojoPortal.Business.WebHelpers.CacheHelper.TouchCacheFile(String pathToCacheFile) +67
mojoPortal.Business.WebHelpers.CacheHelper.EnsureCacheFile(String pathToCacheFile) +27
mojoPortal.Business.WebHelpers.CacheHelper.RefreshSiteSettingsCache(String cacheKey, Int32 cacheTimeout) +179
mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromCache() +168
mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentSiteSettings() +5
mojoPortal.Web.mojoBasePage.OnPreInit(EventArgs e) +76
mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e) +14
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +521

--

I saw that the systemfiles folder is present in the zip archive but empty; my zip manager did not extract it; after creating manually the application started correctly. May I suggest you to Directory.Create() it anyway?

8/14/2007 6:34:39 AM
Gravatar
Total Posts 18439

Re: error thrown at application startup (mojoRoleProvider)

Yes, good suggestion, I will try to find a good place to check that and create the folder if it did not get deployed for some reason. Glad the installation was smoother this time.

Thanks,

Joe

You must sign in to post in the forums. This thread is closed to new posts.