473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problems getting to querystring params with .Exe launched from IEExec/SmartClient deploy

I have a WinForms based application that I'm launching over http
(Microsoft's buzz word for this is aparently "SmartClient"). I had an
issue trying to get parameters passed in through the URL that I
thought I had solved. For example, let's say I wanted to do this:

http://myserver/appdir/mywinformapp....ame=joe&age=12

Providing code access security permissions allow it, mywinformapp.exe
is downloaded to the client and launches though IEExec.

I found a way to get to the QueryString params though:
Environment.GetCommandLineArgs(); this command returns a string array
with two entries, the second entry is:
http://myserver/appdir/mywinformapp....=12#12ABF5C3FX...
It's the full URL plus the session hash code. I built a parser method
to strip out the name/value pairs of the QueryString nad all was well,
then for no apparent reason the app started having problems extracting
the command line args (it begin adding a .config on to the end and
attempting to load a .config file that didn't exist). The .NET
Framework began returning a run-time error when the app lunches that
says "Error loading XML file:
http://myserver/appdir/mywinformapp.exe?username=joeage=12.config",
it's as if the application is looking for an app.config file and
trying to resolve it's location from the
Environment.GetCommandLineArgs().

Does anyone know how to resolve this?
Nov 15 '05 #1
2 2189
Look just because you have a query exec doesn't make him a bad person. I
don't see what his sexual preference has to do with his technical ability.
You should re-examine your attitude regarding all your clients not just your
smartclients.


"JDeats" <je****@pdq.net> wrote in message
news:b0*************************@posting.google.co m...
I have a WinForms based application that I'm launching over http
(Microsoft's buzz word for this is aparently "SmartClient"). I had an
issue trying to get parameters passed in through the URL that I
thought I had solved. For example, let's say I wanted to do this:

http://myserver/appdir/mywinformapp....ame=joe&age=12

Providing code access security permissions allow it, mywinformapp.exe
is downloaded to the client and launches though IEExec.

I found a way to get to the QueryString params though:
Environment.GetCommandLineArgs(); this command returns a string array
with two entries, the second entry is:
http://myserver/appdir/mywinformapp....=12#12ABF5C3FX...
It's the full URL plus the session hash code. I built a parser method
to strip out the name/value pairs of the QueryString nad all was well,
then for no apparent reason the app started having problems extracting
the command line args (it begin adding a .config on to the end and
attempting to load a .config file that didn't exist). The .NET
Framework began returning a run-time error when the app lunches that
says "Error loading XML file:
http://myserver/appdir/mywinformapp.exe?username=joeage=12.config",
it's as if the application is looking for an app.config file and
trying to resolve it's location from the
Environment.GetCommandLineArgs().

Does anyone know how to resolve this?

Nov 15 '05 #2
Road Warrior wrote:
Look just because you have a query exec doesn't make him a bad
person. I don't see what his sexual preference has to do with his
technical ability.


I don't get it ... Is JDeats gay? :)))))

Christina Androne

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mattoneill | last post by:
Im having problems getting the MIMEDecode PEAR function working, not sure how it expects the messages to be parsed to it, cause currently this is not working: @...
0
by: developer | last post by:
Hi All, I’m currently doing some POC testing for a new client for one of their existing applications, with the hopes of being able to migrate a lot of their existing code embedded in Excel VBA to...
0
by: Sidney Zhang | last post by:
Hi: I got a very strange problem while using my dotNet SmartClient exe in IE. (One Click Deployment.) What we did are 1) a C# dotNet exe, very small, just for testing. around 492K. 2) put the...
0
by: JDeats | last post by:
I have a WinForms application that I'm trying to deploy as a "SmartClient" (where .exe downloads and auto launches from IE using ..NET IEExec process). Part of my criteria for the app is to be...
1
by: Raymond Bennett | last post by:
In PHP if the querystring contains an array of parameters (e.g., param=value1&param=value2&param=value3) then it is easy to retrieve this and reference it as an array $params = $_GET; echo...
0
by: jd | last post by:
I am trying to figure out how to deploy a page and I'm not making much progress. I created an IIS virtual directory, configured it for ASP.NET 2, turned off authentication, and then copied a...
2
by: rn5a | last post by:
Assume that an ASPX page is accessed using the following URL: http://myserver/Page1.aspx?fname=john The value of the querystring fname (which is john) can be retrieved using both...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
5
by: K Viltersten | last post by:
I discovered that when requested http://localhost:52698/ws3/page.aspx and issued a call Response.Write(Request.Params.Count); i got 50 parameters in count. When i actually added some as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.