Re: Converted app to a Windows Service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Apr 19, 11:15 am, Blasting Cap <goo...@xxxxxxxxxxxxx> wrote:
Chris Dunaway wrote:
On Apr 19, 10:39 am, Blasting Cap <goo...@xxxxxxxxxxxxx> wrote:
I have an application that was converted from a VB application to a
windows service.

I pass in parameters in a file that tells the application where to pull
a file from & read it and put it into a web page.

The application works fine when the input & output locations are local
on the server the app is on. However, the location for one of the files
is going to change to be on another server, that'll have to be set up
like \\Server2\folder

I can copy that out & put it in windows explorer, and it goes to the
folder it's supposed to.

However, when I put it in the application, it won't read it in.

What do you mean when you say "it won't read it in"? Are you getting
an exception? An error message? Incorrect data result?

Right now, I have it set to put out info into the event log, each time
it checks for the file. If it's local, I'll see events out there, no
problem.

If I specify \\Server2\folder as it's input, versus
[Server1]D:\DailyInput, it just sits there - nothing at all written into
the event log. It appears not to run, unless the source for it is local.


Are you using exception handling in your code? Are you swallowing the
exceptions if any are generated?

Chris

.



Relevant Pages

  • Re: Event Log Trust Level?
    ... What I do in this case is install the event log as part of an installer ... package and then just use write to the event log from the app. ... > but it comes back with this exception: ... > source, String logName, String machineName, Boolean ...
    (microsoft.public.dotnet.security)
  • Re: Cannot open log for source {0}. You may not have write access. (Access right wanish after a whil
    ... Are the event log ACLs being changed from their initial states? ... could it be that the user context is changing? ... WindowsIdentity.GetCurrent return when the exception is thrown? ... > Our server is Win 2003 with AD and it's domain controller of it's own ...
    (microsoft.public.dotnet.security)
  • Server Error in /Monitoring Application
    ... new application installed on our 2k3 SBS server; the new app has a web ... website in IIS has been pointed to this new app. ... Exception Details: System.Web.HttpException: Access denied to ... Failed to start monitoring file ...
    (microsoft.public.windows.server.sbs)
  • Re: ASP.NET Adding a User to Active Directory
    ... Sub Page_Load ... are you running a web server on your domain controller? ... I have an asp.net app, which is supposed to add a user to the AD Users group. ... An unhandled exception occurred during the execution of the current web request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Failed to start monitoring directory changes
    ... I am trying to deploy a new .NET app and am getting some odd occurrences. ... web server located in a DMZ network, that has not been fully secured. ... start monitoring directory changes. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.aspnet.security)