Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a SharePoint project (web parts, user controls ...) and I have created Safe Control for it in the Web.config file.

If I change the version of the assemlby (1.0.0.0) do I need to modify web.config file of the web Application?

Thanks

share|improve this question
add comment

1 Answer

The general recommendation is that you never update the AssemblyVersion of WebPart assemblies, because you have to update:

  • The SafeControl entries in web.config (for letting it run)
  • The .webpart files (for getting new instances)
  • Assembly redirect entries in web.config (for already inserted instances)

For more reference see:

share|improve this answer
    
thanks, If I have a project for all my WebParts and let it be (never update this assembly). Do I need to update SafeControl for other assemblies which do not contain any WebPart (modules, features ...) if I change Version? –  Medes Apr 19 '12 at 6:40
    
The rule applies to anything which needs a SafeControl entry: WebParts, SitePage baseclass and web controls, Custom Workflow Action,... So in general SharePoint developers usually don't update AssemblyVersion. But of cause you should always update the version of your feature –  Per Jakobsen Apr 19 '12 at 6:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.