|
Finally have some success. Thanks guys!!
I just needed to Lock my source pointer and it's working 'ok' at this time. Still gotta flip the memory upside down and ignore the headers.
|
|
|
|
|
I have a Web Service that I've created called CreditSearch. This Web Service has a single exposed method called Search that returns the requested individual's credit in an XML-formatted string. I then have an ASPX client that calls accepts an SSN as input, calls the service's Search method and displays the results. So far, very easy.
However, I think I'm doing some steps incorrectly. What I do is build the service, run the wsdl utility to create a .cs file, copy that .cs file into the client's project and then run the client. Is this correct?
It seems that I'm supposed to - instead of manually callnig wsdl - select the Add Web Reference menu option and have it do the work for me. However, when I do that, the client code no longer builds. What am I doing wrong here?
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
|
|
|
|
|
Tom Archer wrote:
It seems that I'm supposed to - instead of manually callnig wsdl - select the Add Web Reference menu option and have it do the work for me. However, when I do that, the client code no longer builds. What am I doing wrong here?
Did you add "using statement" to the client code?
After we add Web reference, we must add using statement by hand.
For example, using servicename.host_name.
"using Search.localhost".
Please, don't send me your email about your programming questions directly.
However, if you believe that you gives me some benefits, you can send me your email.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|
|
If only it were that simple. For some reason, the reference file being generated contains an empty class with its public members not showing up.
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
|
|
|
|
|
I found the problem. Properties that are to be exposed by marshalled objects cannot be read-only or they won't be exposed via the WSDL. This is because of some lame rule that the serializer imposes. Get this, though. The set method can be blank meaning that we're forced to include a method that does absolutely nothing in order to make the compiler happy
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
|
|
|
|
|
I came across the same problem today with the XMLSerialiser... But in an attempt to deserialise the object (in my case quite complex) failed...
"I dont have a life, I have a program." Also, I won't support any software without the LeppieRules variable.
|
|
|
|
|
1. (The probably ridiculous question Can a Panel be on one thread, and it's parent Form be on another?
2. I want my app to have two threads- main and worker. How do I stop the worker thread from ending while its waiting for stuff to do? Do I actually have to make some kind of hackish while(true) loop while it's waiting for something to do. If I do that, and then the main Thread calls one of the workers's functions via a delegate, then how do I make it escape the while loop to do it's work?
I mean, the main thread in a normal app doesn't need anything like that in it, it just stays alive waiting for events until the user exits the app. Its not like we do void Main{while(true) listenforevents();} you what I mean? Is there a Thread.ListenForEvents=true so that it won't die?
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
well I answered my first question!
System.ArgumentException: Controls created on one thread cannot be parented to a control on a different thread.
still don't know my other question tho
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Bog wrote:
well I answered my first question!
System.ArgumentException: Controls created on one thread cannot be parented to a control on a different thread.
Not really answered but more of a description to the problem! I sat with this for ages (2 - 3 weeks) when I started C#. The solution is to invoke the method than rather calling it directly. Then this opertion is perfectly allowable!
Cheers
"I dont have a life, I have a program." Also, I won't support any software without the LeppieRules variable.
|
|
|
|
|
Hi!
how can I draw a colored text in a RichTextBox?
thanks
|
|
|
|
|
Use RichTextBox.SelectionColor property
"I dont have a life, I have a program." Also, I won't support any software without the LeppieRules variable.
|
|
|
|
|
how can I remove the textselection again?
|
|
|
|
|
RichTextBox.SelectionLength = 0;
"I dont have a life, I have a program." Also, I won't support any software without the LeppieRules variable.
|
|
|
|
|
Hi,
How Can I check username and password of a user in Windows 2000 advanced Server? I want to check authenticate of all users of a domain, or local users of windows.
mkomasi
|
|
|
|
|
Maybe this will help you for begin:
Getting local groups and member names in C#[^]
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
For better way check this class of .NET:
DirectoryEntry
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Changing the opacity of a MDI child form has no effect.
If I change the opacity of the MDI parent, then the child's opacity changes too.
What I want to do is change the child's opacity independent of the parent's.
Is this possible?
Or, maybe the child form is considered a "control" of the parent and then inherits some characteristics from it.
Cheers,
Simon
"From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
|
|
|
|
|
Hello Friends,
I am trying to create an installer for my application which will check if the .NET Framework is
installed on the user machine. If the framework is not installed then I want my installer to
first install the framework and then install my application.And if the frameWork is installed it
should directly install my application escaping installing .NET Framework.
I have developed the installer using the procedure given in msdn "Redistributing Dotnetfx.exe
using Setup.exe Bootstrapper".
My installer folder, which is right now on my local m/c having path D:\\Installer, contains
following files...
1)mySetup.msi
2)setup.exe
3)settings.ini
4)dotNetFrameWork/dotnetfx.exe
My setting file looks like this
[Bootstrap]
Msi=mySetUp.msi
'LanguageDirectory=
'ProductName=testproductname
'DialogText=
'CaptionText=
'ErrorCaptionText=
FxInstallerPath=dotNetFramework\
now when i try to open/run setup.exe its giving me following error :
"Incorrect command line parameters".
I've tried using :
FxInstallerPath=D:\\Installer\dotNetFramework\
But still getting the same problem.
Can anyone tell me whats the problem.
Thanks in advance.
regards,
Saroj
|
|
|
|
|
Hi.
I have some fundamental questions on the listview.
1) I added a listview with some columns, however, the column titles do not appear. The columns are there, but they do not appear. Is there a setting in winform that can hide it?
2) How do you search for an item in the listview?
3) How do you set the text of a specific item in a listview? For example, I want to set the text of item 2 column 1.
Thanks,
Kuphryn
|
|
|
|
|
kuphryn wrote:
1) I added a listview with some columns, however, the column titles do not appear. The columns are there, but they do not appear. Is there a setting in winform that can hide it?
You need to be on Detail mode instead of Small Icons, Large Icons, or List.
kuphryn wrote:
2) How do you search for an item in the listview?
Well, you would do something like this: myListView.Items.IndexOf(myListViewItem); where myListViewItem is the ListViewItem that you want.
kuphryn wrote:
3) How do you set the text of a specific item in a listview? For example, I want to set the text of item 2 column 1.
myListView.Items[0].SubItems[0].Text = "This text appears in the first row under the second column!"
Hope that helps.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Nice!!! Thanks.
One last question on this item. How do you determine exactly what item the user selects via mouse?
For example, let say I click on item 2, I want the program to do something with item 2.
Kuphryn
|
|
|
|
|
Then you would use the myListView.SelectedItems or myListView.SelectedIndices property instead of myListView.Items
By the way, there are some really cool replacements for the standard list view. Consider this one for your app instead. Carlos really does a good job on custom controls. He also explains what's wrong with the standard one and why he implemented the new features that he did.
http://www.codeproject.com/cs/miscctrl/sortedlistview.asp[^]
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Okay. Thanks.
I tried using SelectedItems, but it does not return the correct selected item. For example, it always return index 0 even if I select index 10.
Kuphryn
|
|
|
|
|
Are you handling the SelectedIndexChanged event? And, since SelectedItems is a collection, did you access it like this: myListView.SelectedItems[0]
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Yes. I added a handler for SelectedIndexChanged event and checked SelectedItems[...]. However, for some reason item 0 is always selected even if I click on item 2002. Weird!
Kuphryn
|
|
|
|