Click here to Skip to main content
15,910,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 7:38
professionaljkirkerx10-Jan-16 7:38 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Eddy Vluggen10-Jan-16 11:11
professionalEddy Vluggen10-Jan-16 11:11 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 13:27
professionaljkirkerx10-Jan-16 13:27 
AnswerI merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
jkirkerx10-Jan-16 13:35
professionaljkirkerx10-Jan-16 13:35 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
Eddy Vluggen11-Jan-16 5:50
professionalEddy Vluggen11-Jan-16 5:50 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
jkirkerx11-Jan-16 6:23
professionaljkirkerx11-Jan-16 6:23 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
Eddy Vluggen11-Jan-16 8:46
professionalEddy Vluggen11-Jan-16 8:46 
Answer[Solved] Finally got it to work Pin
jkirkerx12-Jan-16 8:31
professionaljkirkerx12-Jan-16 8:31 
What a pain in the A??.

I was looking at other windows services loaded on my machine, and noticed a few that used the Windows user account to run as. So I figured I'll give that a try.

Easier said than done. Installing the service as a user with a password was much harder than I thought. So I ended creating a new console app that can run as a Windows service, and used some new stuff out there referred to as a Custom Service Base, Custom Service Installer and IServiceLogic and TransactedInstaller. Pretty slick now. The service can self install and uninstall, can be debugged pretty easy now. In fact its so nice, I should publish an article on it.

So I just performed my i/o test, using the common DLL file that now does all the I/O for both programs, the SOAP calls to the Web Service, And the reading and writing of my serialized class files that store parameters, which is now located in the AppData folder of the user account (LocalApplicationData) and it worked without any errors on all 3 programs. No more folder errors or binary read errors from the creator assembly.

So now, I since I wrote a new service, I might as well trick it out, and make it better and more up to date, guess I'll write some threads that the service can run to do it's gig.

I was smart enough this time to make a copy of the project, in it's sort of raw form that just supports install and uninstall and debug, with no other logic in it.

Thanks Dave and Eddy for the help!

The Link to the Service code that I used
Creating easy to debug Windows Services in .NET - CodeCaster.nl - Blog[^][^]
QuestionForm Close Pin
dha NAA8-Jan-16 0:10
dha NAA8-Jan-16 0:10 
AnswerRe: Form Close Pin
Richard MacCutchan8-Jan-16 1:18
mveRichard MacCutchan8-Jan-16 1:18 
Questionvb.net Pin
Basva Hossalli6-Jan-16 3:06
Basva Hossalli6-Jan-16 3:06 
AnswerRe: vb.net Pin
Richard MacCutchan6-Jan-16 3:17
mveRichard MacCutchan6-Jan-16 3:17 
AnswerRe: vb.net Pin
Dave Kreskowiak6-Jan-16 3:33
mveDave Kreskowiak6-Jan-16 3:33 
QuestionSystem Time Format Pin
dha NAA5-Jan-16 22:34
dha NAA5-Jan-16 22:34 
AnswerRe: System Time Format Pin
Richard MacCutchan5-Jan-16 23:02
mveRichard MacCutchan5-Jan-16 23:02 
GeneralRe: System Time Format Pin
dha NAA5-Jan-16 23:21
dha NAA5-Jan-16 23:21 
GeneralRe: System Time Format Pin
Richard MacCutchan5-Jan-16 23:26
mveRichard MacCutchan5-Jan-16 23:26 
GeneralRe: System Time Format Pin
Eddy Vluggen6-Jan-16 3:20
professionalEddy Vluggen6-Jan-16 3:20 
QuestionSendinput to a DOS application. Pin
rderkis29-Dec-15 5:58
rderkis29-Dec-15 5:58 
AnswerRe: Sendinput to a DOS application. Pin
Richard MacCutchan29-Dec-15 6:37
mveRichard MacCutchan29-Dec-15 6:37 
GeneralRe: Sendinput to a DOS application. Pin
rderkis29-Dec-15 6:59
rderkis29-Dec-15 6:59 
GeneralRe: Sendinput to a DOS application. Pin
Eddy Vluggen5-Jan-16 9:06
professionalEddy Vluggen5-Jan-16 9:06 
GeneralRe: Sendinput to a DOS application. Pin
rderkis5-Jan-16 13:26
rderkis5-Jan-16 13:26 
QuestionVB.net 2010 Send Keys To Dos Program - Onscreen Keyboards Pin
rderkis26-Dec-15 9:07
rderkis26-Dec-15 9:07 
AnswerRe: VB.net 2010 Send Keys To Dos Program - Onscreen Keyboards Pin
Dave Kreskowiak27-Dec-15 11:05
mveDave Kreskowiak27-Dec-15 11:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.