New server and the upload is not working anymore?

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.
10/1/2010 9:59:23 AM
Gravatar
Total Posts 65

New server and the upload is not working anymore?

Hi,

We have tested the mojoportal for some time in a local server with IIS7 and MySQL and it has worked fine.

Now when we have moved the mojoportal site out on the real server we got problems with the upload. :

  1. Go to page where fileupload module is placed
  2. Press Add File and look for a local file(have tried everything from 100 kb to 10 MB)
  3. Press upload

The Progress window will now open and when its finished we are redirected the page with the following text :

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. 

Where can I find this log? I have checked the system log and the file download log but there is no information about this?

When I return to the filemodule page I can see my file and its size but if i try to download it the page will reload and the filmodule will be gone?

 

BestRegards
ed the p

 

10/1/2010 10:12:06 AM
Gravatar
Total Posts 18439
10/1/2010 11:34:53 AM
Gravatar
Total Posts 2214

Re: New server and the upload is not working anymore?

Hi,

You will want to become familiar with the links Joe A. posted above. There are many things to consider when moving site from one server to another. The biggest items to consider are: 1) does your host require medium trust configuration, 2) do you have the permissions set properly on the \app_data and \data directories?

HTH,
Joe D.

 

 

 

10/8/2010 8:43:28 AM
Gravatar
Total Posts 65

Re: New server and the upload is not working anymore?

Thanks!

Yes I do know about these problems, I went through them when I configure mojoPortal localy and I got it to run by using :

appcmd set config "Default Web Site/MojoPortalDev" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600 -commitpath:apphost

And then by running :

C:\Windows\System32\inetsrv>appcmd list config "Default Web Site/MojoPortalDev" -section:requestFiltering

I will get confirmation on the change.

When our host runs the first command(appcmd set config) it passes without any exception but when trying the second command they get the following exception in CMD :

appcmd list config "appsupport.se/appsupport.se v2.0 (Classic)" -section:requestFiltering
ERROR ( message:Configuration error Filename: \\?\g:\webusers\32724\appsupport.se\www\web.config
Line Number: 1096
Description: The configuration section 'system.web.extensions' cannot be read be cause it is missing a section declaration. )

We have got this exception before but that was when we first tried to run the MojoPortal at our host, by changeing the DefaultThreadPool from .NET 2.0 to .NET 4.0 it worked fine.

One can think that even if the second command is not working the setting should be set, but the upload do still freeze when uploading files over 30 MB? Its possible to upload files that are a couple of MB but not files over 30 MB.

I have checked with the host and the site is running in full trust.

I have also set :

<requestLimits maxAllowedContentLength="size_in_bytes"></requestLimits>

But the documentation also states that the following might have to be set also :

%SystemRoot%/system32/inetserv/config/applicationHost.config

I do however not find what exactly to set in this file? Our host have no clue.

BestRegards

10/14/2010 2:19:33 AM
Gravatar
Total Posts 65

Re: New server and the upload is not working anymore?

Hi!

We still got this problem, but I understand that it is most probably a setting in the server be course its runs fine on our local server.

I do however got a questions for you. Why is the maxUploadRate set to 300 and not the default -1? I see that when uploading files the max speed is around 300? Why not let it go faster?

It is possible to upload a file that is 18 MB but its not possible to upload a file that is 30+ MB? I do not get any exception, the upload screen just doesen´t start? Is this information that can help us pin down what limit that is the problem here?

BestRegards

10/14/2010 2:35:29 AM
Gravatar
Total Posts 65

Re: New server and the upload is not working anymore?

Its possible to upload a file that is 26,8 MB but not a file that is 29,4 MB.

BestRegards

10/14/2010 9:34:19 AM
Gravatar
Total Posts 1204
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: New server and the upload is not working anymore?

Yesterday I happened to go over every entry in the appSetting section of web.config. There is a key MediaFolderMaxSizePerFileInMegaBytes, which is set to 30 by default. That's awfully close to the cut-off value you're experiencing. I'd suggest overriding this with a larger value in user.config and see if it solves the problem. There are actually a number of related maximum size settings surrounding that in web.config, so you may want to experiment with those as well to get things working the way you need.

Jamie

10/14/2010 11:14:57 AM
Gravatar
Total Posts 83

Re: New server and the upload is not working anymore?

Thanks! but the site works just fine on the local server, so I suppose that it is not a setting in MojoPortal but a setting on the server that are wrong?

10/21/2010 8:42:46 AM
Gravatar
Total Posts 65

Re: New server and the upload is not working anymore?

Hi,

This is solved, the host reported that the setting was set to deny override in the host config file.

BestRegards

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