Erick Smith
Erick Smith

Reputation: 930

Globally set AllowAutoRedirect in site?

I know you can set the AllowAutoRedirect after you instantiate the web service but is there a way to do it in the applications config? We are making lots of calls and was hoping there is a magic pill rather than acupuncture.

Upvotes: 0

Views: 758

Answers (2)

Álvaro Menezes
Álvaro Menezes

Reputation: 71

Answering this long gone post, because I'm currently dealing with it.

Not true, the reference to the WebService is actually a class that has a constructor where the AllowAutoRedirect can be manually set.

Look for Reference.cs inside your webservice folder under Web References folder.

In the constructor you want to write:

this.AllowAutoRedirect = true;

That way every time the web service is instantiated the property is set to true.

Upvotes: 2

Erick Smith
Erick Smith

Reputation: 930

Answering this as "No...there isn't".

Upvotes: 1

Related Questions