Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
BrAiNumbc  
#1 Posted : Tuesday, December 10, 2013 11:16:13 AM(UTC)
BrAiNumbc

Rank: Member

Groups: Member
Joined: 2/12/2004(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)
This is driving me nuts. Windows 8 w/ IIS7.5 (as well as the Visual Studio 2013 dev server) have no issues uploading more than 1 file at a time. (FF25.0.1 and IE11).

When I deploy to IIS 7.5 on Windows Server 2012 (azure), I get a server error when trying to upload more than 1 file at a time. I've tried uploading 2 photos (about 4-5 megs each). It's set to only send thumbnails, not the source file so I doubt it's a size problem.

It definitely seems like an IIS configuration thing, but I've done all the recommended steps. It's in an Application Pool with another app that has no issues accepting large/numerous uploads at a time. The web config is modified so it contains the usual:

<system.web>

<httpRuntime maxRequestLength="150000" executionTimeout="9800" />

and

<security>

<requestFiltering>

<requestLimits maxAllowedContentLength="294967295" maxQueryString="2048" />

But no luck.

Attached is the error message in the server event viewer.

Event code: 4011

Event message: An unhandled access exception has occurred.

Event time: 12/10/2013 6:57:28 PM

Event time (UTC): 12/10/2013 6:57:28 PM

Event ID: 19e066807ccf4875b12cef4cc841b6c8

Event sequence: 114

Event occurrence: 4

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/3/ROOT-5-130311698803686560

Trust level: Full

Application Virtual Path: /

Application Path: C:\inetpub\wwwroot\staging\

Machine name: HFNSTAGING

Process information:

Process ID: 1548

Process name: w3wp.exe

Account name: IIS APPPOOL\DefaultAppPool

Request information:

Request URL: http://staging.arromanag...m/uploaddonesubject.aspx

Request path: /uploaddonesubject.aspx

User host address: 173.13.196.210

User:

Is authenticated: False

Authentication Type:

Thread account name: HFNSTAGING\brainumbc

Custom event details:

And here's the markup:

<cc1:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server" ManualRendering="False">

<Converters >

<%-- We only need thumbnails, not the whole source file --%>

<cc1:Converter Mode="*.*=Thumbnail" ThumbnailHeight="1440" ThumbnailWidth="1920" ThumbnailFitMode="Fit" ThumbnailJpegQuality="80" />

</Converters>

<UploadSettings ActionUrl="uploaddonesubject.aspx" />

<Messages FilenameNotAllowed="You can add only images."/>

<Restrictions FileMask="[['Images (*.jpg; *.jpeg)', '*.jpg;*.jpeg']]" />

<UploadPane ViewMode="Thumbnails" />

<ClientEvents>

<cc1:ClientEvent EventName="BeforeUpload" HandlerName="onBeforeUpload" />

<cc1:ClientEvent EventName="AfterUpload" HandlerName="reloadme" />

</ClientEvents>

</cc1:ImageUploaderFlash>

BrAiNumbc  
#2 Posted : Tuesday, December 10, 2013 11:17:15 AM(UTC)
BrAiNumbc

Rank: Member

Groups: Member
Joined: 2/12/2004(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)
Remember: The code works fine on a Windows 8.1 Pro machine. And on the Windows 2012 Server it uploads one file at a time with no issues.

I made a few small (40K) images and uploaded 2 of those together and the same "server side error has occured" so it's not a size issue. Too bad I don't get a detailed line number or anything in the event viewer.

The before/after events are really nothing special... just:

function reloadme(Html) {

__doPostBack('UpdatePanel1', '');

}

function onBeforeUpload() {

var uploader = $au.imageUploaderFlash('ImageUploaderFlash1');

uploader.metadata().addCustomField('myassetid', document.getElementById('assetid').value);

uploader.metadata().addCustomField('myagentid', document.getElementById('agentid').value);

uploader.metadata().addCustomField('myusertype', document.getElementById('usertype').value);

}

Edited by user Tuesday, December 10, 2013 11:43:41 AM(UTC)  | Reason: Not specified

BrAiNumbc  
#3 Posted : Thursday, December 12, 2013 10:55:22 AM(UTC)
BrAiNumbc

Rank: Member

Groups: Member
Joined: 2/12/2004(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)
One last note: The other site running in the same app pool where multiple files works fine: It's using Aurigma uploader 6.5. So same server, using aurigma, same app pool, practically the same web.config... and 6.5 lets you upload more than 1... server side error when using version 8

I took the code behind for the actionurl (uploaddonesubject.aspx) and removed EVERYTHING just to make sure it wasn't somethinng in my code.. the fileuploaded and pageload events don't do anything... same error

Edited by user Thursday, December 12, 2013 10:57:58 AM(UTC)  | Reason: Not specified

BrAiNumbc  
#4 Posted : Thursday, December 12, 2013 11:23:12 AM(UTC)
BrAiNumbc

Rank: Member

Groups: Member
Joined: 2/12/2004(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)
I think I answered my own question. I changed the debugscriptlevel to "3" and debugscriptmode to POPUP to see what's going on.

Apparently I was getting an "access denied" error on c:\inetpub\wwwroot\[MYAPPNAME]\App_code\blablablasomethingsomething folder.

This App_code folder appears in my project but wasn't getting published for some reason with web deploy. I'll see what I can do.

Hopefully this post helps someone in the future

thanks 1 user thanked BrAiNumbc for this useful post.
Andrew on 12/13/2013(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.