473,770 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "SmartClien t"). 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.ex e
is downloaded to the client and launches though IEExec.

I found a way to get to the QueryString params though:
Environment.Get CommandLineArgs (); 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.ex e?username=joea ge=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.Get CommandLineArgs ().

Does anyone know how to resolve this?
Nov 15 '05 #1
2 2215
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.goog le.com...
I have a WinForms based application that I'm launching over http
(Microsoft's buzz word for this is aparently "SmartClien t"). 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.ex e
is downloaded to the client and launches though IEExec.

I found a way to get to the QueryString params though:
Environment.Get CommandLineArgs (); 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.ex e?username=joea ge=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.Get CommandLineArgs ().

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
1606
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: @ $mbox=imap_open("{**************:143}INBOX", "*****", "*******"); $input = imap_body($mbox, 22, FT_INTERNAL); $params = true;
0
1689
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 .net C# classes. At the moment I am working at the simplest level (not getting in to Add-ins just yet) from a COM point of view. Up until now I have had no problems translating some of the tamer functions that they currently have in VBA, however...
0
1353
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 exe under IIS application folder 3) make the server URL full trust on client IE. 4) Make a html page which contain the URL above. While client the url in IE, sometime it work but sometime doesn't.
0
1198
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 able to get to pass parameters into it. I found a way to do this though the Environment.GetCommandLineArgs(); method call and passing in attributes just as I would with an ASP or ASP.NET page (e.g. http://myserver/myapp.exe?name=jdeats&age=27)I...
1
2594
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 $params; //outputs value1 echo $params; //outputs value2 My question is, is there an easy way to get this in C# ? Or do I have to
0
850
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 trivial page (see below) to the virtual directory. I get an error "Object reference not set to an instance of an object" trying to reference Request.Params. If I run under the Visual Studio 2005 built-in Web server, this works without a problem. ...
2
7257
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 Request.Params("fname") & Request.QueryString("fname"). So what's the difference between Request.Params("fname") & Request.QueryString("fname")?
2
3578
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 uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information from the database and allow the user to update the database using the web page' stage and realized...
5
1289
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 in
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.