|
RG_SA wrote: I see that you have not remoted datasets in your apps
No, I said I haven't done it under all the designer generated crap of VS2008. I normally don't use the designer generated stuff...
I HAVE remoted DataSet's with my own code under 2005. Since a DS is easily serializable under XML, there's no problem. An instance of an Object is not serializable, even if it's a wrapper for a serializable object. If the function returned an object that inherited from DataSet, it shouldn't be an issue.
OK. The original post changed. The error you're getting is probably caused by the interface definition not being found. Is the assembly that defines the interface in the folder from where the server .EXE was launched?? Are you returning an implementation of that interface?? Is the assembly for that definition in the server .EXE's folder?? Do the assembly version numbers match what the server .EXE was compiled against?? That's usually what causes the error you're getting.
-- modified at 15:34 Tuesday 23rd October, 2007
|
|
|
|
|
I have a TCP/IP server (VB .net 2.0 Windows App) that accepts connections from clients receives a string from them and passes back an answer. The TCP/IP Server creates a thread for each connection and that thread handles that connection then terminates. Each of these connection threads increments a counter class when it starts and decrements it when it finishes. The main thread in the TCP/IP server program queries the value of the counter class periodically to see how many threads are being handled at that time. This is working perfectly and has been for well over a year.
Now, I need to share the value of this counter with other programs. In specific we are going to start using Microsoft's System Center Manager to monitor and alert of potential problems etc. After a discussion with my Boss it is clear that he would like a way to reach into my program and pull this value vs. having my program write it to an environment variable or even a file that could be read. I think this should be doable but I'm not sure exactly what I should be looking to do. Keep in mind the TCP/IP server is a Windows App. Any advise would be appreciated.
|
|
|
|
|
There's a bunch of different ways of doing this, depending on your environment. Probably the best way to do it is to change the server code to expose the number you were talking about as a PerformanceCounter. Other programs can then use the performance counter information to get the current count.
An Introduction To Performance Counters[^]. The code is in C#, but is easily translatable to VB.NET.
|
|
|
|
|
Is the performance counter the same thing as WMI?
|
|
|
|
|
Nope. But WMI has it's option too, where you're able to create a custom class to do this. It's more work than creating a PerformanceCounter implementation though.
|
|
|
|
|
Ok, I just spoke with my boss and he's still deciding on what monitoring package to use so I kind of need to wait until I see what it is capable of reading now. I appreciate all your help.
|
|
|
|
|
hi frnds,
i am using Visual basic DOM
my XML is like
<study>
<subject id="1">
<sub-topic> fast </sub-topic>
</subject>
<subject id="2">
<sub-topic> fast1 </sub-topic>
</subject>
</study>
i have to remove all the <sub-topic> node and insert them before the
<subject id="1"> tag
i have do the code...But can't supported pl...show me the way
here is my code
[CODE]
oNodeStudyList = objdom.getElementByTagName("study")
oNodeList = objdom.getElementByTagName("subject")
dim i as integer
dim iCount as integer
for iCount = 0 to oNodeStudyList.Length -1
for i = 0 to oNodeList.length -1
Set oNode = oNodeList(i)
if oNode.haschildnodes then
Set oDemoNode = Node.InsertBefore(node.childnode(0),oNodeStudyList.childnode(0))
end if
next
next
[/CODE]
first <sub-topic> will be added successfully
but then it can't find the second the <sub-topic>
where i am wrong....?
please help...
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: Set oDemoNode = Node.InsertBefore(node.childnode(0),oNodeStudyList.childnode(0))
Is this a typo? You haven't defined a variable called node .
Paul Marfleet
|
|
|
|
|
yes i defined it already...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Well it's not mentioned in the code you posted. I thought you said you had posted all your code?
Paul Marfleet
|
|
|
|
|
I'm doing industrial experience in my course, building a VB.Net based program, but my client is using Mac OS X 10.4.3, which VB.Net can't work on. I heard Mono framework helps, but I don't know exactly how to do it. Could anyone here please help me? Thank You.
|
|
|
|
|
alurora wrote: but my client is using Mac OS X 10.4.3, which VB.Net can't work on.
VB.NET doesn't have to work on the target client. It only have to be capable of running .NET applications, which Mono (among other things) can provide.
Have a look at the Mono FAQ[^], that should answer most questions that you might have.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Thank You. But I've read those FAQ and they didn't provide any clue how to do it. I can't even find the Mono Visual Basic Compiler and Visual Basic Runtime, their instruction isn't clear. Could you or anyone else help me, please?
|
|
|
|
|
i am using .net 2005.i do my project in vb.net.i want to enable only past dates and today date.so i want to disable future dates in calander.i want in windows application not web application.
|
|
|
|
|
I believe the date time picker control allows you to specify a range of dates that can be selected. If not, you can check when the selection is made and reject it. Use DateTime.Now.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm running my application from a network drive. My framework is configured to grant all_codes security permissions to Everithing.
Applications running fine, including accessing local ports, system file,... but if i use the class process, framework tell me that security policies do not permit this operation.
Below a code brief.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
MyProcess = New Process 'This line is security policy violation?<br />
MyProcess.StartInfo.UseShellExecute = False<br />
MyProcess.StartInfo.CreateNoWindow = True<br />
MyProcess.StartInfo.RedirectStandardOutput = True<br />
...<br />
How can i solve ?
|
|
|
|
|
This error is telling you your assembly, running from the network, doesn't have FullTrust permissions on the machine. You configured permissions for Everything, not FullTrust. "Everything" just gives you Execute permission. The Process class requires that the calling assembly (your code) have FullTrust permission to call it.
|
|
|
|
|
Thank's for the answer. But, What must i do to make my assembly full trusted ? Sorry for my inexperience with security policies.
|
|
|
|
|
Well, I'd love to tell you, but it wouldn't do you any good because what you do depends on your network environment, its configuration, policies you have in place (if any), your app's requirements, if you have a certificate, if you're going to use this certificate for future apps, ...
Basically, that's what all that documentation is for. There's a bunch of options to explore to do this.
In a nutshell, you have to get the machines to trust your code, either the source folder, or registered assemblies, or certificate-based trust. How you do that depends on network environment and any policy management setup you have.
|
|
|
|
|
Hi,
Please help me !!
I want to highlight a string in a Flex Grid in Visual Basic 6.0
Thank You
|
|
|
|
|
|
i have made a form that can get a kind of search then the user can print it
when i was trying this form in my computer it was working
but when i make deployment and installing it on another computer he gives me this error
could not load file or assembley crystal dedecision .windows form
what should i have to do ??
|
|
|
|
|
When your application uses Crystal Reports then you have to include certain other dependencies in the setup project, you can search crystal reports web site for which dependencies to include according to the version of Crystal reports installed in your system. Without including these dependencies crystal reports won't load on the end user's computer.
Hope it helps !
AliAmjad (MCP)
|
|
|
|
|
i don't have crystal report site
if u have this depend. just send them please or let me know from can i get them
|
|
|
|
|
You don't have to download the Merge Modules required for the Crystal reports to run on the client computer they are available under C:\Program Files\Common Files\Merge Modules\ folder but you have to figure it out which one to use i've used these according to the instructions on their web sites regwiz.msm, VC_CRT.msm, VC_STL.msm and some other at that point of time i was working on VS 2002 which had Crystal Reports built in support. This URL may help you to solve your problem http://www.businessobjects.com/products/reporting/crystalreports/net/vsnet.asp
AliAmjad (MCP)
|
|
|
|