Click here to Skip to main content
15,921,156 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalserver.mapPath Pin
pyb24-Nov-04 17:31
pyb24-Nov-04 17:31 
GeneralRe: server.mapPath Pin
Dave Kreskowiak25-Nov-04 5:17
mveDave Kreskowiak25-Nov-04 5:17 
GeneralDatabase Management in VB.net Pin
fibman24-Nov-04 13:50
fibman24-Nov-04 13:50 
GeneralRe: Database Management in VB.net Pin
Chaos Machine25-Nov-04 15:52
Chaos Machine25-Nov-04 15:52 
GeneralRequested Registry Access is Not Allowed Pin
KreativeKai24-Nov-04 9:09
professionalKreativeKai24-Nov-04 9:09 
GeneralRe: Requested Registry Access is Not Allowed Pin
Dave Kreskowiak24-Nov-04 10:37
mveDave Kreskowiak24-Nov-04 10:37 
GeneralRe: Requested Registry Access is Not Allowed Pin
KreativeKai29-Nov-04 8:42
professionalKreativeKai29-Nov-04 8:42 
GeneralRe: Requested Registry Access is Not Allowed Pin
KreativeKai9-Dec-04 8:45
professionalKreativeKai9-Dec-04 8:45 
Here is what we came up with:
1) Security is the hitch when a standard client tries to write to the application eventlog. The app searches for the eventsource in the registry and when it cannot find it, tries to create one. Due to the rights, it fails and causes our error.

2) We have a class that we wrote for use in our shop, which can be referenced in any program, and if called, can display a message box, write to the eventlog and e-mail, depending what parameters are set. We check if the event source is there. If not, we try to create the event source. If the create fails we notify the client that they need to call us and run a process we call DeployEventSource.

3) We wrote an app (DeployEventSource) which creates the eventsource and is basically setup to be installed by our team with admin or power user rights. We wanted to try to to eliminate as much maintenance as possible and I believe we accomplished this goal. Since our class above writes to a source name that we keep consistent, and our install / create source program creates a source with the same name, we only have to run the install app when someone gets a new machine or system reload. If profiles change with terminations / new hires, we do not have to keep reinstalling or hacking a registry setting. Also we can create several apps that run on this pc which uses our class to write to the eventlog, and as long as the eventsource was created once, it will work for all apps.

I hope this follow-up might help someone else who runs into the same problem. Thanks for your input!!

Lost in the vast sea of .NET
GeneralVBScript for automating USB installation Pin
Bri4hire24-Nov-04 8:03
Bri4hire24-Nov-04 8:03 
GeneralRe: VBScript for automating USB installation Pin
Dave Kreskowiak24-Nov-04 10:33
mveDave Kreskowiak24-Nov-04 10:33 
GeneralRe: VBScript for automating USB installation Pin
Anonymous24-Nov-04 13:22
Anonymous24-Nov-04 13:22 
GeneralRe: VBScript for automating USB installation Pin
Dave Kreskowiak24-Nov-04 15:29
mveDave Kreskowiak24-Nov-04 15:29 
GeneralUpdating dataadapter error Pin
ccotton33324-Nov-04 7:34
ccotton33324-Nov-04 7:34 
GeneralRemoting Problems ... Pin
Paebbels24-Nov-04 6:23
Paebbels24-Nov-04 6:23 
GeneralRe: Remoting Problems ... Pin
Paebbels25-Nov-04 9:08
Paebbels25-Nov-04 9:08 
QuestionExecute string command? Pin
sundayschool24-Nov-04 2:32
sundayschool24-Nov-04 2:32 
AnswerRe: Execute string command? Pin
Pablo.ar24-Nov-04 2:50
Pablo.ar24-Nov-04 2:50 
GeneralRe: Execute string command? Pin
sundayschool24-Nov-04 6:40
sundayschool24-Nov-04 6:40 
GeneralRe: Execute string command? Pin
Dennis C. Dietrich24-Nov-04 7:03
Dennis C. Dietrich24-Nov-04 7:03 
GeneralRe: Execute string command? Pin
Dave Kreskowiak24-Nov-04 10:26
mveDave Kreskowiak24-Nov-04 10:26 
GeneralRe: Execute string command? Pin
Pablo.ar25-Nov-04 2:39
Pablo.ar25-Nov-04 2:39 
GeneralRe: Execute string command? Pin
Dave Kreskowiak25-Nov-04 5:14
mveDave Kreskowiak25-Nov-04 5:14 
GeneralRe: Execute string command? Pin
Dennis C. Dietrich25-Nov-04 5:56
Dennis C. Dietrich25-Nov-04 5:56 
QuestionQuery Parser in VB? Pin
.NetRams24-Nov-04 0:49
.NetRams24-Nov-04 0:49 
AnswerRe: Query Parser in VB? Pin
Steven Campbell24-Nov-04 14:46
Steven Campbell24-Nov-04 14:46 

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.