Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
OAuthWebSecurity for linkedin sign in not working for windows server 2008 R2 while same code is working perfectly on local enviroment. On website load it gives following error.

Response is not available in this context.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Response is not available in this context.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Response is not available in this context.]
System.Web.Util.HttpEncoder.get_Current() +11319698
System.Web.HttpValueCollection.FillFromString(String s, Boolean urlencoded, Encoding encoding) +237
System.Web.HttpUtility.ParseQueryString(String query, Encoding encoding) +170
DotNetOpenAuth.UriUtil.QueryStringContainPrefixedParameters(Uri uri, String prefix) +261
DotNetOpenAuth.OAuth.ServiceProviderDescription.set_RequestTokenEndpoint(MessageReceivingEndpoint value) +39
MyPedia.App_Start.LinkedInCustomClient..cctor() in C:\Users\deepak.jangir\Desktop\MyPediaMay\MyPedia\App_Start\LinkedInCustomClient.cs:115

[TypeInitializationException: The type initializer for 'MyPedia.App_Start.LinkedInCustomClient' threw an exception.]
MyPedia.App_Start.LinkedInCustomClient..ctor(String consumerKey, String consumerSecret) in C:\Users\deepak.jangir\Desktop\MyPediaMay\MyPedia\App_Start\LinkedInCustomClient.cs:136
MyPedia.AuthConfig.RegisterAuth() in C:\Users\deepak.jangir\Desktop\MyPediaMay\MyPedia\App_Start\AuthConfig.cs:49
MyPedia.MvcApplication.Application_Start() in C:\Users\deepak.jangir\Desktop\MyPediaMay\MyPedia\Global.asax.cs:25


My website is build with MVC4 and i am using OAuthWebSecurity login
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900