1

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

1 Answer 1

3

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:

2
  • 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
    Commented Apr 19, 2012 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 Commented Apr 19, 2012 at 6:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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