|
Hi Rakesh
this is a good message .
if i can help you in other programming problems send me an email at:
joe.carbone@mymail.ch
Joe
|
|
|
|
|
I know this is along time ago. But I was wondering if you would post the code that worked for you. The links pointed to in this thread don't work any more.
Thanks
Brent
|
|
|
|
|
Hi all,
i have written a small program in which i want to check whether a
Queue exists and for this i used the Exists method of the MessageQueue
but i throws an Exception saying that
" Cannot determine whether a queue with the specified format name exists"
Anyone knows wht is the right way to check that
Thanks
Pramod
|
|
|
|
|
Can you specify the path of the queue you are using and whether this queue is on the same server as your application.
Akif
|
|
|
|
|
the application is not on the server
i more thing is that i am not able to create a queue on the server
by executing the application from my machine
Thanks
Pramod
|
|
|
|
|
If you are using a private queue then the format of the path for the queue will be:
"FormatName:DIRECT=OS:machinename\private$\queuename"
and if you are using a public queue, then the format of the path will be:
"ServerName\QueueName"
but remember one thing, you cannot use a private queue in ActiveDirectory environment. It can only be used in workgroup environment.
Hope it will help you.
Akif
|
|
|
|
|
The server which i am using is a XP professional machine
and it does not shows Public Queue,
I wanted to know whether i can create a private queue from my code
on that machine,
I created a queue manually by going to the computer management window,
but i want to check whether a specified queue exists or not
if not then it should be created
Is there a way to do that.
Thanks
Pramod
|
|
|
|
|
If it is a private queue then you can check whether it exists or not. You just need to use:
"FormatName:DIRECT=OS:machinename\private$\queuename"
as its path and then check IsExists property.
Akif
|
|
|
|
|
i cannot find the isExists property
can u please send me the code
Thanks
Pramod
|
|
|
|
|
Use MessageQueue.Exists(QueueName) to check whether the queue exists or not.
Sorry;) it is not a property infact a static method.
There is a good article on the usuage of MSMQ. Check it out[^]
Akif
|
|
|
|
|
i have already tried that but that throws an Exception
saying "Invalid Queue PAth name"
i am not able to check the existence of the Queue on the server
i am able to send and Receive msgs
Thanks
Pramod
|
|
|
|
|
"Exists cannot be called to verify the existence of a remote private queue"
Syntex of the QueueNamePath is:
Public queue: MachineName\QueueName
Private queue: MachineName\Private$\QueueName
Journal queue: MachineName\QueueName\Journal$
Machine journal queue: MachineName\Journal$
Machine dead-letter queue: MachineName\Deadletter$
Machine transactional dead-letter queue: MachineName\XactDeadletter$
Akif
|
|
|
|
|
then how should one check whether a Queue exists or not
we cannot directly send or receive msgs whether checking the existence
of the queue
Thanks,
Pramod
|
|
|
|
|
You can go for public queues. In that case, you ll be able to check its existance.
If you want to use private queues, the dirty way of finding whether the queue exists is to create the queue with the path specified and then catching the exception. If the path is wrong, then its object will not be created and an exception will be raised.
Hope it will help you
Akif
|
|
|
|
|
|
|
read my topic below to get a description to the problem i am trying to adress.
i wan't to run caspol so that it disables .net security, i've found an article stating that it should be run as :"caspol -security off" but how exactly d oi do this? is it a command line option? or what?
m$: It is normal for your screen to go blank and for your computer to restart itself several times
|
|
|
|
|
I've a database access with 1 OLE OBJECT field contained an Image.
I've queried the database the result is in the DataSet.
Now i would to get the image contained here:
myDataSet.Tables[0].Rows[i]["Image"]
how?
|
|
|
|
|
You got it. Right there. What do you want to do with it?
---
b { font-weight: normal; }
|
|
|
|
|
it doesn't work if i do:
myImage = (Image)myDataSet.Tables[0].Rows[i]["Image"];
|
|
|
|
|
You can read data from a DataSet simply by using the following code:
byte[] _Image = (byte[])myDataSet.Tables[0].Rows[0]["Image"];
MemoryStream ms=new MemoryStream(_Image);
Image image=Image.FromStream(ms);
Now you have your image reconstructed if you have stored it as binary data.
Akif
|
|
|
|
|
i've do it but i get error, maybe becouse i have set the image within Microsoft Access instead in my c#application.
Could be it the cause?
Just another question:
if i set another kind of file as a word file or a .xls how can know what kind the file is it?
|
|
|
|
|
I didnt get your point. Will you specify it in more details whats the problem
Akif
|
|
|
|
|
how can i use datasource as dataset in owc chart. I am using c# windows application. I want to use DataSet of VS.Net for the chart.
|
|
|
|
|
I wrote a little HTTP editor to modify the values of form variables in an HTTP request, without the having to hurt my eyes editing the raw text. My immediate vision was for a two column grid, for all the name=value pairs. I'm a little miffed that one has to get as extravagent as a DataGrid (WinForms) to achieve this.
Another of my ideas was to use a PropertyGrid, but that requires an object with one property corresponding to each form variable, with the complexity of having to generate that object on the fly.
Any ideas/suggestions on avoiding a DataGrid for such a simple application?
The DJ's took pills to stay awake and play for seven days. - Jim Morrison, Black Polished Chrome.
|
|
|
|