用于登录的OAuthWebSecurity不适用于Windows Server 2008 R2。 [英] OAuthWebSecurity for linkedin sign in not working for windows server 2008 R2.

查看:121
本文介绍了用于登录的OAuthWebSecurity不适用于Windows Server 2008 R2。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OAuthWebSecurity for linkedin登录不适用于Windows Server 2008 R2,而相同的代码在本地环境中完美运行。在网站加载时会出现以下错误。



在此情况下无法响应。



描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



异常详细信息:System.Web.HttpException:在此上下文中无响应。



来源错误:



在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。



堆栈跟踪:





[HttpException(0x80004005):在此上下文中无响应。]

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()在C:\ Users \ deepak.jangir \Desktop \ MyPediaMay \ MyPedia \ App_Start \ LinkededCustomClient.cs:115



[TypeInitializationExcepti on:'MyPedia.App_Start.LinkedInCustomClient'的类型初始值设定项引发异常。]

MyPedia.App_Start.LinkedInCustomClient..ctor(String consumerKey,String consumerSecret)在C:\ Users \ deepak中.jangir \Desktop \ MyPediaMay \ MyPedia\App_Start \ LinkedCustomClient.cs:136

MyPedia.AuthConfig.RegisterAuth()in C:\ Users \ deepak.jangir \Desktop \ MyPediaMay \ MyPedia\App_Start \AuthConfig.cs:49

MyPedia.MvcApplication.Application_Start()在C:\ Users\deepak.jangir \Desktop \ MyPediaMay \ MyPedia\Global.asax.cs:25




我的网站是用MVC4构建的,我正在使用OAuthWebSecurity登录

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

推荐答案

这篇关于用于登录的OAuthWebSecurity不适用于Windows Server 2008 R2。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆