unable to launch the configured development web server - asp.net

i have tried to repair from VS via "add or remove program" in control panel, but the error still appear..
The first error appears when I try to update my VS

I had the same problem and the following procedure fixed it:
I have set the Firewall system manually. This means that, at the time of communication by programs Firewall notify me. Incorrectly linked to "devenv.exe" was blocked by the Firewall. Correct mode of communication "devenv.exe" will solve the problem. "devenv.exe" is located in the following path.
"C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ Common7 \
IDE \ devenv.exe"
Devenv lets you set various options for the integrated development environment (IDE), and also build, debug, and deploy projects, from the command line.

Backup data
Uninstall VS
Install VS

Related

How do I use Visual Studio 2019 to remotely debug a .NetCore application on a Hyper-V Linux VM?

I am attempting to remotely debug a .NetCore application in Ubuntu Linux from Visual Studio 2019 in Windows 10. I can see the remote ipaddress (ping thru command line). I can RDT to the ipaddress. I can successfully transfer files to it via WinSCP.
I created a simple .NetCore "HelloWorld" app and copied onto the Linux VM.
I used the following commands to build and publish:
dotnet build -r linux-x64
dotnet publish --self-contained -r linux-x64
I ran the following command on the Linux VM to ensure that ssh is functional:
sudo apt-get install openssh-server unzip curl
The app is running on Linux.
From VS I try to attach to the process:
I get prompted for logon:
I get the following error:
Is there a step I'm missing somewhere?
Is there a configuration/permissions issue I am unaware of?
Thanks, JohnB
Microsoft has documented debugging a Linux target from a Windows development machine at https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-dotnet-core-linux-with-ssh?view=vs-2022
Unfortunately, using that method, you will need to manually deploy and manually attach the debugger. If you'd like Microsoft to change that, then it would be wise to upvote this issue: https://developercommunity.visualstudio.com/t/Convenient-way-to-add-a-remote-debug-con/917516
A 3rd party developer has created a Visual Studio extension that provides this missing feature to Visual Studio. It can be downloaded from https://github.com/radutomy/VSRemoteDebugger
I had the same problem initially because I didn't enter the connection target in the first screen.
After having entered the correct target myusername#192.168.178.95 in the first screen the second screen did not show up any longer and I got the expected list of processes

docker cannot run in visual studio

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker ...
Try running Visual Studio as admin. Also check if your daemon is running and ready. If you are using docker for windows, and not only the binaries, then there should be a docker icon on the task bar. Also try to give more context in your question, exactly when did this happen?

How to deploy asp.net application to docker container on Linux server?

I have installed docker engine on a Linux server. On my desktop's Visual Studio 2015, I created an asp.net application. Now I want to publish it to the Linux server and create a docker image.
I followed this step.
I don't have an azure account and I want to use my own Linux server. So next, I clicked the Docker Containers. The interface became:
Then I clicked Custom Docker Host and pressed OK button.
The interface was
Now I input the image name as DockerDemo. Also I type the server url something like tcp://12.16.45.56:8080. Validate connection is okay then go to the next step.
Finally I get this:
However I get an error during publish.
Severity Code Description Project File Line Suppression State
Error An error occured during publish.
The command [docker -H tcp://12.16.45.56:8080 build -t DockerDemo -f "C:\Users\me\AppData\Local\Temp\PublishTemp\DockerDemo63\approot\src\DockerDemo\Dockerfile" "C:\Users\me\AppData\Local\Temp\PublishTemp\DockerDemo63"] exited with code 1: 'docker' is not recognized as an internal or external command,
operable program or batch file.
Please visit http://go.microsoft.com/fwlink/?LinkID=529706 for troubleshooting guide. DockerDemo 0
By the way, the framework I am using is:
"frameworks": {
"dnx451": { },
"dnxcore50": { }
}
Thanks for help!
Visual Studio can't find the docker command on your local computer. It needs this as a client to connect to the docker daemon on your Linux server. The easiest way to do this is to install Docker Toolbox from here:
https://www.docker.com/products/docker-toolbox
You may have to uninstall and re-install "Visual Studio 2015 Tools for Docker" or manually add to Powershell's $env:Path if the docker command still can't be found.
Also, your Image Name must not contain uppercase characters. Use dockerdemo rather than DockerDemo.

error 1002: 'LMW3SVC/1/ROOT/MyFirstWebsite' is not a well formed IIS metabase path

I am trying to learn how to deploy my first website which is physically located here (C:\Users\Amal\Documents\Visual Studio 2008\WebSites\ErrorHandlingTest). I am using instructions from some book. after installing the Internet Information Services on my laptop which has Windows 7 ultimate on it. I added a virtual directory and gave it the alias (MyFirstWebsite). after that I was able to open the website just by typing
http://localhost/myfirstwebsite/mypage.aspx
on the address bar of my firefox v.21 browser.
the book then told me to do some code compilation to the website by using the command-line tool named aspnet_compiler.exe which is supposed to compile my website into binary files after running this command :
aspnet_compiler -m W3SVC/1/ROOT/MyFirstWebsite C:\MyFirstWebsiteDeply
but I got this error:
error 1002: 'W3SVC/1/ROOT/MyFirstWebsite' is not a well formed IIS metabase path.
I use asp.net 3.5 , visual studio 2008 , internet information services version 7.5.7600.16385
Try
aspnet_compiler -m LM/W3SVC/1/ROOT/MyFirstWebsite -f C:\MyFirstWebsiteDeply
You had missed the "LM" at the start of the metabase path.
Actually the iispath should be /LM/W3SVC/1/ROOT/XXX.
Pay attention to the '/' at the beginning.

GIT + HTTP fails across network

As a follow on from this question on SO, I have been working with yysun's great handler-based solution for web access for GIT on a IIS platform. Their solution works perfectly when used locally on my machine (i.e. win 7, iis 7.5, .NET 4.0), but fails across the network.
Unfortunately, I need to have this running on a remote VM with Win 2003, IIS 6 and .NET 4. I'm running the web application as "Local Service" and have for now given that identity full control over the repo base directory. The web application can see the dir (i.e. enumerate git repos under that base dir) but when I try to do a "git clone" using TortoiseGIT, MSysGIT and cygwin GIT from my machine, I get the following error:
git.exe clone --progress -v "http://1.2.3.4/git/AgentDesktop.git" "C:\dev2\tmp"
fatal: http://1.2.3.4/git/AgentDesktop.git/info/refs not found: did you run git update-server-info on the server?
Initialized empty Git repository in C:/dev2/tmp/.git/
I've run "git update-server-info" and "git update-server-info -f" on the server repo, and the .../info/refs file does exist and contains the revision SHAs of the branches I want.
This seems to be a very common issue, but so far I can't see a definitive answer on how to fix it.
Any ideas?
This is not exactly what you are looking for... but maybe a change in tack would be good. What about using the IIS plugin IIRF to configure a reverse proxy to Gitblit. Gitblit is written in Java, not .NET. Or maybe just run Gitblit directly?

Resources