A application test for C# Reflection: fix source code
$2-8 USD / hour
Fechado
Publicado há quase 8 anos
$2-8 USD / hour
I have a basic WinForm Solution (MS VS2013, .Net framework 4.5) for test some methods included in a Dll, using Reflection. My goal is test the main application that it can run two methods of Dll (without referencing the dll in project), and later, run four methods (2 methods added) without stop the main application and run it again, using reflection.
Reflections works fine (if I stop the main application, replacing the dll file and run the main application again, all works fine), but I can't replace the dll at runtime.
The main application has a Timer control with an interval of 60 seconds. Every 60 seconds, a method is executed that checks if a DLL file is in a folder. If a DLL file exists in that folder, I want to use the new DLL in the main application (running) because the new DLL contains old methods (first DLL) and additional methods that the main application needs. However, I am getting an error that the file is in use.
I have read several posts, questions, answers, MEF documentation, AppDomains related, but I have been unable to concatenate the information to be able to implement a solution.
Actually, I thought a lot before post this question, but I confess that I prefer to spend a moment of shame, knowing that you can give me a hand.
It would be for me a great help if you help me with source code corrections and specific documentation.
Code attached (in plain txt):
- Main application
- Class in project, for some functions for support Main application
- DLL source ([login to view URL])
Thanks.
I have already dealt with problems that you are facing now. I can easily deal with them get them back onto the track within no time. looking forward to work with you
Having 9 years of core .Net(C#, mostly on web apps) and SQL server experience.
Created multiple websites in MVC2,MVC3, MVC4 , MVC4 WEB APIs with MY SQL and SQL server.
Very much comfortable in Crystal reports, SSRS reports and other third reporting tools.
Exposure on each and every phase of software development life cycle.
Can work with team members located on different places.
additionally with having good Communication and debugging skills introduces the ability to solve run time problems quickly and easily.
I have already solved your issue. I have 4+ years of experience in C# programming. And I have came across kind of problems lot and solved lot. I can give your output right away.