Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Query-strings in ClickOnce
 

Query-strings in ClickOnce

Hi,

Is it possible to use query-strings in combination with ClickOnce?

Example:

Suppose I have created an application that is started using the following url:

http://myserver/myapp.application

Now, suppose that I want to start my application using a query string:

http://myserver/myapp.application?someparam=17

Is it possible to get hold of the "someparam=17" part in my application?

/Jonas
MigrationUser 1  Tuesday, September 14, 2004 3:57 AM
There is a setting in your manifest to allow/disallow this.

You can set that on the Options dialog in VS.
MigrationUser 1  Friday, November 19, 2004 8:15 PM
I don't see this option in the Publish->Options dialog. Is this the VS 2005 Beta 1 (C# project) you are referring to? Or am I looking in the wrong place?

Brian Noyes (http://www.softinsight.com/bnoyes/PermaLink.aspx?guid=929f2d31-dd64-4ad4-b8ae-ec9960dce028) gives instructions on how to accomplish this by editing the deployment manifest, and resigning it using mage.exe. Unfortunately this does not work. When opening the manifest, after inserting the trustURLParameters=“trueâ€?nbsp;attribute to the deployment element, I get an Unrecognized file type exception.

Do you have any ideas of what I might be doing wrong? Or has the attribute been removed (or never added) in the version I’m running?

Any other suggestions on how to get this working?

Best regards,
Kenneth Andreasen
MigrationUser 1  Thursday, December 02, 2004 5:43 AM
I'm not getting this to work in VB either.  Could someone post an exact walkthrough (working) for harvesting parameters?  Please please?!

Marc
MigrationUser 1  Saturday, December 04, 2004 5:16 PM

You can use google to search for other answers

Custom Search

More Threads

• I don't understand Visual C# 2005 Express publish
• disribute my application without installing sql server 2000
• Microsoft .NET ClickOnce Launch Utility error
• Visual Studio2005 Application doesn't run on a normal .NET 2.0 PC
• Chain SQLExpress2008 Install
• Install a ClickOnce app to a server via an MSI
• Multiple EXE files - Changing <EntryPoint> in Manifest
• .Net Deployment -Have a Web URL in my deployment project and want to create a shortcut on the Users Desktop
• Appropriate Name
• ClickOnce fails with no message when download to "owner" account