Weird dmxconnect.asp error

Not sure why I am getting this error. How do I troubleshoot that?

{type: "Error", fileName: "dmxConnect.asp", errorNumber: -2147467259,…}
errorNumber: -2147467259
fileName: "dmxConnect.asp"
message: "maximum request length exceeded"
stack: []
type: "Error"

Hey Baub, are you getting this error on file upload?

I have a file load component, but I have it greyed out for testing. previously the file upload was working with no problems, I was troubleshooting the way the name was formed on save to the database and had it greyed out ( no loading) but this is on the testing server so maybe I need to change the the size of the allowed upload?

https://www.smarterasp.net/support/kb/a1544/how-to-resolve-maximum-request-length-exceeded.aspx

its not file size, the size is way under the limit. This page worked before and I was just changing the way that a file was saved to the database and then started having this error. Seems really weird to me.

Please check the solutions in this topic. The most common issues causing this error is one of these settings in web.config: asp.net - Maximum request length exceeded. - Stack Overflow

There are two PHP settings to check, the obvious one is upload_maximum_filesize but also there is also post_max_size which should be at least the upload_maximum_filesize plus any other post variables so ensure it is megabyte or more larger.

If unsure use phpinfo() to check, there is a post on phpinfo() on the forum

It’s an asp/IIS error Brian :slight_smile:

Its not a file size error. the file size is way under the standard limit.

I created a different script that all it does it grab variables from the form and thats it. so no upload, no database adds. So basically just a blank action script and I still get the same error.

I stripped it down to a test page:

http://testing.hitekfab.com/testingserveruploadtest.asp

I think it has to do something with server config, but I don’t think its the limits of the files actually as files I am uploading are way under the default limit.

On the actual site it works, on the testing site it doesn’t. I’ve compared both back and forth but to no avail.

I’ve added sizing to the web.config

    <system.web>
    <customErrors mode="Off" />
		<httpRuntime maxRequestLength="500000" executionTimeout="120" />
  </system.web>
<system.webServer>
    <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="500000000" />
      </requestFiltering>
   </security>

maybe it is filesize, I just tried a 45k file and it uploaded. So looking at why the file size isn’t allowing correctly.

If it’s not these properties in webconfig maybe it’s the ASP limits properties …

Got it solved. You look at this stuff and compare it to the other site and you just miss some obvious stuff I guess. Even though I had the web.config stuff in there it still didn’t work. changed it here and I was off to the races.

1 Like

A post was split to a new topic: MaxBodyLenght exceded