Hi,
Based on my understanding, you want to find a way to make your webparts commercialized and your customers have your source code of the program. If I have misunderstood you, please feel free to tell me, thanks.
As I know, even if we got a way to compile the list file, the file also could be decompile. So it might not be the most properly way.
I suggest that we can write a class or interface that each of our user controls could inherit from it.
Our class need have some special authentication mechanism.
For example, each derived user control has a unique 64-bit secuirty key property and when the customer first deploy it, it can connect to one WebService on our own website which can check the key and give a feedback. After the first check, we can unlock the user control on our customer's server.
Hope it's helpful for you.
Hope it helps.
I'm always ready for your reply.
Thank you for thinking of ASP.NET Forums,
Jerry Weng - MSFT
If the post helps you, please click the Mark As Answer or the Mark As Not Answer if not.