Skip to content

Magenaut

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

asp.net-mvc

All requests to ASP.NET Web API return 404 error

September 1, 2022 by Magenaut

I have an ASP.NET MVC 4 web site that includes Web API. The site is developed and tested with Visual Studio 2012 and .NET 4.5 on Windows 8 with IIS Express as web server. In this development environment everything works.

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc, asp.net-mvc-4, asp.net-web-api Leave a comment

ASP.Net Identity how to set target DB?

September 1, 2022 by Magenaut

I am using the ASP.NET Identity Sample from the Asp-Team, and i am trying to change the database for the IdentityDbContext…

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

Dependency Injection with Custom Membership Provider

September 1, 2022 by Magenaut

I have an ASP.NET MVC web application that implements a custom membership provider. The custom membership provider takes a UserRepository to its constructor that provides an interface between the membership provider and NHibernate. The UserRepository is provided by the Ninject IoC container.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, dependency-injection, ninject, ninject-2 Leave a comment

How can I create a view that has different displays according to the role the user is in?

September 1, 2022 by Magenaut

I want to create a view that has different displays according to the role the user is in.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, roles Leave a comment

MVC ActionLink add all (optional) parameters from current url

September 1, 2022 by Magenaut

The very famous ActionLink:

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

.NET MVC-4 routing with custom slugs

September 1, 2022 by Magenaut

I’m rewriting a website project with ASP.Net MVC 4 and I find it difficult to setup the right routes. The url structure is not RESTful or following a controller/action pattern – the pages have the following structure of slugs. All slugs are saved in the database.

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc, asp.net-mvc-4 Leave a comment

How to prevent User-Agent: Eureka/1 to return source code

September 1, 2022 by Magenaut

ASP.NET Mono MVC 4 application uses MVC4 built in bundling and minification for css and js files.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, bundling-and-minification, mono Leave a comment

Returning Multiple Files from MVC Action

September 1, 2022 by Magenaut

So I’ve got an MVC 3 application that has a couple places where a text file gets generated and returned in an action using:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-3, download Leave a comment

How can I safely set the user principal in a custom WebAPI HttpMessageHandler?

September 1, 2022 by Magenaut

For basic authentication I have implemented a custom HttpMessageHandler based on the example shown in Darin Dimitrov’s answer here: https://stackoverflow.com/a/11536349/270591

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

How to get “Host:” header from HttpContext (asp.net)

September 1, 2022 by Magenaut

I need to server parts of my application from different domains.
To be precise I have a sub section of the site that should be served from a region specific domain. For example:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c# Leave a comment
Older posts
Newer posts
← Previous Page1 … Page47 Page48 Page49 … Page131 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