Blog's Add post feature fails on GoDaddy

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.
7/6/2009 12:42:04 AM
Gravatar
Total Posts 5

Blog's Add post feature fails on GoDaddy

Mojoportal 2.3.1.0 installed successfully on GoDaddy, IIS7, MSSQL, write permissions granted to data folder just fine. I add a new page called "Blog", and add the blog feature to this page. What could I be doing wrong, or not doing?

When I click on add post though, I get the following when the customerrors is turned off:

Server Error in '/blog' 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: Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified. (D:\Hosting\xxxxxxx\html\web.config line 893)

Source Error:

[No relevant source lines]


Source File: D:\Hosting\xxxxxxx\html\web.config Line: 893

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3072

7/6/2009 12:47:46 AM
Gravatar
Total Posts 5

Re: Blog's Add post feature fails on GoDaddy

Here's the system log file dump as well:

2009-07-05 22:05:47,844 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2009-07-05 22:05:52,727 INFO mojoPortal.Web.Global - Application Started.
2009-07-05 22:05:52,742 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, this error is expected when running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at mojoPortal.Web.Global.RegisterVirtualPathProvider()
at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
MyComputer
2009-07-05 22:41:37,378 INFO mojoPortal.Business.WebHelpers.IndexHelper - IndexHelper.RebuildPageIndex - Home
2009-07-05 22:41:37,441 ERROR mojoPortal.Business.WebHelpers.IndexHelper - System.ArgumentException: attempt to access a deleted document
at Lucene.Net.Index.SegmentReader.Document(Int32 n, FieldSelector fieldSelector)
at Lucene.Net.Index.IndexReader.Document(Int32 n)
at mojoPortal.Business.WebHelpers.IndexHelper.ClearPageIndex(PageSettings pageSettings)
2009-07-05 22:41:37,441 INFO mojoPortal.Business.WebHelpers.HtmlContentIndexBuilderProvider - HtmlContentIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,706 INFO mojoPortal.Features.ForumThreadIndexBuilderProvider - ForumThreadIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,768 INFO mojoPortal.Features.SharedFilesIndexBuilderProvider - SharedFilesIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,799 INFO mojoPortal.Features.CalendarEventIndexBuilderProvider - CalendarEventIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,831 INFO mojoPortal.Features.GalleryImageIndexBuilderProvider - GalleryImageIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,862 INFO mojoPortal.Features.LinksIndexBuilderProvider - LinksIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,893 INFO mojoPortal.Features.BlogIndexBuilderProvider - BlogIndexBuilderProvider indexing page - Home
2009-07-05 22:41:37,924 INFO WebStore.UI.Helpers.ProductSearchIndexBuilder - ProductSearchIndexBuilder indexing page - Home
2009-07-05 22:41:45,475 INFO mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2009-07-05 22:41:45,490 INFO mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2009-07-05 22:41:45,615 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2009-07-05 22:41:45,631 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2009-07-05 22:42:36,472 INFO mojoPortal.Business.WebHelpers.IndexWriterTask - started IndexWriterTask task
2009-07-05 22:42:45,895 INFO mojoPortal.Web.WebTaskManager - started WebTaskManager task
 

7/6/2009 12:49:35 AM
Gravatar
Total Posts 5

Re: Blog's Add post feature fails on GoDaddy

So web.config line 893 is: <add name="GCheckoutBasicAuthenticationModule" type="mojoPortal.Web.GCheckoutBasicAuthenticationModule, mojoPortal.Web" />

Is there something that's not getting commented out somewhere due to medium trust?...

7/6/2009 4:50:16 AM
Gravatar
Total Posts 18439

Re: Blog's Add post feature fails on GoDaddy

Hi,

None of the log info posted is relevant. The error about medium trust will be logged every time the application starts, the error about lucene will happen when there is not yet a search index, the rest is just info messages. I would clear the log, cause the error and look for a better clue in the log.

I assume you did rename Web.config to Web.fulltrust.config and rename Web.mediumtrust.config to Web.Config as mentioned in our medium trust document

Also make sure the App_Data folder exists and is writable.

Make sure your hosting is 3.5 .NET SP1.

I am not aware of any need to comment out the GCheckoutBasicAuthenticationModule in medium trust but if you are not using google checkout you can safely comment it out and see if that solves it.

Was this a clean install or did you populate the db on another machine and the move it to hosting?

Hope it helps,

Joe

7/6/2009 9:39:17 AM
Gravatar
Total Posts 5

Re: Blog's Add post feature fails on GoDaddy

Hi Joe,

Yes, I followed the instructions for medium trust to the letter in the medium trust document, app_data is writable, hosting is on .net 3.5 SP1, and it is a clean install. Mojo is also installed at the root of my hosting directory. Whenever I try to add a new post, the errors are not stored in the system log.

This is a recurring message in the logs as well with virtualpath and cannot find the file /blog/jeff/rss.aspx.

System.Web.HttpException: The file '/blogs/jeff/rss.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2009-07-06 04:26:27,513 ERROR mojoPortal.Web.PageNotFoundHttpModule - 69.63.178.250 PageNotFoundHttpModule handled error.
System.Web.HttpException: The file '/blogs/jeff/rss.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2009-07-06 05:04:57,995 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2009-07-06 05:50:29,140 INFO mojoPortal.Web.Global - Application Started.
2009-07-06 05:50:29,155 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, this error is expected when running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at mojoPortal.Web.Global.RegisterVirtualPathProvider()
at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
MyComputer
2009-07-06 05:50:31,418 ERROR mojoPortal.Web.PageNotFoundHttpModule - 209.85.238.228 PageNotFoundHttpModule handled error.
System.Web.HttpException: The file '/blogs/jeff/rss.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2009-07-06 06:13:31,186 ERROR mojoPortal.Web.PageNotFoundHttpModule - 69.63.178.251 PageNotFoundHttpModule handled error.
System.Web.HttpException: The file '/blogs/jeff/rss.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2009-07-06 07:25:30,145 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2009-07-06 07:36:21,348 INFO mojoPortal.Web.Global - Application Started.
2009-07-06 07:36:21,364 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, this error is expected when running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at mojoPortal.Web.Global.RegisterVirtualPathProvider()
at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
MyComputer
 

7/8/2009 9:02:09 AM
Gravatar
Total Posts 18439

Re: Blog's Add post feature fails on GoDaddy

Hi,

This is not a naturally created feed url, mojoportal does not generate feed urls with that extra segment /jeff/, so I do not understand how that error happens unless you are overriding the feed url using the feedburner setting or some other way, or have configured something strangely. Not even sure this error is happening when you make a post, it could happen on any request for this invalid url.

I would clear the log, then cause the error and then look in the log and see if its the same error or not.

Hope it helps,

Joe

7/8/2009 1:42:43 PM
Gravatar
Total Posts 5

Re: Blog's Add post feature fails on GoDaddy

While clearing out the rest of  my godaddy account, it turns out the "/blog" directory still had an application registration associated with it. Once that was removed (and database and directory structure were cleaned out), MojoPortal started working great across the board. Thanks for your help.

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