Visual Studio 2015 Update 2 "This site can’t be reached" - iis

In Visual Studio 2015, Update 2, I'm getting a This site can't be reached. localhost refused to connect. if I do the following:
Hit F5 to start the site, see my site in Chrome
Press the red Stop icon in Visual Studio
Go back to Chrome and hit F5 to Refresh, see the error
How can I leave the IIS open so it continues to serve my localhost? Before installing the Update 2, this would work. I even have the following unchecked: Enable Edit and Continue in Tools -> Options -> Debugging. Having this unchecked used to allow me to hit the red Stop icon and still be able to see my site in the browser.

In update 2 you can use "Detach All" to detach visual studio from the debugger and still leave IIS express running. This has the same effect at "Stop" did prior to update 2.
To add "Detach All" to your menu
Click the drop down arrow on the debug tool bar and select "Add or Remove buttons"
On the menu click "Customize..."
Then click "Add Command..."
Choose the "Debug" Category
Scroll down to "Detach All" and click OK
OK out of all the menus and off you go.

Related

how to get the 'sync' icon back

With android studio 3.1.4, it has been working fine but suddenly the "sync" icon cannot be found anywhere (did not make any change), happens to any projects now.
Also the combox next to the "Run" icon shows red cross and "This configuration cannot edited"
And it has only Project tab does not have the tab of "Android".
Must be some setting messed up. Is there a way
Looks like the Android plugin got disabled. Please go to Settings | Plugins, find "Android Support" there, check it and restart the IDE.

Android studio not working as it should work

Yesterday I configured my Android Studio according to the tutorial I saw. The next day, I opened Android studio and the logcat, and many of the other things on toolbar were not showing up and grayed out.
Please see the screenshot below:
Just click the dropdown button on left side of RUN button and then Edit Configurations...
then click on Android Application on the left and click the + button. Choose "Android App" from the pop-up menu. Then pick the module and select "app". Then click apply and ok.
If you have more errors after that, try to reopen project, it could be caused due to directory error, make sure you correctly target project when browsing and opening the target directory which contains the files.
...\AndroidStudioProjects\YourAppName\{project files}
First you need to create an run configuration. To do so, click the dropdown box to the left of the Run button. If you already have a run configuration, just select it. If not, click on Edit Confirgurations.... Then click on the + button at the top left and select Android App. Enter a descriptive name and select the app module. Finally, click OK. The Run button should now become enabled.

Visual Studio 2015. IIS Server stop button is not visible

I am new to .net Platform. I just downloaded Visual Studio 2015
I created my first .net core web application
Whenever I press F5 to start the IIS server, It shows stop button
Whenever I press Ctrl + F5 to start the IIS Server, It doesn't show the stop button
I have no idea how to stop it. is there any shortcut. I even tried shift + f5
Please help me out
You can only stop it when you start debugging (aka F5). Control+F5 is start without debugging.
You cannot stop IIS in both cases. You just close the browser, which without the stop button you can manually.
In Addition to Lex Li's answer, you can stop running site in IIS express like this-
Go to notification are on taskbar > right click on IIS express icon > go to your running site (under View Sites option) > choose 'Stop Site'
Refer below image-

How do I prevent Visual Studio 2015 from launching a browser after publishing an asp.net application?

I am working on a site with a publishing profile that pushes the site to a remote host. After publishing I get a new browser window that navigates to the newly published site. This is ok in most circumstances but I am in a situation where I can't allow that last step to occur, I simply want to tell visual studio not to show me the website after publishing. I've checked all the publishing settings that I can find but haven't found any option to control this. Anyone have any ideas?
Does this information from Visual Studio 2013 still hold true for 2015?
http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis
I can't check it myself, but essentially it says that in the 'connection' tab of the deploy dialog, the Destination URL setting isn't required. When Visual Studio finishes deploying the application, it automatically opens your default browser to this URL. If you don't want the browser to open automatically after deployment, leave this box blank.
Do you want to try that?
Update for Visual Studio 2019:
In the "Publish" page, look for "Configuration". On the right side, click the Pencil Icon.
In the next dialog, open the "Connection" tab, and empty the field "Destination URL".

Android Studio: refresh preview on picture change

I'm using Android Studio 1.0.2 and Gimp as external editor for the images.
When I want to modify an image, I select it, click on "Jump to external editor", apply changes, save it, go back to Android Studio and... close/open project to refresh the changes.
Is there a shortcut for this ? I cannot find any "refresh preview".
Even if I recompile, start the app, close/reopen the preview, I cannot see the changes on the preview (only on the execute app).
Well, it's really easy, indeed... didn't notice the button.
In the preview panel, upper right corner (on the right of the + and - buttons), there's a refresh button.

Resources