Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

System.Net.WebException was unhandled #5

Open
wfljy2008 opened this issue Feb 3, 2017 · 0 comments
Open

System.Net.WebException was unhandled #5

wfljy2008 opened this issue Feb 3, 2017 · 0 comments

Comments

@wfljy2008
Copy link

httpResponse = (HttpWebResponse)httpRequest.GetResponse();
this line throw exception.
System.Net.WebException was unhandled
HResult=-2146233079
Message=The remote server returned an error: (500) Internal Server Error.
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at Odata4ConsoleApplication.AuthenticationHelper.PerformAuthentication(Resources context, String aosUrl) in C:\Users\axlocaladmin\Documents\Visual Studio 2015\Projects\Odata4ConsoleApplication\AuthenticationHelper.cs:line 59
at Odata4ConsoleApplication.Program.Main(String[] args) in C:\Users\axlocaladmin\Documents\Visual Studio 2015\Projects\Odata4ConsoleApplication\Program.cs:line 33
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant