DotNetOpenAuth 4.0 and HTTPRequestInfo, NerdDinner 2.0

543 Views Asked by At

I'm using NerdDinner 2.0 as a base for learning DotNetOpenAuth. Great project BTW. I have it working using a DotNetOpenAuth DLL built on runtime version v2.0.50727 (came with the project). I would like to upgrade to a DotNetOpenAuth DLL built on runtime version v4.0.20926 but I get the following compile time error in the AuthController.cs file...

HttpRequestInfo clientResponseInfo = new HttpRequestInfo("GET", auth, auth.PathAndQuery, headers, null);

Exception:

DotNetOpenAuth.Messaging.HttpRequestInfo does not contain a constructor that takes 5 arguments.

Obviously I do not know what the code equivalent is in v4.0.20926. Any help is greatly appreciated.

1

There are 1 best solutions below

3
Andrew Arnott On

Try replacing this with:

HttpRequestBase clientResponesInfo = HttpRequestInfo.Create("GET", auth, headers, null);