Access to the path is denied

ou need to find out from the application pool for the website what is the identity it is running under (by default this is Application Pool Identity) and grant that the correct permissions.

Sequence contains no elements?

I’m currently using a single query in two places to get a row from a database. The query is fine when retrieving the row to put data in to the text boxes, but it returns an error “Sequence contains no elements” when used to retrieve the row in order to edit it and put it … Read more

System.web.mvc missing

We have an old ASP.NET MVC 3 Web Application, building in VS2010, that fails to compile, since last week’s security update. The problem is that the reference to System.Web.Mvc.dll is broken. When I open the solution file on our build machine, where the security update has not run, and open the properties dialog for References->System.Web.MVC, … Read more

Why should I use SerializeField?

Why and when should I use [SerializeField]? Using the SerializeField attribute causes Unity to serialize any private variable. This doesn’t apply to static variables and properties in C#. You use the SerializeField attribute when you need your variable to be private but also want it to show up in the Editor. For example, this wouldn’t show up in the Editor: And this is because it’s … Read more

Unable to resolve service for type while attempting to activate

For the Dependency Injection framework to resolve IRepository, it must first be registered with the container. For example, in ConfigureServices, add the following: AddScoped is just one example of a service lifetime: For web applications, a scoped lifetime indicates that services are created once per client request (connection). See the docs for more information on Dependency Injection in ASP.NET Core.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)