Application Works Perfectly in Visual Studio ,Not Working in IIS. What is the configurations does Visual Studio Follows ?

Jayapandian, Krishnakumar 0 Reputation points
2023-08-08T08:50:49.78+00:00

Hi,

I am Working on Project which uses GrpcWebSocketBridge.AspNetCore package availabe in Nuget.Org , I dont know the project works fine in Visual Studio Local Environment perfectly, But its not Working Properly when deployed in IIS (No deployment issues ,  Just not Working ). I have two question,

First Question : What are the Settings / Configuration does Visual Studio follows how its able run the project perfectly.

Second Question : What is the Server and configuration does it follow in Visual Studio to run an Web Application.

Internet Information Services
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jayapandian, Krishnakumar 0 Reputation points
    2023-08-09T12:30:58.1333333+00:00

    Hi @Yurong Dai-MSFT ,

                                     Yes you are Correct , Visual Studio Runs on IIS Express only if IIS Express is configured in launchSettings.json file ,But  In my project its configured for dotnetrunMessages and application url.
    

  2. Bruce (SqlWork.com) 74,956 Reputation points
    2023-08-09T20:30:07.4833333+00:00

    the typical issue with running under IIS is the service account, permissions and runtime environment (running as a service).

    when run in VS as either an app or its express the appp is running under your account with your permissions. another difference, is that the app is running under logged in windows account, so has access to the windows gui (say MessageBox), and the users profile is loaded into the registry (printer list, mapped drives, etc).

    the other common error is configuration (use of localhost, etc).

    note: the GrpcWebSocketBridge.AspNetCore package should only be effected by configuration. also the server hosting IIS must support web sockets:

    https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.