Unable to Debug or launch my MVC application in chrome - c#

I'm trying to launch my asp.net mvc sample application(c#) in chrome using visual studio but gives me the below error:
ERROR:
This site can’t be reached localhost refused to connect.
Search Google for localhost 49226
ERR_CONNECTION_REFUSED
I tried changing the port number didn't work.
Can anyone please guide me through this.
Thanks,
Akarsh

Re-install IIS and re-run your app:
https://www.microsoft.com/ru-RU/download/details.aspx?id=48264

Related

C# WebApi This localhost page can’t be found

recently I create one project webapi, platform ubuntu 22.04, so I'm using visual studio code to runn it, pressing f5, but I'm getting this issue:
This localhost page can’t be found
No webpage was found for the web address: http://localhost:5166/
HTTP ERROR 404
this is the file configuration:
what's wrong??

HTTPS not starting in IIS when viewed from tray

I was working happily on my project. Then came a need to enable access to the server from remote machine (android) in LAN. I followed few answers on StackOverflow and they have completely ruined my project.
How to enable external request in IIS Express?
IISExpress returns a 503 error from remote machines
localhost refused to connect Error in visual studio
Earlier when I used to Debug using Visual Studio, I used to see two URLs, but I now I only see one. The debugging used to start in https://localhost:44373 but now https is just not starting and I get connection refused when I browse the https link. http link works fine.
I even tried to reset by following methods,
Deleted .vs\<project>\config\applicationConfig
Deleted IIS configuration rmdir /s /q "%userprofile%\Documents\IISExpress"
but none helped i.e. https is not starting even after using doing this as well
IisExpressAdminCmd.exe setupsslUrl -url:https://localhost:44373/ -UseSelfSigned
Please help. I am getting worried. My basic intent is to enable HTTPS and enable access to this https from remote machine.
If someone knows about good server where I can deploy website and easily do this, you may suggest as an alternative, but suggest a solution to current problem as well.
Close Visual Studio.
Following this link to Remove your IIS Development Certificate.
Now, Repair IIS from control panel.
Start Visual Studio. Things will start to work

IIS error when trying to debug new asp.net app using chrome

I'm using Visual Studio 2017. I created a new asp.net mvc application. When I try to run the project on localhost, using (IIS Express (Google Chrome)), chrome gives me the following error:
This site can’t provide a secure connection localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
If I change the browser to debug using Internet Explorer it runs without issue.
Any help appreciated!
Thanks
Fixed. Because it was happening only to newly created solutions and not previous solutions and that I had ran a Visual Studio update that day I thought it was something weird going in related to that. In the end I just had to clear the SSL State in Internet Properties and it was fine after that.

ASP.NET Project not Deploying on Google Cloud

I really need some help. It is driving me crazy and I don't know why it is not working.
Basically I am just trying to deploy my project to Google Cloud, but the process is bringing me an error and I can't understand why. The error below:
MSDeployPublish: Start Web Deploy Publish the Application/package to
https://35.238.89.74:8172/msdeploy.axd?site=MySite... Starting Web
deployment task from source:
manifest(\MySiteFolder\obj\Release\Package\UANL.SourceManifest.xml) to
Destination: auto(). C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(4292,5):
msdeploy error ERROR_COULD_NOT_CONNECT_TO_REMOTESVC: Web deployment
task failed. (Could not connect to the remote computer
("35.238.89.74") using the specified process ("Web Management
Service") because the server did not respond. Make sure that the
process ("Web Management Service") is started on the remote computer.
Learn more at:
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC.)
[\MySiteFolder\MySite.csproj] Publish failed to deploy. Done
Building Project "\MySiteFolder\MySite.csproj" (WebPublish target(s))
-- FAILED.
It is something that I can't do anything (I guess) because it is inside Google Cloud application.
I saw something related to Firewall but I checked everything and seems to be fine. I don't if I am right, but if it is the problem, please give me a step by step, because it is so confusing.
Thanks in advance for you help!!
This error ERROR_COULD_NOT_CONNECT_TO_REMOTESVC cost me two days to figure out that for my case, the site name didn't match. The site name on the remote IIS server was different from the site name i had set in visual Studio for the deployment

got error when i try to run WebService in Debug

got error when i try to run WebService in Debug
this error:
error while trying to run project: Unable to start Debugging on the Web server.
Debbuging failed because integrated windows authentication is not enable.
i work on C# with Visual-studio 2003 (this is old customer project)
thanks in advance
You need to enable windows authentication on IIS.
IIS 7/7.5 instructions are here.
IIS 6 instructions are here.

Categories