I recommend reading the official documentation for the framework and host you are targeting.
Remote Debug ASP.NET Core on a Remote IIS Computer in Visual Studio
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I work on asp.net core 7 I face more differenced between my local system project with asp.net core 7 and same application hosted and publish on iis
as sample when page load I retrieve join date input and display it without any issue on local system
but when i publish same code that not give me any issue on local and publish it on IIS it give me error
so i need to install remote debug to debug issue on server directly
but I don't know how to make remote debug
I worked on asp.net core 7 visual studio 2022
so I have multi question i need answer for it
when i need to make remote debug to published app hosted on another server ON IIS so
suppose i have two pc
developer pc
iis pc
1- what tools i will install on developer pc for remote debug app on iis
2-what tools i will install on IIS pc for remote debug app on iis
3- What port i will use it
4- what permissions and roles need for two pc
5-how to access my iis applications .NET core which files i will add
to access iis application remotely
please help me answer by details if possible
I recommend reading the official documentation for the framework and host you are targeting.
Remote Debug ASP.NET Core on a Remote IIS Computer in Visual Studio
Hi Ahmed Salah Abed Elaziz,
1- what tools i will install on developer pc for remote debug app on iis
Only VS should be installed on the developer PC.
what tools i will install on IIS pc for remote debug app on iis
You should install the remote debugger tool from this link according to your VS version.
What port i will use it
If you are using the VS 2022, the port number will be 4026, you could also see the port inside the remote debugger tool after you enabling it.
what permissions and roles need for two pc
Administrator
how to access my iis applications .NET core which files i will add
Using VS's attach to process inside the debug view. By using this you could attach the application process which hosted on the IIS.
More details, you could refer to this article.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.