![]() I am getting the error below when trying to connect to SQL Server 2005 instance:Ī connection was successfully established with the server, but then an error occurred during the login process. Line = sr.ReadLine() //An existing connection was forcibly closed by the remote host In the method that produces the exception, it happens at the last line of the following code: The only thing that differs in these two calls is the content of cmd,in both cases the url + cmd works fine when I use it directly from Internet Explorer. StreamReader sr = new StreamReader( ReceiveStream, encode ) Stream ReceiveStream = result.GetResponseStream() Įncoding encode = ("utf-8") HttpWebResponse result = (HttpWebResponse) req.GetResponse() Req.ProtocolVersion = HttpVersion.Version10 HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create(url) I'm getting the same error but it has nothing to do with SQL Server.īasically I have a CF app that uses the following code in two methods: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |