Share via


Custom ASPX assemblies

With the release of UR2 we provide developers a more convenient place to put their custom ASPX assemblies.

As the SDK points out, whenever developers want to host their custom ASPX application within the context of the CRM web app they should put their ASPX pages under their custom directory in the form of <crmwebroot>\ISV\<yourapp>. That is all good and fine except that before UR2 developers had to place any assemblies (dlls) under <crmwebroot>\bin or the GAC which is not ideal. With UR2, assemblies can be placed under <crmwebroot>\ISV\<yourapp>\bin which a lot cleaner from a deployment perspective… but there is a small catch, your ASPX pages need to have an @Assembly directive specifying the name of the assembly (just the name not the path); this is a restriction that we found with the way .net loads assemblies. True, it is not ideal to have to add the @Assembly directive but, in my opinion, it is preferable than having to share a single \bin folder with other solution developers that may (voluntarily or involuntarily) interfere with your solution assemblies. We will be updating our SDK documentation and writing a technical article shortly on the matter to reflect this best practice. [Update... we already updated the SDK doc: https://msdn.microsoft.com/en-us/library/dd548493.aspx ]