Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How can I debug my Connector?
GPF
I am writing my first Connector and so have chosen to create a simple "Quote of the Day" item that reads the day's quote out of a SQL table.
It seems any changes I make to my code will not appear online until I restart the web services - even if I unregister and re-register the connector.
This makes it very tiresome debugging and interrupts those using the website everytime I restart IIS.
Is there a faster and better way to refresh my changes while I debug - without restarting IIS all day long?
Thanks
Gary
Find more posts tagged with
Comments
dabird
Unfortunately, you cannot see code changes to your connector without restarting the application. The reason is quite simple: when you register a connector, in the background we register your assembly with the AppDomain that is provided by the .NET framework. The only way to unload assemblies in the app domain is to restart the entire app domain (see AppDomain on MSDN).
Ideally you should be developing your connectors in a development environment and then deploying to a production server once you have completed your debugging. This is the best practice strategy we recommend.
Regards,
dabird
GPF
Thanks dabird, I understand now.
Yes I normally work on a development server but the virtual machine that hosts the development server is horrendously slow at the moment and the live server is still in testing phase anyway. My colleagues have become used to the services being bounced every 15 minutes now and are learning to live with it.
Once we go live I'll revert back to the dev server.
Thanks for your reply.
cheers