ApplicationPoolIdentity is not working when I publish the application. Pls help
HiI published the site and it working fine after creating the website in IIS manager using the following method.Net CLR Version - No Managed Code Identity : Local System In Binding : I bind with my...
View Article@Html.Raw(Model.Test()) returning garbage
Hello everyone,I am having this problem. In database I am storing pure HTML strings (Example: <script>document.GetElementByID("test").value = "test";</script> or <div...
View ArticleCreating roles for production using Razor
Hello, I'm a starter to Razor/MVC/.net-core. I've made very simple C# apps before with visual studio e.g. Xamarin.Using Microsoft's Razor tutorials I've been working on making a Razor app with a basic...
View Article.Net core Application Development in Windows using VS 2017 and Hosting in Mac...
I was new to .Net core and on googling i got that it was used to develop an .net application that can run in corss platform other than windows i.e. Linux, Mac Osx.I was having few questions on...
View ArticleHow to release/unload unmanged native dylib from .net core while closing the app
Hi All,We would like to know how to release/unload unmanged native dylib from .net core while closing the app in Mac?Scenario: We are using native mac dynamic library (dylib) from .net core using...
View ArticleCant get details of the user who has logged in immediately after Signing In.
Hi guys I am trying to achieve redirections immediately after Login in a .Net Core 2.1 application using Identity Core.The redirections are dependent on roles of the logged in user.I am getting a Null...
View ArticleCustom css file is missing in published app
Hi,I've published my asp.net core 2.2 app and can see my Style.css file is missing in "css" folder in wwwroot. Any ideas why it's that? Am I supposed to use custom css file or all css must be in...
View ArticleOnPost handler not being called
I am trying to call an onpost method from a razor page, however I am getting 'page not found' on https://localhost:44873/MyPage/createRazor page: @page"{handler?}" //display stuff...
View ArticleCreating a cron job in asp.net core web application
Dear All,I am trying to create a cronjob that would enable me populate the database of my website at the first time the web application is set up. This cron job is also suppose to backup data from this...
View ArticleASP.NET Core 3 Web Application, Azure App Service, and a ANCM In-Process...
I am really new to working with all of these different technologies so pardon me if I am missing some knowledge. In any event, I have a bit of ASP.NET MVC architecture under my belt but I have yet to...
View ArticleIsInRoleAsync gives a runtime error
Hi,Following view model and controller:{ public class User { public string UserName { get; set; } public bool IsUser { get; set; } public bool IsAdmin { get; set; } } public class UserListModel :...
View ArticleVSProject.References.Add method is not working properly in netcore project
Hi All,Currently I am trying to add the assembly references in netcoreapp project by using the below method. The below function working properly when we add the single assembly in the project. But I...
View ArticleHow can i add a third attribute to identify my user in user-role table?()
Hi everyone, we use the user-role based for authorization user in our project. we need to add an attribute to our table (user role table),which results in the user having the role when that attribute...
View Articlewhen edit record i get error on function editemp
ProblemWhen click button edit on employee list it not open page or form of edit and show error ERROR TypeError: Cannot read property 'toString' of undefined at...
View ArticleDotnet Core calling a soap service issue
I have a dotnet core 2.0 app which makes some calls out to some 3rd party soap services. The web references have been added to the project using a wsdl and connected services. Everything works fine but...
View ArticleAdding model with DateTime property results with default value (00001-01-01)...
Hi guys,I'm using ASP.NET Core 2.1 MVC. I have a Post model which has CreateDate property. I used input type="date" in View. When creating post after filling all inputs, it always addsDateTime property...
View ArticleAdding a display claim
I want to grab a users real name and be able to use it anywhere without repeatedly querying AD. Claims looks like the best way to do this.My original authorization worked and was done using...
View ArticleDotnet Core calling a soap service issue
I have a dotnet core 2.0 app which makes some calls out to some 3rd party soap services. The web references have been added to the project using a wsdl and connected services. Everything works fine but...
View ArticleUse Multi Regular Expression For a Property
Hi, I want get email or phone number in one textbox but how to set regular expression for phone number and email together ?...
View Articlewhen pass id value of put(update) from postman it passed as 0 although it...
problemwhen pass id value of put(update) from postman it passed as 0 although it have value on link ?i select key from post man as contenttype application/jsonand this is my...
View Article