Version 2.2.7.3 MSSQL Shared Files Upload error?

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.
12/6/2008 8:36:37 AM
Gravatar
Total Posts 112

Version 2.2.7.3 MSSQL Shared Files Upload error?

Hi All;

I am having problems uploading Shared Files. I think that it might not be a file size issue since a 747 KB .PDF will not upload, but a 3,110 KB .WMV uploaded fine along with other larger .WMV and .DOC files.

/cms/Error.htm?aspxerrorpath=/cms/Default.aspx:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

System Log:

2008-12-05 20:38:33,593 [8108] ERROR mojoPortal.Web.Global [(null)] - 66.249.70.24-en-US - /cms/contactme.aspx
System.Web.HttpException: The file '/cms/contactme.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)

2008-12-05 21:11:39,968 [4696] ERROR mojoPortal.Web.Global [(null)] - 209.85.238.18-en-US - /cms/blog13rss.aspx
System.Web.HttpException: The file '/cms/blog13rss.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)

2008-12-05 21:11:39,968 [4696] ERROR mojoPortal.Web.Global [(null)] - 209.85.238.18-en-US - /cms/blog13rss.aspx
System.Web.HttpException: The file '/cms/blog13rss.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)

2008-12-05 22:10:30,452 [6760] ERROR mojoPortal.Web.Global [(null)] - 69.153.52.94-en-US - /cms/Default.aspx?pageid=53
System.Web.HttpException: Request timed out.

2008-12-05 22:10:30,452 [6760] ERROR mojoPortal.Web.Global [(null)] - 69.153.52.94-en-US - /cms/Default.aspx?pageid=53
System.Web.HttpException: Request timed out.

2008-12-05 22:11:40,811 [6796] ERROR mojoPortal.Web.Global [(null)] - 209.85.238.18-en-US - /cms/blog13rss.aspx
System.Web.HttpException: The file '/cms/blog13rss.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)

2008-12-05 22:11:40,811 [6796] ERROR mojoPortal.Web.Global [(null)] - 209.85.238.18-en-US - /cms/blog13rss.aspx
System.Web.HttpException: The file '/cms/blog13rss.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)

There are other problems that exist for this site in this multi-site IIS application. I only mention them now wondering if they might have some relationship to my big problem of not being able to upload Shared Files. I will write them up better when I get past this upload Shared Files issue. Well, here they are:

 

The skin for this site gets an error when changed.
The skin appears changed after error.
The skin reverts to the previous instance (main site skin) in a while.

 

Many thanks for any help you can provide,
Dale E. Moore

 

12/6/2008 1:34:47 PM
Gravatar
Total Posts 18439

Re: Version 2.2.7.3 MSSQL Shared Files Upload error?

Hi Dale,

I recall fixing some things in Shared File module in recent versions. I recommend you upgrade to the latest version, but take note of the important skinning changes.

None of the errors you posted are related to this, they all look like 404 page not found errors.

Best,

Joe

12/7/2008 12:07:26 PM
Gravatar
Total Posts 112

Re: Version 2.2.7.3 MSSQL Shared Files Upload error?

Thanks Joe;

Well, I seem to still be experiencing the same Shared Files Upload error even after upgrading to mojoportal-2-2-7-9-mssqlrelease.

2008-12-07 12:02:07,803 ERROR mojoPortal.Web.Global - 69.153.52.94-en-US - /cms/downloads.aspx
System.Web.HttpException: Request timed out.

2008-12-07 12:02:07,803 ERROR mojoPortal.Web.Global - 69.153.52.94-en-US - /cms/downloads.aspx
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Web.UnsafeNativeMethods.EcbGetAdditionalPostedContent(IntPtr pECB, Byte[] bytes, Int32 offset, Int32 bufferSize)
at System.Web.Hosting.ISAPIWorkerRequestInProc.GetAdditionalPostedContentCore(Byte[] bytes, Int32 offset, Int32 bufferSize)
at System.Web.Hosting.ISAPIWorkerRequest.ReadEntityBody(Byte[] buffer, Int32 offset, Int32 size)
at System.Web.Hosting.ISAPIWorkerRequest.ReadEntityBody(Byte[] buffer, Int32 size)
at Brettle.Web.NeatUpload.FilteringWorkerRequest.ReadOrigEntityBody(Byte[] destBuf, Int32 count)
at Brettle.Web.NeatUpload.FilteringWorkerRequest.FillBuffer()
at Brettle.Web.NeatUpload.FilteringWorkerRequest.ShiftAndFill()
at Brettle.Web.NeatUpload.FilteringWorkerRequest.CopyUntilBoundary()
at Brettle.Web.NeatUpload.FilteringWorkerRequest.ParseOrThrow()
at Brettle.Web.NeatUpload.FilteringWorkerRequest.ParseMultipart()
at Brettle.Web.NeatUpload.FilteringWorkerRequest.GetKnownRequestHeader(Int32 index)
at System.Web.HttpRequest.CombineAllHeaders(Boolean asRaw)
at System.Web.HttpRequest.FillInServerVariablesCollection()
at System.Web.HttpServerVarsCollection.Populate()
at System.Web.HttpServerVarsCollection.Get(String name)
at System.Collections.Specialized.NameValueCollection.get_Item(String name)
at mojoPortal.Web.Framework.WebUtils.GetHostName()
at mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromCache()
at mojoPortal.Business.WebHelpers.CacheHelper.GetSiteSettingsFromContext()
at mojoPortal.Business.WebHelpers.CacheHelper.GetCurrentSiteSettings()
at mojoPortal.Web.UrlRewriter.GetRedirectUrl(String targetUrl)
at mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app)
at mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Though the smaller file 757 KB worked. The two files that currently fail are the largest files at 3,110 KB and 10,713 KB. While scratching my head and looking perplexed I wonder how I can tell what the maximum file size that can be upload is and how I might increase it?

I look forward to hearing from you,
Dale E. Moore
 

12/7/2008 12:46:43 PM
Gravatar
Total Posts 18439

Re: Version 2.2.7.3 MSSQL Shared Files Upload error?

There is a setting in Web.config:

<!--
this sets the max size of an upload if the
UploadHttpModule is not being used. In that case, the
entire request is stored in memory so large uploads
could be used as a Denial of Service attack.
use you own judgement in determining the max size of
a request you want to allow.
-->
<httpRuntime maxRequestLength="1000000" executionTimeout="360" useFullyQualifiedRedirectUrl="true" />

I think there may be other settings depending on the OS and version of IIS. You may want to look at the documentaton on the NeatUpload site as well.

Hope it helps,

Joe

12/7/2008 1:22:45 PM
Gravatar
Total Posts 112

Re: Version 2.2.7.3 MSSQL Shared Files Upload error?

<add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" /> is in Web.config. When I set  <httpRuntime maxRequestLength="2097151" executionTimeout="360" useFullyQualifiedRedirectUrl="true" /> is the maximum or I get errors like "The value for the property 'maxRequestLength' is not valid. The error is: The value must be inside the range 0-2097151." So, currently my maximum file size is 2,097,151.

If I want it larger I think that I need to do the following:

  1. run in Medium Trust
  2. install NeatUpload in the GAC
  3. revise several locations in Web.config to reference NeatUpload

Does that about sum it up?
Dale E. Moore

PS: Thanks for all your help!
 

12/7/2008 1:48:18 PM
Gravatar
Total Posts 18439

Re: Version 2.2.7.3 MSSQL Shared Files Upload error?

Running in medium trust or using the GAC are separate issues from the maxupload size. If its your own server things are easier if its in Full Trust.

Depending on your hosting its possible there are settings in machine.config that prevent your web.config settings from taking place. There may also be settings in the IIS metabase that limit file upload size independant of the .NET settings.

Hope it helps,

Joe

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