开发者

How exactly does a WSP deploy a dll internally

i am facing a problem with deploying dlls with a 开发者_JAVA技巧WSP. After deploying the first version of the dll using a WSP, if I want to change the dll and redeploy after retracting, it is still referring to the old assembly, even though it is no longer there in GAC. Is there any caching feature in Sharepoint that is not very obvious?

Thanks in advance!


If you are deploying to the GAC, you need to make sure that IIS or the application pool is getting reset after you make any change. The DLL definitely gets cached.


Deployed code will not reload. On a similar issue when deploying to the Bin. Although a WSP project may be directed (in the Manifest) to only install and load from the BIN, if an old copy of the given DLL also exist in the GAC - it gets loaded first. Deleting the GAC DLL, and doing an IISReset resolves the issue. Redirecting the load back to the Bin. This can easily occur when using WSPBuilder if you hit the 'Copy to GAC' option. Oops.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜