Answered by:
Issues in building a windows 8 cloud application

Question
-
Hi All,
I have created a windows 8 cloud application in vs 2010. When I run the project, I am getting error at the following location. web project -> CloudServices.Notifications -> Controllers -> EndpointController.cs
[AuthenticateEndpoint, AuthorizeManagementEndpoint] public HttpResponseMessage<Endpoint> Get(string applicationId, string deviceId) {
The error is "The non-generic type 'System.Net.Http.HttpResponseMessage' cannot be used with type arguments" .
Nazia
- Changed type Nazia Firdouse Friday, June 8, 2012 1:00 PM
Friday, June 8, 2012 12:59 PM
Answers
-
The generic of HttpResponseMessage has been removed. There's a forum post from some of the developers over here: http://aspnetwebstack.codeplex.com/discussions/350492. There's also another MSDN forum post here discussing a new method of writing the code: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/e90d582a-7023-44a1-b311-4fe1370b0314. Hope that helps.
- Proposed as answer by Brian Hilstrom Friday, June 8, 2012 1:29 PM
- Marked as answer by Nazia Firdouse Friday, June 8, 2012 1:42 PM
Friday, June 8, 2012 1:29 PM
All replies
-
The generic of HttpResponseMessage has been removed. There's a forum post from some of the developers over here: http://aspnetwebstack.codeplex.com/discussions/350492. There's also another MSDN forum post here discussing a new method of writing the code: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/e90d582a-7023-44a1-b311-4fe1370b0314. Hope that helps.
- Proposed as answer by Brian Hilstrom Friday, June 8, 2012 1:29 PM
- Marked as answer by Nazia Firdouse Friday, June 8, 2012 1:42 PM
Friday, June 8, 2012 1:29 PM -
Thanks Brian. Then how the PNWorkerSample from windows azure toolkit is working. When I run that sample project, I am not getting this error. Can you please explain me the reason?
Nazia
Friday, June 8, 2012 1:42 PM -
I don't know where that sample is. Do you have a link so I could check out the code?Friday, June 8, 2012 2:08 PM
-
Hi Brian,
Here is the link for the PNWorker Sample.http://watwindows8.codeplex.com/wikipage?title=Push%20Notification%20Worker%20Sample.
Nazia
Monday, June 11, 2012 4:12 AM -
If I open the source code for that sample, I get the same error message. Do you not see the error if you open the source code?Monday, June 11, 2012 1:03 PM
-
No Brian, I am not getting the error when I run the sample.
Nazia
Monday, June 11, 2012 1:08 PM -
If it's not displaying that error, and if it builds correctly, it's referencing an outdated version of HttpResponseMessage. New Metro projects (in the Win8 RC) that reference the correct assembly should not be able to make generic HttpResponseMessages.
Monday, June 11, 2012 1:16 PM