|
Give them different aliases, like "DescriptionA" and "DescriptionB" so that you can bind them separately to your control. Again, this is all a question of formatting your SQL expression correctly.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hopefully there are enough "ieexec" gurus out there to help me with this problem. I've agressively searched for an answer to this new behavior but it is either too new or somewhat unknown.
For .Net Framework 1.0 SP2, "ieexec" will NTD launch an application with a link like this...
http://server.com/app.exe?foo=bar
...with these parameters...
arg 0: http://server.com/app.exe?foo=bar
arg 1: 3 (this indicates what kind of evidence to generate to the app domain)
arg 2: 3 (if arg 1 is set, this is what type zone to setup the evidence)
arg 3: 86474707A307074636E20727F607C616E6E65627E2E6564730000000 (this is a site id)
For .Net Framework 1.0 SP3, "ieexec" will fail where Fusion claims the binary downloaded can't be opened and inspected. It throws an InvalidProgramException when it tries to open the manifest which causes it to throw a FileNotFoundException . Inspecting the binary by hand it appears to be the exact same binary that is valid and well formed and should be executible. Scratching my head I removed the "foo=bar" parameters from the Url and retry it but then I observe "ieexec doing this instead:
arg 0: http://server.com/app.exe#1A6D780865D8184107287EFF1A3DF156B06330E4
arg 1: 3 (this indicates what kind of evidence to generate to the app domain)
arg 2: 3 (if arg 1 is set, this is what type zone to setup the evidence)
arg 3: 86474707A307074636E20727F607C616E6E65627E2E6564730000000 (this is a site id)
This kind of leads me to two questions:
- What in the world is the extra "#" data on the url? Is it actually useful for anything?
- Can the extra "#" data interfere with "ieexec" to the point where it can no longer parse/ignore parameters?
I'm kind of stuck at this point. In general NTD isn't a widely known or documented topic. Does anyone out there have any insight into what is going on between SP2 and SP3?
|
|
|
|
|
Tom Larsen wrote:
In general NTD isn't a widely known or documented topic.
We (Proplanner) were actually the first to use it in a commercial application that I could find. I designed Proplanner that way before the documentation was even finalized on NTD. There are a few others that I communicated with on occassion about problems that did get pushed to Microsoft eventually (a couple years ago).
So, when you removed all key=value pairs (leaving just the bare application name as http://server.com/app.exe) IEExec appended "#..."? Have you disassembled IEExec.exe (and related assemblies) to find why this might be happening? This is actually how I and another guy discovered that we could get buy passing query-string-like parameters to a NTD app link.
IEExec.exe and related assemblies were updated by SP3 (which is easy to determine by opening the .NET 1.0 RTM in Orca then extracting SP3's MSP and click View Patch in Orca and appling the patch visually - quick slick and I used it many times at Proplanner and use it all the time here now), so the problem is most likely related to SP3 (which you already knew; just wittling down problem areas).
Taking a quick look it does look like IEExec.exe will parse and decode anything after the hash (#), so be sure that no % signs exist or they'll be decoded (shouldn't, but just double check).
To provide any further help, though, you'll need to answer my question whether just executing the application - with absolutely nothing after .exe still works. Also, have you checked to make sure that your IHttpHandler for ".exe" isn't causing the problem (the one that passes the .config file since the "command-line args" screw up the URL)?
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
The application will launch without parameters (ie. http://server.com/app.exe) but without the parameters it will not function correctly. The "#blahblahblah" is generated by something else. Is that extra data appended by IE when it launches "ieexec"? I'm not exactly sure. I still haven't located inside "ieexec" what it is doing with that "#blahblahblah" data.
The IHttpHandler appears to be functioning correctly (passing urls returns the right stuff, eg http://sever.com/app.exe gives me the binary vs http://server.com/app.exe.config gives me the config file and all combations there of).
|
|
|
|
|
I don't remember - that NTD executable is not being run over HTTPS, right? See http://support.microsoft.com/default.aspx?scid=kb;en-us;312546[^]. Same symptoms, it seems.
One other idea occured to me. Grab the SP2 assemblies including and related to IEExec.exe and disassemble them with ildasm.exe (on the command line, use the /out:filename.il along with the assembly path to disassemble to a file). Do the same with the SP3 assemblies and diff the similar .il files. Looking in the assemblies (using either ildasm.exe or .NET Reflector) I don't see anything off hand about why this would fail. Most likely it's a client side issue, from the sounds of it, in which case 9/10 fingers point to IEExec.exe like you have diagnosed.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the {the name of the managed c++ dll} or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe, which is bin/Debug.
|
|
|
|
|
|
Yes, it was because one of the lib files in the additional dependencies of the C++ project was not in the target directory of the C# pj. Thanks
|
|
|
|
|
hiii every bodyyy i am so depressed
i notice that my application memory usage increase as i use it
but thet memoryy decrease when i minimize the app and maxmize it again
what is the secret i want my app memory to be released without needing to minimze it and maxmize it again
tafatifo
|
|
|
|
|
It's not a problem. What your seeing is the Garbage Collector finally getting around to collecting and freeing objects and releasing memory. It's pretty lazy about it, so have some patience.
The GC will jump in and do a collection if it needs to, like if memory starts running low or you or another outside app allocates an object that is large enough to cause a collection to free up memory needed for the new object.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Check your OnPaint event, when you minimize your application, the event handler for that event would never be called, however when you maximize it, the eventhandler would be called consistently. Check to see if you're doing anything in the function that handles that event that uses up a lot of memory. If that's not the case let me know.
|
|
|
|
|
thank you
but this is not the problem as when my form get maximize again after a minimization the memory usage still small
my application consist of a main form that has main menu
each menu item open a new form
every time i close that form and reopen it from the menu item the memory usage increase
i tried to use dispose but the memory doesn't return to it's initial state
open the child form too more times make the memory usage very very big
NOTE:- i have images on my form for the controls
but i think after closing that child form the application memory usage should return to it's initial state
|
|
|
|
|
Hi,
I have a readonly textBox on my windows form, when the user clicks on the textBox I display a monthCalendar control, then in the DateSelected event I populate the textBox with the selected date. My only problem is that the user might decide that the date is not necessary and want to remove it from the textBox. I have tried looking at the hitTest method of the calendarControl but the hitTestArea is always returned as nowhere.
Does anyone have any idea of how I might be able to remove the date from the textBox??
Thanks in advance.
Gavin Jeffrey
|
|
|
|
|
This is really just a UI design issue, you could simply add a small button with a Text property of "Clear" which would then clear the value from the TextBox .
- Nick Parker My Blog | My Articles
|
|
|
|
|
How about a Button "Clear Date" or something similar besides your TextBox whose Click event handler simply clears the Text property of your TextBox .?
www.troschuetz.de
|
|
|
|
|
We apparently posted at the same time, however I must have beaten you by mere seconds.
- Nick Parker My Blog | My Articles
|
|
|
|
|
|
Thanks guys,
Well this seems to be my only option - I was hoping to find a "cleaner" solution since my form is already so cluttered. I have searched endlessly but i can't seem to find any other way besides a button. Looks like i will have to go with the button. Thank for the help.
Gavin
|
|
|
|
|
Another option that comes to mind is using a ContextMenu. For example this could be displayed after right-clicking your TextBox and contain the MenuItem "Clear Date". After clicking the MenuItem the TextBox is cleared.
Never you really worked with ContextMenus so I can give no further help. But I think it's worth a try and shouldn't be that complicated
www.troschuetz.de
|
|
|
|
|
Does anyone know if you can turn off the automatic vertical and horizontal scrollbars on a DataGrid? There seems to be no AutoScroll property.
Thanks!
Mark
|
|
|
|
|
Try something like the following:
[DllImport("user32.dll")]
static extern bool EnableScrollBar(IntPtr hWnd, int wSBflags, int wArrows);
private const int SB_BOTH = 3;
private const int ESB_DISABLE_BOTH = 0x3;
EnableScrollBar(dataGrid.Handle, SB_BOTH, ESB_DISABLE_BOTH);
- Nick Parker My Blog | My Articles
|
|
|
|
|
I am looking to use COM+ transactions in my C#/VB back office application.
I have a form that collects client company details, address, contacts (the usual)
I have create components that allow me to add each of the above to the database in its own transaction, but I want them all to participate in the same transaction. The com+ components will be hosted on a remote server.
From my c#\vb form how do i get these to participate in the same transaction, any help would be appreciated.
|
|
|
|
|
Hi all,
did anybody experience problems after installing .NET 1.1 SP1?
First thing I noticed is that the text of goupboxes that are in an other groupbox is messed up(seems like the wrong font), when using visual styles.
The other thing is that I now get weird exceptions from the Windows.forms stuff, e.g.
Error creating window handle. at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
or
Object reference not set to an instance of an object. at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
or
Object reference not set to an instance of an object. at System.Windows.Forms.WndProc.Invoke(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Does anybody have similar problems?
This ServicePack really sucks!!!
Best Regards
-------------------------------------------
The light at the end of the tunnel has been switched off temporarily due to budget problems...
|
|
|
|
|
I haven't had any problems with it.
You didn't mention when you installed it, so forgive me for the is-it-plugged-in level question, but have you restarted your computer? Installing the service pack and running a .NET app without restarting first can cause all sorts of obscure exceptions in the framework.
Charlie
if(!curlies){ return; }
|
|
|
|
|
Haven't had any problems like your having. Actually, I haven't had any problems at all! It's actually fixed a couple of problems that I ran into with the Garbage Collector and VERY large object allocation.
Are you overriding WndProc in your app? What are you doing in your override?
What are you doing in the Load event of your Form? Also, are you checking to see if your controls actually have handles before doing anything with the handles?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|