|
The % was just a typo in the post.
Every now and then, the CPU usage will also be reported as 100%.
|
|
|
|
|
Hi every one,
I am new in .NET and this is my first time entering the message board. You might find my questions are pretty dummy. OK, here is my first question:
Why the tab control in .NET Campact Framwork looks upside down? How can I change it.
Thank in advance for your help,
Willa Wei
BTW, if you find I am at a wrong place, please tell me where I can ask question like that. Thanks.
|
|
|
|
|
Willa Wei wrote:
Why the tab control in .NET Campact Framwork looks upside down? How can I change it.
It's 'upside down' because that's how the handheld UI works, just like the start button is at the top instead of the bottom. It's NEVER a good idea to deviate from UI standards that users are accustomed to without VERY good reasons.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am attempting to write a code sample where I define a toolbar complete with images. I then would like to click on the particular toolbar button, which would move that toolbar icon button's image to main form. ( which I have working) The problem comes when I want bring a second copy of the item down to the main form.
I believe the form.refresh() is deleting the orginal bitimage. how do i save images on the mainform.
DanTubby
|
|
|
|
|
Dantubby wrote:
I believe the form.refresh() is deleting the orginal bitimage. how do i save images on the mainform.
Do you have a picture box on your form or are you using the Graphics class to draw the image to the form? What do you want the images to do when you already have one image there? Can you clairfy some of this first?
- Nick Parker My Blog | My Articles
|
|
|
|
|
I am using a graphics class to draw images to the form. I am attempting to build a network simulator with the basic functionality of the NAM portion of NS2. So the toolbar buttons represent nodes, and links currently. I would like to be able to interactively place the nodes and links on the form and connect them.;)
Dan Smith
|
|
|
|
|
How to use soap for long time server treatments (more 1 hour)?
How to use soap for significant data exchanges (more 100 Mo)?
i use wse functions : SoapEnvelope, SoapClient, SoapService and protocol http but when the server treatments is too long (more 2 minutes) i have this error message.
Subscribing...
Unhandled Exception: System.Exception: Operation Timed Out
at Microsoft.Web.Services2.Messaging.SoapClient.SendRequestResponse(String me
thodname, SoapEnvelope envelope)
at messaging.PublisherClient.recherche(SoapEnvelope env) in c:\inetpub\wwwroo
t\subscriber\subscriberapp.cs:line 60
at messaging.rechercherApp.Main(String[] args) in c:\inetpub\wwwroot\subscrib
er\subscriberapp.cs:line 19
i try to change server and client web.config (executionTimeout=-1,maxRequestLength=-1) and machine.config (httpRuntime executionTimeout=3600 maxRequestLength=4096) but no result.
jf
|
|
|
|
|
What does your problem have to do with Web Service Enhancements (WSE), as you implied in your post? This problem would exist for just simple HTTP GET requests. Timeouts are inevitable with HTTP and many other protocols.
Waiting for long operations over HTTP is not recommended. Both servers and clients will timeout eventually, even when on local area networks (LANs). If you need to run a long operation on a server triggered by a client, then you should use something like WS-Addressing in the WSE 2.0.
Basically, your client needs to poll the server (or a server, if your routing messages around) with a request for completion. The server either tells the client "no, I'm not done yet" or "I'm done, here's your data". The client should have the ability to tell the server "stop, I don't care anymore". Trying to extend the timeout to enough time is not a good idea, either, since genuine errors would take that much time before an error is reported back to you.
Finally, never change the machine.config file when you can make changes closer to the client (like the web application's Web.config, the site's Web.config (in /), or YourAppName.exe.config)! Clients don't even use the <httpRuntime> section; it's used only by ASP.NET.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Thanks for your answer.
Do you think it's possible to use tcp/ip protocol with wse to resolve my problem of timeout
jf
|
|
|
|
|
You already are. HTTP - the Hypertext Transfer Protocol - runs on to of TCP/IP - the Transmission Control Protocol/Internet Protocol. Almost every protocol that runs across the internet rides on TCP/IP (a few use UDP, but rarely).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Just a quick question.
SELECT t.USERID, p.DESCRIPTION, t.USERNAME, t.PASSWD, t.FULLNAME,
t.REPORTTOID, pe.DESCRIPTION From TBUSERS t INNER JOIN TBSTORES p ON
t.STOREID = p.STOREID INNER JOIN TBACCESSLEVELS pe ON t.ACCESSLEVELID =
pe.ACCESSLEVELID ORDER BY USERNAME
where
<br />
<ItemTemplate><br />
<asp:Label Text='<%# <br />
Convert.ToString(DataBinder.Eval(Container.DataItem,<br />
"DESCRIPTION")) %>' Runat="server" ID="lblSTORE"><br />
</asp:Label><br />
</ItemTemplate><br />
<br />
<ItemTemplate><br />
<asp:Label Text='<%# <br />
Convert.ToString(DataBinder.Eval(Container.DataItem,<br />
"DESCRIPTION")) %>' Runat="server" ID="lblACCESSLEVEL"><br />
</asp:Label><br />
</ItemTemplate><br />
And I get the STORE NAME for both outputs.
Because DESCRIPTION is the same in the datagrid can you help me.
Thank you.
The tables
TBSTORES (STORESID, DESCRIPTION),
TBACCESSLEVELS (ACCESSLEVELID, DESCRIPTION)
mcupryk@sun.net.bb
|
|
|
|
|
Just a quick question.
SELECT t.USERID, p.DESCRIPTION, t.USERNAME, t.PASSWD, t.FULLNAME,
t.REPORTTOID, pe.DESCRIPTION From TBUSERS t INNER JOIN TBSTORES p ON
t.STOREID = p.STOREID INNER JOIN TBACCESSLEVELS pe ON t.ACCESSLEVELID =
pe.ACCESSLEVELID ORDER BY USERNAME
where
<itemtemplate>
<asp:label text="<%#
Convert.ToString(DataBinder.Eval(Container.DataItem,
"DESCRIPTION")) %>" runat="server" id="lblSTORE">
<itemtemplate>
<asp:label text="<%#
Convert.ToString(DataBinder.Eval(Container.DataItem,
"DESCRIPTION")) %>" runat="server" id="lblACCESSLEVEL">
And I get the STORE NAME for both outputs.
Because DESCRIPTION is the same in the datagrid can you help me.
Thank you.
The tables
TBSTORES (STORESID, DESCRIPTION),
TBACCESSLEVELS (ACCESSLEVELID, DESCRIPTION)
mcupryk@sun.net.bb
|
|
|
|
|
|
Exactly how do I go about doing that?I tried to post the code here so you could see it but I couldnt get it to load up right that is why its posted twice.I know you are right that I have to create and alias but how? If you can help please send and email to mcupryk@sun.net.bb .
<code><ItemTemplate>
<asp:Label Text='<%#
Convert.ToString(DataBinder.Eval(Container.DataItem,
"DESCRIPTION")) %>' Runat="server" ID="lblSTORE">
</asp:Label>
</ItemTemplate>
<ItemTemplate>
<asp:Label Text='<%#
Convert.ToString(DataBinder.Eval(Container.DataItem,
"DESCRIPTION")) %>' Runat="server" ID="lblACCESSLEVEL">
</asp:Label>
</ItemTemplate></code>
And I get the STORE NAME for both outputs.
Because DESCRIPTION is the same in the datagrid can you help me.
Thank you.
The tables
TBSTORES (STORESID, DESCRIPTION),
TBACCESSLEVELS (ACCESSLEVELID, DESCRIPTION).
|
|
|
|
|
You do it in your SQL expression: "SELECT a.Description as Description FROM TableA a WHERE a.ID = @someID".
In the future, all requests regarding ASP.NET should be posted in the ASP.NET forum.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
How do I implement it in my data datagrid if I have two description(s)?
|
|
|
|
|
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
|
|
|
|