I am receiving the error, "unable to start debugging on the web server. the debugger cannot connect to the remote computer. the debugger was unable to resolve the specified computer name" in visual studio. I have two websites already working in IIS, but can not get this third one to work.
I have tried an IIS reset and many other alternatives
The answer to my question was my host file was being saved in the wrong location.
Related
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
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.
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
I have a line of code like this:
File.Copy(#"\\192.168.1.40\folder1\1.txt", Server.MapPath("/folder1/") + "1.txt", true );
This code works when I run my project in Visual Studio (IIS Express), but when I publish it on web server (it's in local network i.e. 192.168.1.20), it throws an exception that says access denied.
I checked permissions, nothing seems wrong.
I connected to the web server with Remote Desktop and I copied the file in Explorer without problem.
I gave the Everyone all permissions in 192.168.1.40.
I searched a lot, almost all of them leads to impersonation, but why it's work on local IIS Express and not on main IIS server?
I have a C# MVC project in Visual Studio Express 2013. I'm using the Publish Web option and Web Deploy as the method.
After a bunch of work to get Web Deploy setup on the target machine, I finally got a valid connection:
Screenshot here (since I don't have the reputation to add the image to the post): http://screencast.com/t/Q5IccavcB1
However, when I actually publish, I get this error:
Web deployment task failed. (Connected to the remote computer ("myServerName.com") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates.
The help information I find is almost exclusively for VS 2010, which isn't very helpful here. I finally tried adjusting my .pubxml file by directly adding AllowUntrustedCertificate = True in the PropertyGroup, but that has no effect.
Screenshot:
Any ideas? I'm out of them.
Thanks!
Well, it turns out that an artifact left over from trying to get an MSBuild for TeamCity working was the cause of the problem.
upgraded from VS2010 to VS2013 now I cannot publish
I added back in the PropertyGroup that I removed yesterday, and I was able to publish.
adding /p:AllowUntrustedCertificate=true argument in msbuild.exe resolve my problem
How can resolve Untrusted certificates Error ?( TFS2013 Build and deploy to IIS )