Monday, April 11, 2011

ClickOnce Error in .NET After Password Change

I ran into this issue and found few sites actually document what to do.

If you change your password (or password changes on a a remote login) and you try to do a ClickOnce deployment you may get an error that it can't publish because it can't find the specified directory.

The solution is to map a drive to that remote location and check the "use different credentials" button.  Use the credentials for that mapped drive and once you've successfully connect then retry publishing.

Basically, the password gets cached and .NET tries using the cached settings instead of prompting for a new login/password.