Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

asp.net

OutOfMemoryException while populating MemoryStream: 256MB allocation on 16GB system

September 3, 2022 by Magenaut

I’m running the following method on my development IIS server (from VS2010 IDE) on a 64-bit Windows 7 machine with 16GB of installed RAM:

Categories ASP.NET, Q&A Tags asp.net, c#, memory, out-of-memory Leave a comment

How should I inject a DbContext instance into an IHostedService?

September 3, 2022 by Magenaut

Cannot consume scoped service ‘Microsoft.EntityFrameworkCore.DbContextOptions’ from singleton ‘Microsoft.Extensions.Hosting.IHostedService’.

Categories ASP.NET, Q&A Tags .net, .net-core, asp.net, asp.net-core, c# Leave a comment

The result of a query cannot be enumerated more than once

September 3, 2022 by Magenaut

I am using the entity framework (ef) and am getting the following error:

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework, entity-framework-4, linq Leave a comment

IIS7 folder permissions for web application

September 3, 2022 by Magenaut

I am using windows authentication without impersonation on my company’s intranet website with IIS7.

Categories ASP.NET, Q&A Tags asp.net, iis-7, windows-authentication, windows-server-2008 Leave a comment

How to call a VBScript file in a C# application?

September 3, 2022 by Magenaut

I need to call a VBScript file (.vbs file extension) in my C# Windows application.
How can I do this?

Categories ASP.NET, Q&A Tags .net, .net-2.0, asp.net, c#, vbscript Leave a comment

Format of the initialization string does not conform to specification starting at index 0

September 3, 2022 by Magenaut

I have an ASP.NET application which runs fine on my local development machine.

Categories ASP.NET, Q&A Tags asp.net, c#, sql-server-2008 Leave a comment

How to bind a MemoryStream to asp:image control?

September 3, 2022 by Magenaut

Is there a way to bind a MemoryStream to asp:image control?

Categories ASP.NET, Q&A Tags asp.net, image, memorystream Leave a comment

How to return PDF to browser in MVC?

September 3, 2022 by Magenaut

I have this demo code for iTextSharp

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, itextsharp, pdf Leave a comment

Asp.net Identity password hashing

September 3, 2022 by Magenaut

The new ASP.net Identity project has brought some useful code and interfaces for website security. To implement a custom system using the interfaces (instead of using the standard Entity Framework implementation included in the MVC 5 template) an IPasswordHasher is required.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, identity, security Leave a comment

ASP.NET Bundles how to disable minification

September 3, 2022 by Magenaut

I have debug="true" in both my web.config(s), and I just don’t want my bundles minified, but nothing I do seems to disable it. I’ve tried enableoptimisations=false, here is my code:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, asp.net-optimization, bundle Leave a comment
Older posts
Newer posts
← Previous Page1 … Page156 Page157 Page158 … Page944 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress