Develop ASP.NET Core 2+ Application with Windows Authentication in VS Code without Admin Privilege on Windows - asp.net-core

I am developing using VS Code on Windows.
The application is ASP.NET Core 2 or 3.
The enterprise domain is setup to use Windows Authentication.
Kestrel requires admin privilege for setspn.
I cannot figure out a way to run IIS Express from VS Code or command line.
And even if I did, I am wondering how I will be able to debug using OmniSharp?
What is your VS Code workflow to run and debug your ASP.NET Core applications against Windows Authentication?
I know the MS Visual Studio might be easier but it is not an option for me.
Please help.
Update
Unable to use Kesterel:
According to MS Docs, Kesterel only uses Negotiate for Windows Authentication and this requires setspn with admin privilege because it uses User Mode. Is there a way to go around that?
Cannot figure out how to use IIS Express:
What is the -clr version option of ASP.NET Core 2/3? The default value is v4 which seems to be for ASP.NET (i.e. Framework).
Also, even when I specify the -path option, I notice that IIS Express gives the info that it copied and used the default configuration file. By default, Windows Authentication is disabled there. Do I need to edit or create my own configuration file? What options do I need to change or make sure that I have?
Wondering how to debug in VS Code:
I know how to attach to Chrome and Node. Would you please direct me to a documentation on how to attach to IIS Express?

Related

Visual Studio 2017 RC4 Webdeploy results in ERROR_USER_UNAUTHORIZED

Tried everything. Deploying same type of web project (Net.Core 1.1) with VS2015 at the very same location using exactly same parameters works without any problems.
Is there any known issue with release RC.4+26206?
This what my server log says:
IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED
Only Windows Administrators are allowed to connect using a server connection. Other users should use the 'Connect To Site or Application' task to be able to connect.
Process:WMSvc
User=sludr
Ok... Found a solution. Same reason as documented here: .net core web deploy requires admin permissions, so VS2017 requires right now a windows account of group Administrators to publish net core projects.
Hopefully this will be fixed soon.
Note: The official VS 2017 RTW still has this bug.

Lightswitch Deployment (Visual Studio 2013) Tier-3 with No Authentication

I am attempting to deploy a simple lightswitch application (HTML not Windows app) in VS 2013. I have selected to not have authentication to make the testing easier.
The IIS server and the database server are on different machines. I have followed the steps here for server setup.
However, when I go to the website after publishing, I get this error:
You do not have permission to view this directory or page.
I went to the IIS server and made sure that only Windows authentication was enabled on the application that was sent over. After reading another MS article on the 401 error, they recommended unchecking the Kernel Mode Authentication. That only prompted a username/password request, which did not work.
What am I doing wrong here? I assumed having no authentication setup in the deployment would make the website open to anyone on our network. Not the case?
Found the problem(s) with this one.
Problem #1
When I downloaded / installed Microsoft's Web Platform Installer on my IIS server, the LightSwitch application I was working on and several other seemingly random websites/apps in the IIS all had the Authentication settings disabled for every authentication type (Anon, Basic, Windows, Forms, etc.). Had to go and Enable windows authenication on several websites. Did not expect that...
Problem #2
HTML Client folder was not loaded on the machine for some reason. Removed Lightswitch app from IIS and deleted the folder. Created a package for install in VS2013 and then copied the zip file over to the IIS server. Flawless install after that... One thing to watch for it to change the default setting in IIS from 'default.htm' to 'default.aspx'.

Do i need to install asp.net mvc4 on iis server

I am going to deploy my application tomorrow ,so i have few questions.I want to deploy asp.net mvc4 application on 2003 server where .net framework 4.0 is installed.My question is do i need to install asp.net mvc4 also there.Or if i copy the dll responsible for mvc in to that system is sufficient?
another question is i am using entityframework and oracle database so using ODP.NET, if this is the case do i need to install ODP.NET over there or just copying DLL system.dataaccess dll is sufficient?
Rest all i follow this two links will it work
The two links are http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx/
How to deploy MVC application in 2003 server IIS
UPDATE
today i tried and unfortunately i came to know that the framework which i was running .net 4.5 will not be supported in 2003.I made my project in to .net 4.0 and everything working fine in local system,but remote system lot of errors are coming.Method not found etc. I came to know that i have to degrade EF 5.0 to 4.4 i did it like replaced dll and changed one line begin with section but no luck as of now.I have to change somewhere else also.Do you know any proper mechanism which i need to carry forward for this?
No need to install anything explicitly except .Net 4.0. All you need is make sure that all dependencies (assemblies) of your application i.e. MVC, ODP.Net etc are present in bin directory of your application. Also make sure that ASP.Net v4.0 Web service extension is enabled in IIS.
Steps to enable web service extension.
Open IIS 6.0 Manager
Click Web Service Extensions
Enable ASP.NET 4.0
Check below screenshot.

Convert an ASP.NET application on production in II6, back to Solution

I have to modify an ASP.NET Web Forms application which is currently on production on a Windows Server 2003 in II6.
The problem is that I didn't develop the application and there is not anymore the Visual Studio solution used to develop the application. Moreover the application lies under a website where other applications are running and the connection strings are stored in the global web config file.
I want to modify the application without compromising the version that is actually online.
How can I bring the production version back into a solution file? Many thanks

IIS7.5 AppFabric - no Deploy option

I am trying to deploy a WCF service to AppFabric however there is no Deploy option when I right click on the default web site in IIS manager.
Yes this is a new install.
Anybody got any ideas on how to activate this
Actually I just found that I had to reinstall (did a complete install) MSDeploy and it worked fine.
Windows Server AppFabric requires .NET/CLR 4.0 - my guess is that the default website has a CLR 2.0/.NET 3.5 application pool backing it up (which is the default.) Rather than use the default web site, you'd be better of to create a new web site with its own application pool, set to use v4.0. This should enable the import/export application contenxt menus.