DateTime.TryParse issue with dates of yyyy-dd-MM format
I have the following date in string format “2011-29-01 12:00 am” . Now I am trying to convert that to datetime format with the following code:
I have the following date in string format “2011-29-01 12:00 am” . Now I am trying to convert that to datetime format with the following code:
We had a security audit on our code, and they mentioned that our code is vulnerable to EXternal Entity (XXE) attack. I am using following code –
I have a table:
I have following class that returns number of current Request per Second of IIS. I call RefreshCounters every minute in order to keep Requests per Second value refreshed (because it is average and if I keep it too long old value will influence result too much)… and when I need to display current RequestsPerSecond I call that property.
I have used OWIN authentication in my application.
As you can see this is a question from a non web developer. I would like to have an ASPX page which, under certain circumstances, can generate a 401 error from code. Ideally it would show the IIS standard page.
I have troubles with blowery web and WebResource.axd.
Sorry If I am being noob, I have this doubt, why do we use private variables and set them using properties ?
I need to create an C# application that will monitor whether a set of web services are up and running. User will select a service name from a dropdown. The program need to test with the corresponding service URL and show whether the service is running. What is the best way to do it? One way I am thinking of is to test whether we are able to download the wsdl. IS there a better way?
I have a ASP.Net (.net 3.5/c#) and I want to display a version number / build number and date. What is the best way in controling this and is it possible to auto incriment the numbers on build?