.net web service question - compiling dll on the fly?

BobBarker_99
BobBarker_99 used Ask the Experts™
on
I have an application (a service) which calls out to a web service.  Usually everything works fine, but sometimes the following happens:

1. Service tries to exceute call creating an instance of the webservice
  eg: Dim x As new WebService

2. I get an Error in the event log for the CSC.exe (Faulting application csc.exe, version 8.0.50727.1434, time stamp 0x4757b7d5, faulting module kernel32.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000142, fault offset 0x00009cac, process id 0x42e8, application start time 0x01ca5413f0e5d238.)

3.  I get an error from my application (System.IO.FileNotFoundExceptionCould not find file 'C:\Users\myAccount\AppData\Local\Temp\nkpdwe01.dll'.)

My application creates and calls out to this web service once an hour, after the first time it fails it will keep failing every hour thereafter, until I restart the service.  After I restart everything will run fine for a while, until it fails once, and they keeps faililing again until restarted.

Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Craig WagnerSoftware Architect

Commented:
I'm not clear about item 2. Is the error being logged on the web server or on the client?
how are you handling the "x" object after it creates it... specifcally, I'm asking if you active call x.Close() when you're finished?

At worst you should only be getting a pause while the service is restarted... it shouldn't have to recompile every time you hit it. When you debug the service itself, what happens?
uhh, that should have been "specifIcally, I'm asking if you activeLY call x.Close() when you're finished?"

The reason for this is that the service channel may be faulted after you call it "N" number of times without closing it. That MIGHT lead to a dynamic recompile of the hosting application...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial