In my project, I added a feature with the scope of web. and I rebuilt and deployed the updated wsp.
I have some code that reads.
Guid MyGuid = new Guid("4859ae42-8c3a-49b1-b22e-cf37f8f7bfe6");
web.Features.Add(MyGuid, true) will cause the following error.
Message = "Feature with Id '4859ae42-8c3a-49b1-b22e-cf37f8f7bfe6' is not installed in this farm, and cannot be added to this scope."
The scope of the feature is web. Other existing features with this scope are added the same way within the same code and they work fine.
What I am missing here?
faye fouladi