|
Hello There
I have created One window service and Installed on Server. Now from CLient Machine I need to access that Window Service and need to use one function inside the service. At the moment I have installed the service on client machine as well to test the object creation. But it always say cannot create Object error 429 .. Can any one guide me how to do this or is it possible ?
Thanks
|
|
|
|
|
Windows services are not designed to be used this way. If there is a function you need that the windows service has, it should probably be in its own dll and be shared across projects. If you want to be able to call a certain funtion you would have to use remoting or a web service.
hope that helps.
Ben
|
|
|
|
|
Hi there,
I know there must be a way from preventing an Application to be launched more than once, but how? Any help will be appreciated. I'm coding in VB.Net 2003.
Thanks, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
|
|
|
|
|
hi,this works in vb2005. hope also in VB2003
go to Properties of Project & click on application tab
now click on checkBox related to "Make single instance application"
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Thanks for your reply, but unfortunately VB.NET 2003 and VB.NET 2005 differ from each another in that area. I did find a nice sample of code to validate an instance of an application at http://www.vbforums.com/showthread.php?t=398309
Have a nice day.
Regards, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
|
|
|
|
|
|
Did you try creating a mutex? As far as I know, that is the general solution to such problem, and can be used in any language, since is supported by the OS through APIs. If CreateMutex() returns ERROR_ALREADY_EXISTS means there's an already running instance of your application.
Regards,
|
|
|
|
|
i want a report in 5x6 inch. for that i made a report in that size. i done my all other coding in vb.net. when i took print out of the report its comming in letter ize.
i made a custom print size in server properties of printer.
and set it as default printer. while checking the print dialog box i found out that its showing letter in paper size
Can any one help me with this... i am in great trouble...
my mail id is abhilash.asokan@gmail.com
HELP (F1)
|
|
|
|
|
hi abhilash,
there is a trick in my mind
increase page footer section height according to your page size.My mean is that,height of your report is 6 inch . Now increase the page footer height by 5 inch(since letter size paper height is 11 inch) & left incrasing area of page footer section empty.
hope this helps
one more thing .if you change your printer( by right click on report at design time) to dot matrix printer,then custom paper appear in print dialog box.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
not really yar.... the problem is that its a roll paper... so if u put too much footer means it will be wate of paper...
|
|
|
|
|
hi abhilash,
i have also face same problem beofre some time ago in Hotel project.so in place of crystal report, i use direct printing to Printer. if u r interested ,mail me. i can send you the code for roll paper printing .
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
I need call a window console application from the asp.net page; however, if I use the impersonate in the web config and use the administrator as the impersonate user, when we call the application, the system would raise a error. How to solve the problem? The detail information as below:
1) Window Console application (Call the Excel to generate a report as the Excel format)
2) CallBatch.aspx (create a process to run the window console application using the impersonate
<identity impersonate="true" userid="<Domain">\<administrator user=""> Password= />
3)Set the permission for the Excel DCOM component.
-- modified at 5:58 Friday 6th July, 2007
|
|
|
|
|
Why can't you just move the code from the console app into your code behind. You want to run this on the server, right ?
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 )
|
|
|
|
|
Yes, we could move the code from the console app into the code behind; as your said, we need run it on the server as well. On the other hand, even if we move the code, the same permission problem still happens.
|
|
|
|
|
Hi all,
Please help me ..
I want count a perticular word in one sentence or strig.
using VB 6.0
Thank u..
|
|
|
|
|
|
i have a string variable that contain form name.using that formname i want to call the form in the application.Is it possible?. can any one help me?.
|
|
|
|
|
Dim d As New Form<br />
d.Name = "formname"<br />
d.Show()
|
|
|
|
|
If you're thinking of doing this, it's usually a sign that your design needs to be rethought out. You should never be creating data in your application out of the names of classes in your code.
|
|
|
|
|
I have installed Crystal reports Standard Edition with version 11.0, Can i add reference to Microsoft Visual Studio.NET 2005? If can, how can i add?
Socheat
|
|
|
|
|
hi, im new here,
say here's a list box with different items:
apple
54321
cookie
sos101
1111
from above there are 5 lines of items in a listbox,
how to do something like reading the number of the line?
like text1.text = "read line 3"
which the text1 textbox will appear cookie
how to do that?
Please Help,
Thanks.
Benny
|
|
|
|
|
You'd write something like this
text1.text = ListBox1.Items.Item(2).ToString() The array holding the items is zero based, which means the 3rd item is really the 2nd element in the array.
|
|
|
|
|
Thanks for reply
just want make something clear,
does the order of the item count from the top??
if yes, so the top one is 0, second one is 1, third is 2, fifth is 4?
|
|
|
|
|
that's correct. It's zero based indexing starting at the top. The last item will always be listbox1.items.count - 1 . Remember the minus 1 when working with listboxes. You can also check if a listbox has any item selected through:
if listbox1.selectedindex = -1 then<br />
'none is selected<br />
end if
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
Thanks for your respond
i have another question,
I want to read the selected line with a text box, so I wrote:
Display.Text = JobList.Items.Item(LineNumber.Text).ToString
there are 2 textboxs: Display.Text, LineNumber.Text
and 1 listbox: JobList
but an error returned...
|
|
|
|