How do I configure proxy credentials for Visual Studio 2012? - visual-studio-2012

I have searched on MSDN, but i could not find how to configure username and password for proxy on Visual Studio 2012 config file.
I found this:
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy bypassonlocal="True" proxyaddress="http://<yourproxy:port#>"/>
</defaultProxy>
Is there a way to specify username and password?
Thanks

Set the proxy in Internet Explorer (Tools/Internet Options/Connections/LAN Settings/Proxy server) and save the credential for the Proxy in the Credential Store (Control Panel\All Control Panel Items\Credential Manager).
Note that while setting the proxy in IE, the Advanced button allows you to control which URL goes through the proxy and which not.
Absolutely no need to touch Visual Studio config file.

Related

How to allow remote access to Visual Studio 2013 web debug

I am developing a Web API project in ASP.Net using Visual Studio 2013.
When I click debug it launches the website in IIS and displays it in Chrome browser. However, I cannot access it from another device.
I need to access the API from my mobile device for testing purposes. How can I perform remote debugging in Visual studio 2013?
there were few posts concerning this topic here (one, two). I faced the same problem recently and the most sufficent post I found was this one.
Your device is running under AVD emulator ?
I suggest follow this steps:
Install IIS
Configure Visual Studio to use local IIS (Page properties in your Web Project)
Create a exclusive AppPool in IIS to work with your application
In my Project I'm using Oracle Client and must be 32bits (64 bits don't works with Visual Studio) then I need allow 32 bit in Application Pool
Configure the Windows firewall to allow request in port 80 (inbound rules)
In your device use the intranet IP DON'T USE LOCALHOST OR 127.0.0.1, because some emulators works under another IP
From Handling url binding failures in IIS Express:
Serving External Traffic
To enable your website to serve external traffic, you need to configure HTTP.sys and your computer's firewall. From an elevated command prompt, run the following command:
netsh http add urlacl url=http://myhostname:8080/ user=everyone
After configuring HTTP.sys, you can configure IIS Express to use port 8080 by using WebMatrix or Visual Studio 2010 SP1 Beta+, or by editing the applicationhost.config file to include the following binding in the sites element. (Replace myhostname with your computer's domain name).
<binding protocol="http" bindingInformation="*:8080:myhostname"/>
You will also need to configure the firewall to allow external traffic to flow through port 8080.

Configure Aptana Studio 3 with Local IIS Server

I am very new to web development and so I am also very new to Aptana Studio and IIS. I just installed both on my computer today. I read instructions on Aptana Studio's help system about adding a web server, but it does not seem to work for IIS.
I have IIS 7 running locally on my machine. In Aptana, I went to Servers --> Add Server --> Simple Web Server. Then I gave it the following parameters in the dialog:
Name: IIS
URL: http://localhost:80
Document Root: C:\inetpub\wwwroot
The server then appeared in the Servers View, but status was N/A and the preview of any website would still use the built in web server included with Aptana.
My Google searching has not found any more specific instructions for configuring Aptana with IIS.
I have had some success by going to the Debug Configurations, from there you can switch the launch location (and browser executable) with a combination of radio buttons. To access the menu, click on the pull down next to the debug button.

Acquiring Software via WebPi Through Web Proxy Requiring Authentication

I am behind a corporate firewall and the company I work for has VS 2012 Ultimate. I want to start developing for SharePoint 2013 using VS 2012. I found out later that the default installation does not include project templates for SP 2013, but requires to install "Microsoft Office Developer Tools for Visual Studio 2012" that can be found # http://msdn.microsoft.com/en-US/office/apps/fp123627 .
This tool is installed through Web Platform installer. The MS WebPi has does not work where proxy authentication is required and throws an error.
Is there any offline installer for "Microsoft Office Developer Tools for Visual Studio 2012" ?
Try creating or editing the existing application config file %ProgramFiles%\Microsoft\Web Platform Installer\WebPlatformInstaller.exe.config.
Create an assembly to provide proxy credentials and specify the assembly in the module element:
<configuration>
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="false">
<module type="ProxyCredProvider.DefProxy, ProxyCredProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5e3bf8f3a8a14cca" />
</defaultProxy>
</system.net>
</configuration>
I have an easier suggestion that worked for me.
I suggest this be a TEMPORARY solution because your password is in CLEAR TEXT.
1. Create two Windows environment variables:
NAME: HTTP_PROXY
VALUE: http://(YOUR USERNAME):(YOUR PASSWORD)#(IP ADDRESS OF THE PROXY SERVER):(PORT NUMBER OF PROXY)
EXAMPLE: http://joe:password123#192.168.1.1:9090
NAME: HTTPS_PROXY
VALUE: https://(YOUR USERNAME):(YOUR PASSWORD)#(IP ADDRESS OF THE PROXY SERVER):(PORT NUMBER OF PROXY)
EXAMPLE: https://joe:password123#192.168.1.1:9090
2. Sign out then back into the server
3. Try running Web Platform Installer again
HOW TO CREATE A WINDOWS ENVIRONMENT VARIABLE
Go to Control Panel\System and Security\System
Select Advanced system settings
Select the Advanced tab
Click the Environment Variables.. button
The top section is for the currently signed in user.
Click the NEW button to add a new environment variable

assistance with getting web deploy from visual studio set up

I am working on getting web deploy set up on IIS 7.5. I have followed the steps exactly in this article:
http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler
I have tested importing and exporting applications on the server and all work perfectly. Now I would like to set up remote access to ms deploy so I can install web applications by publishing in visual studio 2012 with publish profiles.
Here is where I am confused, what is the url I include in this for the service url (ie. msdeploy.axd)? Where I can find it on the servers iis (server is located on different machine than visual studio)? I have read about access is over port 8172, how can I check that this is open for communication?
Thanks for any help
First up, the installation instructions you want are Installing and Configuring Web Deploy in the "Install" section of the site. The instructions you linked are from 2008.
Once you've installed MSDeploy v3 as per the newer instructions, the MSDeployServiceURL value will be https://webserver:8172/msdeploy.axd. You'll also probably need to set <AllowUntrustedCertificate>true</AllowUntrustedCertificate> if you don't have a cert on the server.
The user in question will need to be an administrator unless you have setup non-administrator deployments (instructions in the same link).

RIA Services Web.config default configuration

When I install RIA Services with NuGet (Version 4.1.60730), the default Web.config registeres the domain service module under both and .
This works fine with the development server in Visual Studio 2010, but the standard configuration of the full IIS complains about the setting being incorrect for integrated pipeline mode.
Commenting out the registration under system.web fixes the issue there, but then it won't run under the development server.
Is there a configuration that works in both cases? If not, how to go around this problem?
I know I could install RIA Services system-wide, but I'd like to move away from that.
There is an option to disable the complaint about spurious entries in system.web. Put
<validation validateIntegratedModeConfiguration="false" />
in system.webServer.

Resources