ClickOnce Bug (in Beta 2 of Whidbey)?

Last few days I have been messing around with the Beta 2 edition of Whidbey (now its called VS.NET 2005, but I still prefer Whidbey).  If you recall my previous post about ClickOnce, my experience so far has not been good. I imported my clock applicaton (more on the issues importing it at another time) to Whidbey and tried to deploy it but for some reason it did not work and get a non descriptive error saying:

System.ArgumentException: This method is not supported.
Parameter name: value
   at System.Net.FtpWebRequest.set_Method(String value)
   at Microsoft.VisualStudio.Publish.BaseProvider.PathUtil.UrlExists(String url)
   at Microsoft.VisualStudio.Publish.ClickOnceProvider.BuildManager.OpenBrowser()
   at Microsoft.VisualStudio.Publish.ClickOnceProvider.BuildManager.Publish()
   at Microsoft.VisualStudio.Publish.BaseProvider.BuildManager.InvokePublish()

Here is the  full log in its glory, other than a few warnings everything is pretty straight forward so it should not be as bad. Please note this is using the GUI (so goto Build => Publish {Project Name}). I am sure there is a command line thing as well which is the next step to explore, but this does seem to be like a bug.

Also the tmp file below is basically the exception above.

—— Build started: Project: Clock, Configuration: Debug Any CPU ——

Csc.exe /noconfig /unsafe+ /checked- /nowarn:”1701;1702″ /nostdlib- /warn:4 /baseaddress:285212672 /define:DEBUG;TRACE /reference:bin\Debug\Microsoft.Practices.EnterpriseLibrary.Configuration.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\System.Xml.dll /debug+ /filealign:4096 /optimize- /out:obj\Debug\Clock.exe /resource:obj\Debug\TheClock.formOptions.resources /resource:obj\Debug\TheClock.WorldClock.resources /target:winexe /warnaserror- AssemblyInfo.cs Clock.cs ClockOptions.cs ConfigSettings.cs Options.cs Properties\Settings.Designer.cs TimeZoneInformation.cs WorldClock.cs

Compile complete — 0 errors, 0 warnings

Clock -> C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Clock 2.0\Clock\bin\Debug\Clock.exe.manifest

Clock -> C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Clock 2.0\Clock\bin\Debug\Clock.application

Clock -> C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Clock 2.0\Clock\bin\Debug\Clock.exe

Building Clock…

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning : Could not find resources for culture ‘en-US’. Using culture ‘en’ instead.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning : Could not match culture ‘en-US’ for item ‘.NET Framework 2.0 Beta’. Using culture ‘en’ instead.

Done building project “Clock.csproj”.

—— Publish started: Project: Clock, Configuration: Debug Any CPU ——

Connecting to ‘ftp://desigeek.com/sandbox/worldclock/clock2.0/’…

Publishing files…

Publish success.

Error: Publish failed with the following error: This method is not supported.

Parameter name: value

Publish failed.

Click for log: “file:///C:\Documents and Settings\Administrator\Local Settings\Temp\tmpAA.tmp”

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

Published by

Amit Bahree

This blog is my personal blog and while it does reflect my experiences in my professional life, this is just my thoughts. Most of the entries are technical though sometimes they can vary from the wacky to even political – however that is quite rare. Quite often, I have been asked what’s up with the “gibberish” and the funny title of the blog? Some people even going the extra step to say that, this is a virus that infected their system (ahem) well. [:D] It actually is quite simple, and if you have still not figured out then check out this link – whats in a name?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.