|
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-----
|
|
|
|
|
Heath Stewart wrote:
Well, my first guess would be that the web service method is timing out!
Well, I've tried calling other web services and methods. Some methods have nothing to do with data access. I've even tried Google's APIs.
Heath Stewart wrote:
Is this web service behind a proxy, or is your client behind a proxy?
The client is where the problem occurs, but the client is not behind a proxy.
The server doesn't matter. As I said, I tried Google's web service, and it too does not work. The error message is the same.
Heath Stewart wrote:
In some cases, SOAP messages will not work through proxies if not configured right (the client request, that is).
How might they be configured incorrectly?
Heath Stewart wrote:
you can increase the timeout by setting the Timeout property to something higher than the default (which is, oddly enough, 100 seconds).
I've tried this to no avail. I tried a timeout of 300 seconds and it still generated the same error message.
I have a symbiotic relationship with my computer.
|
|
|
|
|
dacris wrote:
How might they be configured incorrectly?
If the Proxy property is not correctly set on the HttpWebRequest , the request is most likely going to fail.
-----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-----
|
|
|
|
|
OK. So what do I set the Proxy property to if I'm not using a proxy server? Would it be the IP address of the router? And what about the login information?
I have a symbiotic relationship with my computer.
|
|
|
|
|
That is to be set only if you're using a proxy, otherwise don't mess with it. You said you're not using a proxy, so other than checking the domain restrictions on the computers in your test lab, I really don't know what to tell you.
Have you tried running the app as a privileged user in the test lab, like some domain admin or the local computer admin? Even with such elevated permissions, the local or domain security policy might be disallowing certain things that are necessary.
-----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 need an advice.
I am trying to create a multipeer system where one peer could accept multiple connections from others and should be able to make multiple connections to others.
What should I use?
- Only Threads.
- Array Lits of sockets controlling it with Select() Method.
Does anyone have a multipeer-to-multipeer code sample?
Thanks in advanced
Mario
|
|
|
|
|
ComponentDesigner.OnSetComponentDefaults() executes only when the component is dropped on a windows form. In case of a web form it does not execute. Although the designer object is constructed in both cases. This looks like a framework/IDE bug to me.
|
|
|
|
|
Hello all at CodeProject,
DataGrid customization...... I am building a DataGrid for
displaying some values in a DataSet. I am able to:
- resize last visible column to fill the entire client area of the DataGrid
- Hide and redisplay columns by using ContextMenu
- Filter the DataGrid with use of a filter expression
The next thing on my list, is wrapping text in DataGridTextBoxColumns.
I am able to resize all the cells by overriding some methods
of a DataGridTextBoxColumn(GetMinimumHeight, GetPreferredHeight), but
this makes all the rows the same height.
I want to wrap text and resize the cell to fit per individual row.
Is there anybody out there that knows how to do this?
(or maybe Microsoft would like to replace it's DataGrid with one that
does not suck.)
Thx, Wouter van Vugt
|
|
|
|
|
Does anyone know how to tell if an icon oject has been given a value.
Even if I set the object to null as shown below, the object is still set to undefined. So if I use the following code I get an error:
System.Drawing.Icon objIcon = null;
if(objIcon != null)
{
}
I am starting to think that the only way to do this is to add a Try\Catch for this error.
Any Suggestions?
Thanks Heaps.
|
|
|
|