473,785 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with SmartClient params, Someone from Microsoft please read....

I have a WinForms application that I'm trying to deploy as a
"SmartClien t" (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.Get CommandLineArgs (); 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 couldn't find this
documented anywhere, but it does work. The call to
Environment.Get CommandLineArgs () returns a string array with two
elements. The first element points to the location of IExec.exe, the
second element has the full URL with my parameters and a session
hashcode appended to the end, it looks something like this

http://myserver/myapp.exe?name=jdeat...539C2A00E4E1C8...

This seemed to be consistent, so I wrote a method to parse out the
name/value pairs from the parameter list and proceeded to call
System.Web.Http Utility.UrlDeco de() on each of them.

This approach worked well until I added a Web Reference to my project,
anytime I attempt to call a web service from my app it fails if
parameters (e.g. ?name=jdeats&ag e=27) have been passed in. The error
message is as follows:

"Error loading XML file
http://myserver/myapp.exe?name=jdeatsage=27.config. There is an
invalid character in the given encoding"

Note that: no where in the code am I attempting to load a .config file
of any sort, an app.config has never been added to the project. The
Web Reference is set to "Static", yet some method call (I presume an
internal Microsoft method) has converted:
"http://myserver/myapp.exe?name= jdeats&age=27 into
"http://myserver/myapp.exe?name= jdeatsage=27.co nfig".

With the more params I attempt to add, it's always the same. '&'
characters are stripped away and a ".config" is concatenated on to the
end. As a result of this the web service call can not be made. I'd
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.
Nov 15 '05 #1
0 1198

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

Similar topics

2
1926
by: Suzanne | last post by:
Hi all, I'm attempting to save images (that are in jpeg format) to a database column of type image. I've read over the Microsoft Knowledge Base articles for this and I can get things working when the image is in a gif format - but not when the image is in a jpeg format - I get the error that the file can not be found (& I've checked - the file is there)! My code is :
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...
2
2216
by: JDeats | last post by:
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.exe?username=joe&age=12 Providing code access security permissions allow it, mywinformapp.exe is downloaded to the client and launches...
2
2292
by: John Mullin | last post by:
We are having a problem which appears similar to a previous posting: http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1 In the current release of our system, we decided to "wrap" the ASP.NET Session and Application objects to improve code clarity and accuracy. For example, instead of: Session = new SomeListClass;
0
1059
by: Deasun | last post by:
Good morning, Hope someone out there can help. I have 5 PCs that hit my intranet server. All 5 will run the smartclient from the webpage. One of the PCs does not seem to be reading the apps config file. This is where I have a number of keys with SQL CMDs as the values. It gives no errors but the result is always a empty string. 3 of the other PCs have the .Net Dev IDE installed on them. The 4th not sure if the IDE is on it or not.
0
2571
by: glmlima | last post by:
I need to implement a prompt of commands (mere academic project). The function presents errors in the call execve, as parameter. It follows the code below. I´m using gcc... thanks. #include "stdio.h" #include "unistd.h" #include "sys/types.h" void type_prompt(); //shows the prompt
4
1418
by: Mike | last post by:
Greetings, I have an aspx page where on it is a link that calls my smartclient (a windows form) that opens up. When the user is done in the form, he or she hits a button that saves data and closes the form. I want the smartclient to call the opened browser (IE6 and maybe 7 down the line) and refresh the aspx page. The page contains a datagrid control that gets populated on the page's load event. Does anyone know how you can do that? ...
2
3582
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
4082
by: Bogdan | last post by:
Hi, I have a stored procedure that uses JOINs to return columns from multiple tables. I also have another stored proc that that takes a series of params and updates multiple tables. I used the framework to auto-generate a table adapter specifying both stored procs as Get/Fill and Update. The problem is that columns from the JOINed table seem to marked as 'read-only' so trying to update a row results in an exception. BTW, by default a...
0
9647
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
10162
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
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
8988
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...
0
5396
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...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
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.