none
Operation is not valid due to the current state of the object. RRS feed

  • Question

  • Hi..In my ASp.net Application when i browse the file and try to upload it on the server the following error occurs. Please provide me the solution.

    Server Error in '/' Application.


    Operation is not valid due to the current state of the object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object.

    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:
    [InvalidOperationException: Operation is not valid due to the current state of the object.]
       System.Web.HttpRequest.FillInFormCollection() +8813018
       System.Web.HttpRequest.get_Form() +68
       System.Web.HttpRequest.get_HasForm() +8808023
       System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +97
       System.Web.UI.Page.DeterminePostBackMode() +63
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint

    Tuesday, October 15, 2013 12:31 PM

Answers

  • Hi Shahbaz,

    This is being caused by a patch to the ASP. NET service packs..... I had a server that didn't have the patch installed yet, it worked fine, installed the patch, stopped working, uninstalled the patch and it started working again. 
    http://technet.microsoft.com/en-us/security/bulletin/ms11-100
    Hope could help you.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, October 16, 2013 5:37 AM
    Moderator

All replies