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


Summary

This article provide a solution to following error "Operation is not valid due to the current state of the object".

Applies To

This article applies to MachPanel build v5.6.29

Error Message:

Following Error appears on clicking Next after Offer tab in CSP service plan.

We apologize for the inconvenience, but the system has encountered an error.

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

Solution:

Update web.config appSettings section as below: Default Path: C:\Program Files\MachSol\MachPanel Control Server


<appSettings>

        <add key="aspnet:MaxHttpCollectionKeys" value="100000"/>

        <add key="MachPanel_LWS.lws" value="http://localhost/webservice/lws.asmx"/>

<add key="MachPanel_LWS.LWS2.lic" value="http://localhost/webservice/lic.asmx"/>

       <add key="MachPanel_LWS.lic" value="http://ls2.machsol.com/webservice/lic.asmx"/>

</appSettings>