I saw that Dino Chiesa from Microsoft made his daily rounds on the newsgroup
without stopping at your message, so I don't know if you will get a response
from MS.
I don't think there is a simple solution. The article below may help.
http://msdn.microsoft.com/library/en-us/dnforms/html/winforms05152003.asp?frame=true
I guess if I had to do it, I would have gone one of two ways.
(1) Embed a User Control on the ASPX page, rather than a full fledged app.
The ASPX page can stick the values into the control and the control can pop
up the main form, etc.
http://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsIeSourcing.aspx
(2) Let the ASPX store the parameters, along with the IP address of the
request in SQL Server, and when the Smart Client hits the server for the 1st
time, get the parms from SQL Server for this IP address, etc.
Let us know what you did in the end, it will be interesting.
> I have a WinForms application that I'm trying to deploy as a
> "SmartClient" (where .exe downloads and auto launches from IE using
[quoted text clipped - 37 lines]
> like to know if this is a bug or is it a by-design behavior. If it's
> by-design what are my work around options.
JDeats - 30 Oct 2003 23:01 GMT
Chris,
Thanks for those hyperlinks, Chris Sells article on "No Touch
Deployment" was exactly what I was looking for, following his advice I
implemented a custom HttpHandler for .exe files and inside that code I
perform the needed conversion:
http://myserver/myapp.exe?name=johnage=25.config
becomes:
http://myserver/myapp.exe.config
Although that neither file actually exist, the conversion makes it
possiblE for web service calls to be made.
I contacted Microsoft developer support and they told me this was a
security feature and recommended a workaround that involved embededing
a control and performing a manual download of all the files for my app
(into a temp folder) then performing System.Diagonistics.Process
spawn... I kindly told them this would circumvent the model I was
trying to work in.
When taking a closer look at the error "XML parse error..." it appears
that this is something Microsoft could fix. When the web service call
is attempted apperently one of class library objects attempts to
locate a .config file for the current Assembly, if there isn't one,
that's usually no problem, but in the scenario I was working in the
object checking this was throwing an exception because
"myapp.exe?name=johnage=25.config" isn't a valid file name. That's my
guess anyway.
Thanks for you help.
> I saw that Dino Chiesa from Microsoft made his daily rounds on the newsgroup
> without stopping at your message, so I don't know if you will get a response
[quoted text clipped - 55 lines]
> > like to know if this is a bug or is it a by-design behavior. If it's
> > by-design what are my work around options.