Search results

  1. A

    Question Input string was not in the correct format

    I am writing a program to input and output a simple array. static void Main(string[] args) { int[] arr = new int[10]; Console.WriteLine("Enter nmber of elements"); int n = int.Parse(Console.ReadLine()); Console.WriteLine("Enter the...
  2. A

    Resolved Sending Email from Contact Us Page of a Website

    I followed the steps as given in Send Email with example in ASP.Net using C# and VB.Net. But I get an exception "System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more...
  3. A

    Resolved Sending Email from Contact Us Page of a Website

    Hello, I want to learn to send emails in C#. I want to build a contact us form where the user can just simply type his email address and write his message. Upon hitting the send button the message should get delivered to my email address(gmail account). I have searched on internet regarding...
  4. A

    Resolved Passing a list to Oracle Parameter

    In countryList it says "Method name expected".
  5. A

    Resolved Passing a list to Oracle Parameter

    I am currently iterating my list items one by one and sending them to Oracle Parameter, but instead of sending one by one, how can I send the entire list in one go ? Can I achieve same results as I am getting from below code? foreach (var country in countryList) {...
  6. A

    Resolved Foreach in not iterating through values

    I am developing an application where I have to perform some update operation on each machine in the database. Every machine has a unique Id. Then there is also an area code under which several machines come. Area codes are also unique. I am reading these ids from the database and storing them in...
  7. A

    Resolved How to share a .exe file to the end user ?

    Yes, I will integrate the connection string to the code as they will be distributing the application to end users. If I keep it in config file, then any end user might see all the connection info and then can access the database to make any kind of changes !!!
  8. A

    Resolved How to share a .exe file to the end user ?

    yes, thank god, they have it open for their LANs only.
  9. A

    Resolved How to share a .exe file to the end user ?

    Actually, I have no control over the database and currently the customer doesn't have any webservice. My desktop application is updating the database. One option I thought that I could do is to store the connection string in the class file rather than in appconfig file but my appconfig file will...
  10. A

    Resolved How to share a .exe file to the end user ?

    I know that you have to right click on the solution and go to the bin folder from where you can copy the .exe, dlls and the config file and share it to end users. The issue is that I am storing my database connection code in the appconfig file which has database username and password also. So...
  11. A

    Resolved How to send request body using HTTPWebrequest

    Thanks it works now but I am getting a System.NotSupportedException for Length and Position. Its not that its stopping my application . My application is working but I saw it while debugging.
  12. A

    Resolved How to send request body using HTTPWebrequest

    But im doing all the request stuff before the response stuff ? What exactly i have to do before the response?
  13. A

    Resolved How to send request body using HTTPWebrequest

    I want to learn both. I am first trying it with HttpWebRequest then I will try with HttpClient. I serialized the object but now I am getting System.Net.ProtocolViolationException: You must provide a request body if you set ContentLength>0 or SendChunked==true. Do this by calling...
  14. A

    Resolved How to send request body using HTTPWebrequest

    Hello Finally i found a post api which sends and receives data in XML format. My API has a request body - <Person> <Id>12345</Id> <Customer>John Smith</Customer> <Quantity>1</Quantity> <Price>10.00</Price> </Person> I am confused as how I should I hit the api with this body from the code -...
  15. A

    Question Internal Server Error in API Call from Fiddler

    I made the following changes in the header Content-Type : application/xml Accept: application/xml Host: webservices.oorsprong.org Content-Length: 79 but it is still giving me unsupported media type error
  16. A

    Question Internal Server Error in API Call from Fiddler

    Or is there any other API which I can get which uses a simple xml request body and returns response in plain xml ? The reason of me being persistently asking for this kind of api is that I have to create an application in future using this kind of api . There is an existing application from...
  17. A

    Question Internal Server Error in API Call from Fiddler

    Is there anyway I can call this API with simple XML request body( without soap envelope) and get a response in simple XML in fiddler ?
  18. A

    Question Internal Server Error in API Call from Fiddler

    Actually this question arose because i had read somewhere that only soap apis can have wsdl. So, an api having both wsdl and rest endpoints got me confused if is a soap or a rest.
  19. A

    Question Internal Server Error in API Call from Fiddler

    An api having a wsdl and rest endpoints would be called a Rest Api and not a soap api, is this statement correct???
  20. A

    Question Internal Server Error in API Call from Fiddler

    Thanks, it is working now. But I am extremely confused now. Actually, the API that I am referring to for learning( cannot post here due to confidentiality) is a SOAP API ( it has a WSDL) but I was able to run it in fiddler without the soap envelope. That API accepts request body in XML and also...
Top Bottom