Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a website using asp.net and c#.
I published that website using visual studio.
I gave that published website to my customers( more than 100).
My customers configured it in their own website.
I have handled exceptions using try catch and write log file in (c:\Log\Log.txt) with unique id and datetime. My problem is whenever any exception occurs for my clients, to solve the issue i need that log.txt file. But i have to wait till they provide log.txt file.

So , is there any way to read that exception using any code or any tool?.(now i cant modify my source because of customers currently running it).

For example: i give customer's URL in browser and performing some operations.Now i need a tool or code that should trace exceptions while i am accessing that website
Posted
Comments
Nathan Minier 7-Oct-15 8:08am    
Sure, you could provide an offsite logging module, where a customer GUID is sent along with the exception/trace to a service that you expose.

Or you could add a "log reader" role to your application and have log data exposed when log readers are looking at it.

You can always change your source and provide it to your customers. This is known as patching, and I hope you do it regardless.
tnkarthi 7-Oct-15 8:16am    
Sorry to say this. For some reasons i cant provide patch to customers.
Dave Kreskowiak 7-Oct-15 10:38am    
Well that was stupid. How are you going to fix any bugs and update their copy of the code?
Awadhendra Tripathi 7-Oct-15 10:10am    
After getting log file, how you will solve that bugs and provide it to your customer as you mention that you can not update code

1 solution

Assuming you can't modify the existing code, then one solution could be to develop a small windows application/service, send it to each client, which will automatically email you that log.txt file at some time interval. But first time you have to guide your clients how to install that application/service. In case of service you can set it as auto-start, while in case of application, client have to put in scheduler tasks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900