Click here to Skip to main content
15,888,454 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:33
professionaljkirkerx10-Jan-16 7:33 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Dave Kreskowiak10-Jan-16 7:41
mveDave Kreskowiak10-Jan-16 7:41 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 9:40
professionaljkirkerx10-Jan-16 9:40 
AnswerRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Eddy Vluggen10-Jan-16 4:51
professionalEddy Vluggen10-Jan-16 4:51 
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 
So I wrote a commmon DLL and moved all the common stuff over to it.
Now I get a Access Denied from the Folder
c:\ProgramData\redCopper\smtpMessenger\ and not the serialized binary file.

I wrote a text file to the folder, and set the code to open it, got the same error.
I thought in theory, I would be able to write to it from the Windows Form App, which works and read it from the Common DLL, that represents the Windows Service, Which doesn't work.

So I wonder if it's because I had to elevate VS 2013 To Administrator, to debug the Windows Service OnStart Event. The Windows Service runs on Local Account
Dim m_appPath As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) & "\redCopper\smtpMessenger\smtpCredentials.bin"

        Try

            Using fs As New FileStream(m_appPath, FileMode.Open)

                Dim bf As New BinaryFormatter()
                pResults = bf.Deserialize(fs)

            End Using

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 
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 

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.