Skip to content

Magenaut

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

asp.net-core-mvc

How to get absolute path in ASP.Net Core alternative way for Server.MapPath

August 31, 2022 by Magenaut

How to get absolute path in ASP net core alternative way for Server.MapPath

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

How to get bin folder in ASP.NET Core 1.0

August 31, 2022 by Magenaut

With asp.net core 1.0 There are lots of functionality added. But there is not way to get Bin Folder path.

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

Redirect to login when unauthorized in ASP.NET Core

August 31, 2022 by Magenaut

In the previous ASP.NET MVC, there was an option to redirect to the login action, if the user was not authenticated.

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

Assigning multiple routes to the same controller or action in ASP MVC 6

August 31, 2022 by Magenaut

Question:

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

Get wwwroot folder path from ASP.NET 5 controller VS 2015

August 31, 2022 by Magenaut

Sorry for a noob question, but it seems I can’t get Server.MapPath from Controller. I need to output json file list from images folder at wwwroot. They are is at wwwroot/images. How can I get a reliable wwwroot path?

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

Is it possible to reference .net framework 4.7.2 class library from an ASP.NET Core MVC project?

August 30, 2022 by Magenaut

I have an ASP.NET MVC 5 project which works well and it also references a .NET Framework 4.7.2 Class library which produces some CrystalReports. CrystalReports does not support .NET Core, so the class library will stay with full .NET Framework.

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

ASP.NET Core publish error: An error occurred while starting the application

August 30, 2022 by Magenaut

I tried to publish my ASP.NET Core application on Windows Server 2008 R2 but I get this error:
“An error occurred while starting the application.”

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, asp.net-core-1.1, asp.net-core-mvc, visual-studio-2017 Leave a comment

Authorizing a user depending on the action name

August 30, 2022 by Magenaut

I have many controllers with many actions. Each action has it’s own Role ( Role name = ControllerName.actionName ).

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

Why is IFormFile showing null, and how do I fix it?

August 30, 2022 by Magenaut

I am using ASP.NET 5, MVC 6 in VS 2015. I am making a web application. On my form I have:

Categories ASP.NET, Q&A Tags asp.net, asp.net-core-mvc, visual-studio-2015 Leave a comment

ASP.NET core, change default redirect for unauthorized

August 30, 2022 by Magenaut

I am attempting to redirect to a different login url in ASP.NET MVC6

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, asp.net-core-mvc, asp.net-identity, c# Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page9 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