Welcome Guest Search | Active Topics | Sign In | Register

Crash:System.NotSupportedException: This headers collection can not be modified because the associat Options
serializer
Posted: Monday, October 30, 2017 2:03:12 PM
Rank: Advanced Member
Groups: Member

Joined: 5/9/2016
Posts: 84
Actual code line:
Quote:
if (WebAuto.OverrideReferer && args.Request.Headers["Referer"] != null)


This worked on previous versions. Currently using version: 17.2.43.0


[quote]Exception:

System.NotSupportedException: This headers collection can not be modified because the associated Request object is readonly.

at EO.Internal.aaf.c()

at EO.Internal.aaf.a(String A_0, String A_1)

at WebAutomation.WebBase.AENHFKOMDOELCJJKFJCDPBLMPIFDPLMEIOHL(Object , Object , Object )

at WebAutomation.WebBase.BeforeSendHeaders(Object sender, RequestEventArgs args) in C:\WebBase.cs:line 200

at EO.WebBrowser.WebView.i(cr A_0, arz A_1)

at EO.WebBrowser.WebView.a(cr A_0, arz A_1)

at EO.WebBrowser.WebView.b(cr A_0, arz A_1)



eo_support
Posted: Tuesday, October 31, 2017 1:02:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

You will receive this error if you try to modify the Headers collection. The code you posted does not modify the header collection, so it should not cause this problem. As such the offending code must be somewhere else. If you can not find any other code, please try the latest build and see if it resolves the problem for you. If that still does not resolve the issue, you can try to isolate the problem into a test project and send the test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Once we have that we will be happy to investigate further.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.