Category "asp.net"

With ASP.NET Identity is it possible to add and delete claims dynamically during an existing session?

I'm trying to add and delete claims (roles in this case) dynamically after a successful login using Identity 2 in Asp.Net 4.5.2. My application has an authentic

Unsafe value used in a resource URL context (iframe)

Trying to pass value as iframe url from local db and and im getting error message: Unsafe value used in a resource URL context. i'm trying to display an array

SelectList and DropDownList (razor) in .net web API applications

I am transferring an MVC app to .net core API and was wondering whether it's possible to use SelectList and Html.DropDownList on the razor side in the API app?

Erroneous caching of fields in a productpage by Chrome

I have a kind of paged catalogwebsite with the pages filled with Jsondata by AngularJs. Server side is ASP.Net MVC. Since a couple of months Chrome is caching s

Private class method or interface? [closed]

I'm working on an app which uses the Factory pattern to create new objects. In the Factory Class I've added a new Private method called SendAp

Single Tenant Application needs to support SSO from a multi-tenant provider dynamically with OpenId Owin

I'm trying to use OpenId to authenticate against a dynamic authority URL. There is an unknown number of different {n-tenant}.identityProvider.com authority URL

Footer to stick to bottom of the page when Treeview control expands

Hello All! I have trouble making the footer stay at the bottom of the page. I have treeview control, when expanded overlaps the footer. Please help to make the

Sending client certificate via WCF to causes an error: "The HTTP request was forbidden with client authentication scheme 'Anonymous'"

I have an IIS ASP.NET service that needs to make calls to another IIS service via WCF https, where the other service requires a client certificate. Following th

How to host ASP.NET C# page using Word object in a server which do not have MS Office?

When I try to create an instance of a COM class, it throws this exception: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I h

ASP.NET app gives SocketException periodically: An attempt was made to access a socket in a way forbidden by its access permissions

We have ASP.NET app: BotFramework + LUIS. Chats: Teams, WebChat. The issue happens periodically in different environments and it completely stops bot sometimes.

What could cause a "TypeError: (0 , d.__decorate) is not a function" of an angular function inside a docker container?

I'm building a web application. The frontend is in angular and the backend in .Net Core. Currently, I'm doing the following, to build my final docker image: Bui

How to refresh web page after database update in ASP.NET CORE with Blazor

I'm making a small room booking web app and I would like to have the web page refresh on a given interval; ie a given minute or when a change has been done to t

URL rewriting with /!#/ symbol in web.config

I want to redirect my old url https://mysite1.com/#!/page1 to new url https://mysite2.com/page1, other answers did not help, tried. <rule nam

Cannot find reference assembly 'System.Reflection.Primitives.dll' file for package System.Reflection.Primitives

We have hosted a ASP.NET Core v3.1 Website in IIS. But when I try to view the page getting internal server error. This issue only occurs in the specific machine

Send grid api sends the attachment with different encoding

I have an issue where we are using ASP.NET framework and SendGrid api/sdk to send the email to users. We have the attachment name in Spanish character as shown

Angular and .Net Core Project VS 2022: An unhandled exception occurred: Project 'Leon\AppData\Roaming\ASP.NET\https\<projectName>.pem' does not exist

Hello I am building an Angular/.Net Core project and creating the projects by following Microsoft's suggestion, https://docs.microsoft.com/en-us/visualstudio/ja

Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started

I'm trying to connect my ASP.NET Core MVC application to SQL Server. I'm using the Visual Studio for mac. I wrote the connection string like below : "Connect

Http request stuck in the IIS webserver post authentication

We are having an IIS hosted web service and randomly some incoming requests get stuck post authentication. I have added some logging in the code but the call is

Cannot install dotnet sdk on mac

I have installed dotnet sdk from https://dotnet.microsoft.com/download/download after installing I run on terminal: dotnet --version and I get : zsh: command no

NU1202: Package is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v3.0)

I have created a new Solution where I have added a few projects. They are either ASP.NET Core, Class Libraries or NUnit Test projects. Both the ASP.NET and test