Note that there are some explanatory texts on larger screens.

plurals
  1. POLogon failure: unknown user name or bad password? But I am using the right username and password
    primarykey
    data
    text
    <p>I want to connect xml file in remote server. I wrote my code like this:</p> <pre><code> string XMLPATH = @"\\10.222.54.141\c$\Data\CL\Casinolink30\BuildFiles\Logging\980\NoLog4NetFile.UnitTest.Tests.nunit-results.xml"; FileWebRequest request = (FileWebRequest)FileWebRequest.Create(XMLPATH); request.Credentials = new NetworkCredential("administrator", "Igtcorp123"); FileWebResponse response = request.GetResponse() as FileWebResponse; Stream stReader = response.GetResponseStream(); XmlTextReader reader = new XmlTextReader(stReader); int count = 100; while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element) { if (reader.Name == "test-case") { //Console.WriteLine("testcase name:" + reader.GetAttribute("name")); Console.WriteLine("testcase info"); Console.WriteLine("name: " + reader.GetAttribute("name").ToString()); //Console.WriteLine("success: " + reader.GetAttribute("success").ToString()); Console.WriteLine("------------------------------------"); } } } </code></pre> <p>I got a error: <strong>"logon failure: unknown user name or bad"</strong>. and I try to do this:</p> <ol> <li>input the address (10.222.54.141\c$\Data\CL\Casinolink30\BuildFiles\Logging\980\NoLog4NetFile.UnitTest.Tests.nunit-results.xml) to the address bar,and open. A dialog show up let me add user name and password. I typed in right word, and I successfully accessed the file. </li> <li>I run the code above. I successfully got the data.</li> <li>I try this program in another computer. They can access the address, but the program does not work.</li> </ol> <p>I am confused about this? Why does this happen?</p> <p>Now I deployed my project to the server, I can successfully get my data in localhost address(http://localhost:61547/) on server. But I can not get data in my computer remotely through addr: <a href="http://10.222.54.140:8080/" rel="nofollow">http://10.222.54.140:8080/</a>. What happen? Can any one help me? Much appreciate.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload