|
It's hard to see where an error might occur, so you should try debugging that method and seeing on which line the exception is thrown. You should also try stepping through the code (put a breakpoint on the first line of your Closing handler and step into each line. The low reproducability rate might make that a little tedious, but that's the world of software development. You could also use Debug.Assert which may speed up the process a little. Good luck!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I have visual studio .NET 2003 but how do I create a project in C# ? If I go to New -> Projects I get all the managed C++ items but how can I create C# projects? If I just create a file, I do not have the option of a .cs file - must I download something or will it compile .cs files as it is?
Obseve everything, remember more...
|
|
|
|
|
Check our VS.NET installation. Have you installed C# support?
|
|
|
|
|
No, how do I install C# support?
Obseve everything, remember more...
|
|
|
|
|
Re-run the setup and select C# when choosing installation components. If C# is not an option, then you only bought Visual C++ .NET and not the full studio. Either buy the full studio or buy C# .NET to go along with it. If you can return Visual C++ .NET, I'd recommend doing that and getting the full studio since it'll most likely cost you less than buying two separate components.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thanks
Obseve everything, remember more...
|
|
|
|
|
how do i remove/hide/clear control border? i need datagrid, listiew, listbox or textbox that has no border, and i use it in .NET Compact Fromework on WinCE 3.0
please help... Thanks
|
|
|
|
|
Set the "BorderStyle" property to "None", if it exists in .NET Compact Framework.
|
|
|
|
|
property BorderStyle is not available for .NET Compact Framework. I want it to be programaticly hiding control border.
|
|
|
|
|
Hi,
I'm getting the following error "The request failed with http status 404: Not Found" when trying to execute a web method on a web service from a client windows app. The webservice works fine when running the web service on it's own. I've tried updating the web reference, removed the Web Service and added a new one and ported the code over to the new WebService, basically tried everything I can think of but no success.
Does anyone have any ideas?
Thanks in advance.
|
|
|
|
|
Are you providing all parameters of the correct Type when calling the method? If you are using inherited objects, try casting them to the parameter
Type instead of relying on the CLR to handle it. This may be causing a problem with resolving the correct web method. <br />
<br />
<div style="width: 100%; font-size: 4px; margin-bottom: -10px; background-color: rgba(255, 153, 0, 1)"> </div><br />
-----BEGIN GEEK CODE BLOCK-----<br />
<a href="http://www.geekcode.com/geek.html">Version: 3.21</a><br />
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++<br />
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Looks to be OK in regards to both of your suggestions.
Thanks for trying
|
|
|
|
|
Hi
"The request failed with http status 404: Not Found"
|
|
|
|
|
Thanks for your helpful advice in using UserControl in web!
I did a windows service to serve my application . I use socket to send and receive data from and to application , but it has more time to transfer large data .What's technique that I can use for improve my speed .My application and service are running in same host .
Thanks for your help!
|
|
|
|
|
Is there a way to display a window form inside an panel?
|
|
|
|
|
Not without doing some Windows API tricks. But first, can you design your form as a control instead?
|
|
|
|
|
Probably you should start from investigating the IDE with Spy+.
|
|
|
|
|
|
use the "SetParent" api , this way you can tell a form that its parent is your panel..
//Roger
|
|
|
|
|
Regards,
I need a well knowledged buddy discuss me runtime type member(method, property) access using System.Reflection, from performance point of view and memory usage.
I need a comparison with direct develop-time type invoke.
any benchmark or any explanation is appreciated,
Thanks
---
limit nSun = God
n → ∞
|
|
|
|
|
Reflection is generally slow. There is an article somewhere on MSDN comparing various performances. Sorry no link to it.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Ok sure it is rather slow for he first use, but doesn't .NET framework perform some approach for example some sort of cashing to speed it up for second and later invokes?
---
limit nSun = God
n → ∞
|
|
|
|
|
I would think so, although i havent really looked at it explicitly. Generally there will still be a similar overhead as with delegates which is genrally 8 - 10 times slower than a normal non-virtual call. For maximum speed I recommend using an interface.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
When I try to use a web service on a computer that connects to the Internet through a router, I get this exception:
System.Net.WebException: The operation has timed-out.
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebTest.com.dacris.www.DBAccess.Select(String query)
at WebTest.Form1.button1_Click(Object sender, EventArgs e)
Does anyone know why this might occur and how I could fix it?
Thanks in advance.
I have a symbiotic relationship with my computer.
|
|
|
|
|
Well, my first guess would be that the web service method is timing out! Also, everything connects to the Internet through a router. Is this web service behind a proxy, or is your client behind a proxy? In some cases, SOAP messages will not work through proxies if not configured right (the client request, that is).
I see you're using a database from the calls you're making. It's possible that the query is accessing large amounts of data and is taking longer than the response timeout. In making the request (using the HttpWebRequest ), you can increase the timeout by setting the Timeout property to something higher than the default (which is, oddly enough, 100 seconds).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|