aspnet / dnvm

OBSOLETE - see readme
Other
174 stars 61 forks source link

dnvm upgrade - Exception calling ".ctor" Invalid Uri #289

Closed Conrad2134 closed 9 years ago

Conrad2134 commented 9 years ago

When trying to run dnvm upgrade, I get this exception:

capture

I am running Win 7 Enterprise w/ Powershell 4.0

Conrad2134 commented 9 years ago

I've been debugging through the script and found that it errs out on this line on the apply-proxy method:

$wp = New-Object System.Net.WebProxy($Proxy)

Conrad2134 commented 9 years ago

I took out my username + password out of the proxy url in my user variables, and it ran successfully. It was looking like this:

http://USERNAME:PASSWORD@ADDRESS:80 - and I changed it to look like: http://ADDRESS:80 - which made it work.

I did have an '@' in my password - could it not have liked parsing that, expecting an @ to delimit the password and address? I don't know much about proxies and such.

ankeshdave commented 9 years ago

@Conrad2134 If your network is using 'NTLM' proxy then on Windows you need not specify Username and Password. Most application on windows pick up proxy from

IE (IE Options -> Connection -> Lan Settings)

If you still need to use proxy (with uname & pass) for some applications (Like npm ( in .npmrc file) or for bower (in .bowerrc file) you can use an Authentication Proxy like CNTLM
I use this in my network, Also you can use the same for Linux (Ubuntu, CentOS tested) :smile:

Conrad2134 commented 9 years ago

Thank you @ankeshdave! We do need proxy for some stuff, so I will look into CNTLM.