|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ClickOnce via Response.Redirect-------------------------------------------------- I can use a ClickOnce app I made fine, but I cannot seem to reliably access it via an asp.net app that redirects to it: I created a simple ClickOnce windows forms application in VS 2005 that deploys via IIS; that works fine when either type in the URL, for example "http://localhost/ClickOnceTest1//ClickOnceTest1.application", or hit the autogenerated publish.htm URL. Buuuut...if I then make a new, separate asp.net web application (using vs 2003, so .net 1.1), (let's say it's called ClickOnceWebApp1) and simply call Response.Redirect("http://localhost/ClickOnceTest1/ClickOnceTest1.application",true), it generally does not work - once in a while, it works fine! Most times, I get the "Cannot start application" dialog with a msg "..the application is improperly formatted..." If I then click on "details" I see some messages such as the following: Activation of http://localhost/ClickOnceWebApp1/WebForm1.aspx resulted in exception. Following failure messages were detected: + Exception reading manifest from http://localhost/ClickOnceTest1/publish.htm: the manifest may not be valid or the file could not be opened. + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed: -HRESULT: 0x8007001f Start line: 0 Start column: 0 Host file: + A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F) COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected. WARNINGS There were no warnings during this operation. OPERATION PROGRESS STATUS * [1/3/2006 5:47:31 PM] : Activation of http://localhost/ClickOnceWebApp1/WebForm1.aspx has started. {snip!} ---------------------------------------------------------------------------- I find it very odd that it works only sometimes works! I tried setting IE to check for newer versions of the page on every visit (instead of "automatically"), but that didn't help. Any ideas? I want to be able to execute arbitrary server-side logic in my asp.net app, and then, when needed, redirect the user to launch a smart client. Thanks! Was this post helpful to you? Hi asanford2000,
Thanks for your post. I have done some test regarding this, however, Response.Redirect works well on my side. Currently, based on this information, it is hard for us to give a definite solution regarding this issue. I suggest you try some other machines, does the problem still exist? With this, we can identify if this issue is your machine specific. Also, have you checked if there is any firewall installed on your problematic machine? If so, I suggest you turn off it first. Additionally, can you create a very simple clickonce application on the server for testing? Does the problem still exist? I look forward to hearing from you. Thanks! Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights.
Browse for folders dialog
Closing form causes validation Creating a modal process binding to an empty IBindingListView instance fails Check if a form or control is visible in Desktop (to the user) Where to Put DAL and Business Objects in WinForms App? Winform rants... What aspx Stands for? Smart Navigation is not working compact framework combo box |
|||||||||||||||||||||||