Category Archives: Development

Dotnet development

Invoke-Webrequest UnauthorizedAccessException

Today I got an UnauthorizedAccessException when running the following script in powershell There was no logging on the webserver, there was no access-denied message, there was no traffic at all. What happend? Turns out the problem was the file (data.json) … Continue reading

Posted in Development | Tagged | Leave a comment

Load environment variables in dotnet Core 1.1 hosted in IIS

On our webserver we plan to move configuration to environment variables. We can set those environment variables in our Powershell Dsc script. But the website does not pick up the environment variables. There is an issue on github (#1864) that … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Seq dashboard

We’re using seq for logging the completion of an import. To monitor the progress of importing a lot of file we’ve created a dashboard in seq. The log entries are identified by having a property (uuid) and a date / … Continue reading

Posted in Development | Tagged , , | Leave a comment

Manage windows service with asp.net core webapi

We’re building a webapi for our administrators. One of the features is stopping and starting a windows service on the webserver the webapi is hosted on. We needed to allow our application pool user to manage the windows service. For … Continue reading

Posted in Development, Security | Tagged , , , , | Leave a comment

Seq

Seq creates the visibility you need to quickly identify and diagnose problems in complex applications and microservices. Empower your team to build better software by centralizing, searching, and alerting on structured application logs. https://getseq.net Image source https://getseq.net Every project we … Continue reading

Posted in Development, Tooling | Tagged , , | Leave a comment

Serilog

Image courtesy of Ricardo Gomez Angel / unsplash.com https://www.nuget.org/packages/serilog With Serilog we can log with named properties. The advantage is that processing of the log(file) is no longer needed as it is already structured. You can stil output plain text … Continue reading

Posted in Development, Tooling | Tagged , , | Leave a comment

Cannot upload task attachment file

We run Pester tests during our tfs release. The output is published as test results and saved to the log files. To save the output.xml to the log file we use task.uploadfile from azure pipeline tasks. This task failed because … Continue reading

Posted in Development | Tagged , , , , | Leave a comment