ClickOnce via Response.Redirect

G

Guest

repost again so microsoft may recognize it!
--------------------------------------------------
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?
 
J

Jeffrey Tan[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top