Solved

Application crashing when uploading a file in our asp.net application

Posted on 2007-12-07
3
648 Views
Last Modified: 2013-11-07
On our webpage we have an application which the user inputs data and can attach a file.  They are attaching a .pdf file and usually it works Ok.  Sometimes, the application crashes when it attempts to upload a file.  This doesn't happen on every file, only certain ones.  I've even had the user rescan and create a new pdf, just like the original with the same name and it went through Ok.  I've found this in our Application log on our web server.  Please feel free to ask more question regarding this.  As of now, we are still trying to find out what's happening.
Event Type:      Warning
Event Source:      ASP.NET 2.0.50727.0
Event Category:      Web Event
Event ID:      1309
Date:            12/6/2007
Time:            12:13:47 PM
User:            N/A
Computer:      WEB3
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/6/2007 12:13:47 PM
Event time (UTC): 12/6/2007 5:13:47 PM
Event ID: a1866b6b20ff415ebabbe3f125ade0b7
Event sequence: 1565
Event occurrence: 10
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/Root/CSX_IMS-7-128405598659531250
    Trust level: Full
    Application Virtual Path: /CSX_IMS
    Application Path: C:\Inetpub\wwwroot\CSX_IMS\
    Machine name: WEB3
 
Process information:
    Process ID: 2280
    Process name: aspnet_wp.exe
    Account name: WEB3\ASPNET
 
Exception information:
    Exception type: ArgumentException
    Exception message: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
 
Request information:
    Request URL: http://www.idcsi.com/CSX_IMS/Inspection/AddInspection.aspx?MODULE_ID=75 
    Request path: /CSX_IMS/Inspection/AddInspection.aspx
    User host address: 10.100.0.1
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: WEB3\iusr_idcs_remote
 
Thread information:
    Thread ID: 24
    Thread account name: WEB3\iusr_idcs_remote
    Is impersonating: False
    Stack trace:    at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)
   at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument)
   at System.Web.UI.WebControls.RadioButtonList.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.WebControls.RadioButtonList.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:
 
0
Comment
Question by:IDCSSupport
  • 2
3 Comments
 
LVL 14

Expert Comment

by:NBSO_ISS
ID: 20427004
Check this forum out...

http://forums.asp.net/p/922994/1064482.aspx

It looks like you can add
<pages enableEventValidation="false" />
to your the <system.web> section of your web.config

That is the easiest solution, but you can also register the event for validation (how to do it is in that forum as well)
0
 

Author Comment

by:IDCSSupport
ID: 20429032
We tried that and it's still failing.  From what I'm being told by our developers, the request knows it has a file to send but the file is not getting through.  This only happens on certain files, not all of them.  We have checked our firewall and any type of program that might block it (i.e. antivirus) and it's not being blocked by them.
0
 

Accepted Solution

by:
IDCSSupport earned 0 total points
ID: 20831730
Problem has been solved.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question