Link to home
Start Free TrialLog in
Avatar of Mike Page
Mike Page

asked on

Authorization server: How to run on visual studio

Hi Experts,

Quick question. Just followed this article here
http://bitoftech.net/2014/10/27/json-web-token-asp-net-web-api-2-jwt-owin-authorization-server/

I have tested with Postman but it doesn't really say how you can run the project on visual studio

any ideas as always will be helpful..

Thanks

Mike
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

the problem with running it in VS is that getting the port may be a problem.
you can create a solution and add each part as a project within the solution but you cannot have 2 servers (iis express) using the same port at the same time
Avatar of Mike Page
Mike Page

ASKER

Hi David,  

Towards the end of this article

I tried to change switch from IIS to authorisation server.  As suggested by the this article


https://www.codeproject.com/Articles/1183421/Simple-OAuth-Authorization-Server-with-Identity-Se

"In case you are one of those, you can change the profile next to the button "Start project" switching from IISExpress to AuthorizationServer."

To achieve this I ran vs as admin, went into properties setting for the authorisation project. In the web section, lIS settings was then changed to local host which then allowed me to create a virtual directory. The project failed when I reran but gave a new error: can not debug asp.net
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.