Cannot resolve DbContext in ASP.NET Core 2.0
First of all, I’m trying to seed my database with sample data. I have read that this is the way to do it (in Startup.Configure) (please, see ASP.NET Core RC2 Seed Database)
First of all, I’m trying to seed my database with sample data. I have read that this is the way to do it (in Startup.Configure) (please, see ASP.NET Core RC2 Seed Database)
When you can simply encode the data using HttpUtility.HtmlEncode, why should we use AntiXss.HtmlEncode?
I’ve just published my site in my server, but when I type in the browser www.mysite.com I get this error : HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory.However if I type www.mysite.com/Home.aspx it loads correctly. So, how can I set the default page?? I … Read more
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 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?
is anybody aware of a list of exactly what triggers ASP.NET’s HttpRequestValidationException? [This is behind the common error: “A potentially dangerous Request.Form value was detected,” etc.]
I am Learning ASP.NET MVC and downloaded a couple of sample apps. MusicStore etc…
Just now I came across ApplicationSettings in .NET WinForms that could handle complex types.
Currently I am using AppSettings in my ASP.NET WebForms which can handle only string.
Can I use ApplicationSettings in Webforms? If so how?
Is it safe to access asp.net session variables through static properties of a static object?