Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Proxy 407 Access Denied

$
0
0

Hi,

I have installed VS2015 Enterprise/Community, and the .net core sdk DotNetCore.1.0.0.RC2-SDK.Preview1-x64. Now start to create projects with .Net Core framework. I chose the .NET Core template, and then selected ASP.NET Core Web Application (.NET Core) Visual C#, and filled in the fields (project name) then clicked on next, then chose the empty/web application/web api, and then clicked "OK" button, then the solution created. However, I see the "namespace "System" could not found error in the Startup.cs file. There is also errors shows after the References, which in the output window show the detailed message as below, I did worked with my network administer to resolve this, and they are not able to find the error. I also see the folder is empty when I try to add references to the project, and hence not able to add any references to the project.

log  : Restoring packages for C:\projects\My.First.Core\src\My.First.Core\project.json...

error: Unable to load the service index for source https://api.nuget.org/v3/index.json.

error:   Response status code does not indicate success: 407 (Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )).


I googled around, and found the proxy settings in the C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config file, to add the following, but still not resolve the issue:

<system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true">
     <proxy bypassonlocal="true" proxyaddress=http://myproxy:port# />
    </defaultProxy>
    <settings>
         <ipv6 enabled="true"/>
     </settings>
 </system.net>


Please help, and what is the proper way to set environment? Do I only need to install the VS and then .net COR SDK for Windows? I used sitehttps://www.microsoft.com/net/core#windows, but it didn't say how to install .net COR. 

Thanks,


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>