4:55 PM

Find TCP/IP Port in windows

netstart -a | find "LISTENING"  [.....]

10:09 AM

Create A Bootable Usb Pendrive By Using Cmd Command Prompt

Create A Bootable Usb Pendrive By Using Cmd Command Prompt


C:\WINDOWS\system32>diskpart
Microsoft DiskPart version 10.0.10586
Copyright (C) 1999-2013 Microsoft Corporation. On computer: SARVESH-VAIO
DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt   --------  -------------  -------  -------  ---  ---   Disk 0    Online          465 GB  3072 KB   Disk 1    Online         7633 MB      0 B
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> clean
DiskPart succeeded in cleaning the disk.
DISKPART> create partition primary
DiskPart succeeded in creating the [.....]

6:48 AM

Asynchronous HTTP request


Asynchronous HTTP request
-------------------------------------------
We can create asyn http web request

public static async Task<string> RequestAsync(string UrlReq, string requestxml)
        {
            WebRequest webRequest;
            string Response = string.Empty;          
            try
            {
                var postData = requestxml;
                var url = new Uri(UrlReq, UriKind.Absolute);
                webRequest = WebRequest.Create(url);
                webRequest.Method = "POST";
            [.....]

6:37 AM

The remote server returned an error: (500) Internal Server Error

when getting error "The remote server returned an error: (500) Internal Server Error".
we get exact error in WebException



                HttpWebResponse response = null;
                try
                {
                    response = (HttpWebResponse)request.GetResponse();

                }
                catch (WebException wex)
                {
                    string WebError = new StreamReader(wex.Response.GetResponseStream()).ReadToEnd().ToString();
                [.....]

Next PostNewer Posts Previous PostOlder Posts Home