Server Error in '/' Application. Operation is not valid due to the current state of the object

Roberto 1 Reputation point
2021-04-20T09:54:30.073+00:00

Hi,

I used to enter in this website without any problem, but since 2 days now I am not able.

It gives me the following error

Why is giving me this error?

89419-image.png

I would be very grateful if someone could gave me a clue to solve this issue

Thanks in advance

Regards

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,316 Reputation points
    2021-04-21T06:13:56.33+00:00

    Hello @Roberto ,

    Welcome to Q&A Forum!

    We have same error during document uploading then apply following setting in web config file. please verify appSettings block properly added or not.

    Please following steps:

    1.Open IIS(Internet Information Services Manager) >> expand Sites folder >> select web application and right-click it >> click on Explore.

    89785-iis.png

    2.Can you check if your web.config is having this line else add this.

    <appSettings>  
       <add key="aspnet:MaxHttpCollectionKeys" value="5001" />  
    </appSettings>  
    

    Note:You can back up the web.config file in advance to prevent other errors.

    More information, please refer to this post.

    Thanks,
    Echo Du

    ========================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.