Publishing Visual studio project on localhost - visual-studio

I tried to search about this but doesn't answer my question. I'm currently testing my project on localhost mostly and I can't test my project if Visual studio isn't debugging so I was wondering if I have to publish my whole project to localhost or something? And if so, how do I do it and do I need something like apache or wamp for that?
The project is ASP.NET Web Forms

Just start your project without debugging (Ctrl+F5) or click on Debug -> Start without debugging.

Related

Can't run my project in visual studio 2015

I built an MVC project and tried to run it on Visual Studio 2015. I haven't written any code yet. The build is successful and I get this message:
"localhost refused to connect."
I wanted to stop the project but I realized it has't started. I am new in programming and this is my first project. I couldn't find any good answer on the web what should I do?
Possible duplicate of this?
Try changing your port number (Right click solution > Properties > Web > Project Url).
This may be caused by a conflicting port number.

Debugging 2 projects locally

I have a Visual Studio solution that has a main web project and another secondary project that is an application under main.
The solution runs fine in production when published to IIS, but I'm having issues trying to debug locally.
Both are setup in Visual studio to run on different ports under localhost.
I can start the main web app in debug mode, but how do I start the other app so I can debug the whole solution?
Thanks!
I can start the main web app in debug mode, but how do I start the other app so I can debug the whole solution?
To achieve this, you can select Multiple startup projects on the Property Pages, please Go to Solution ->Properties -> Startup Project:
Hope this can help you.

Visual Studio Configuraiton manager Deploy column disabled

I am having a problem with the configuration manager in Visual Studio 2013. The Deploy column is disabled no. The only thing I did was a Repair of Visual Studio 2013 and not my WebAPI project not longer has the Deploy option enabled in Configuration Manager. I used to be able to do a file system deploy to the folder on the Web Server that hosted my WebAPI process. I am not sure what is going on. Any assistance would be greatly appreciated.
FYI - The CGSAPI project type is class library but that is what it has always been.
OK so I was just being silly. I have to right mouse button click on the actual WebAPI project and Publish will be available in the dropdown list. :)

Prevent visual studio 2010 start a local IIS

I have a solution with many types of projects, and some of them are websites. Usually, I debug a non-website projects, but everytime I start to debug any project in the solution, the local visual studio IIS starts runnning.
Is there any possible way to stop running the IIS server ???
Thanks!
Open your project and go to the projects Properties. In web apps, you should see a Web tab/choice. Click that, then you can configure which/what server you want to start. I think that the default is that VStudio likes to use it's internal IIS Express, but you can configure it to use IIS locally on the box or to use a custom server.
You can actually set the project to not start anything in the Start Action section on that 'tab' as well, and to simply wait until it registers a connection.
Note that if you are trying to debug using a non-local server, then remote debugging will have to be on on the server, which isn't a great idea in production environments.

Visual Studio 2010 change from localhost to full computer name/domain

I am using Visual Studio 2010 and I would like change debugging environment from the localhost to my full computer name/domain. Does anyone have some step by step instructions on how to do this? (I would also like to set it up as the default for all new projects plus how to change it in existing projects). I am new to using visual studio and programming in general.
I found this post Visual Studio 2010 - Change localhost to custom domain in the forum but it wasn't clear to me on how to make the change. I went to the project properties web tab and attempted to set up local IIS Web server but got the following error:
"ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly."
I am not ever sure if that was the correct way of going about doing this. I just need my debug url address to go from:
"http://localhost:53674/Projectname.aspx"
to:
"http://computername.pag-domain.webname.org/Projectname.aspx"
Thanks!
For fixing the iis web server, I am not really sure what was done...our IT department worked on that. For setting up the local IIS webserver in visual studio I did the following: In the web project properties, under the web tab, I choose "Use Local IIS Web server, in the project URL, I put the full computer domain and told it to create a virtual directory.
Got it. Our IT came to the rescue — he fixed some issues with the ASP.NET not accessing 4.0 correctly. Then I set up the "Use Local IIS Web server" correctly and it worked like a charm.

Resources