English 中文(简体)
How exactly does a WSP deploy a dll internally
原标题:

i am facing a problem with deploying dlls with a 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.





相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签