?
Solved

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

Posted on 2007-12-07
3
Medium Priority
?
666 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

800 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