VirtualRoleProviderBase removed?

Vote:
 

After upgrading an existing EPiServer CMS 6 website to EPiServer CMS 6 R2, I can no longer compile my project. I have a couple of virtual roles that inherits EPiServer.Security.VirtualRoleProviderBase, but this class is no longer recognized. And I can't find any information about such a change.

Do you guys know anything about this?

Best regards 

#50135
Apr 13, 2011 23:20
Vote:
 

FYI: I compared the two EPiServer.dlls, version 6.1.379.0 and version 6.0.530.0, and yes the VirtualRoleProviderBase does not exists in the newer version (as I also just found in the SDK...).

So where does this leave us? :o

UPDATE: Same goes for the SecurityEntityType class, cannot be found in the dll. But e.g. AccessControlEntry still takes this enum in its second constructor. This is just weird!

#50136
Edited, Apr 13, 2011 23:31
Vote:
 

Those classes have been moved to EPiServer.Framework. 

If you rigth click on EPiServer assembly in reflector and choose Disassemble you will get a list of all assembly attributes and among them you will find the TypeForwardedTo attributes like:

[assembly: TypeForwardedTo(typeof(AccessLevel))]
[assembly: TypeForwardedTo(typeof(VirtualPathUtilityEx))]
[assembly: TypeForwardedTo(typeof(AspNetHostingEnvironment))]
[assembly: TypeForwardedTo(typeof(GenericHostingEnvironment))]
[assembly: TypeForwardedTo(typeof(IHostingEnvironment))]
[assembly: TypeForwardedTo(typeof(AnonymousRole))]
[assembly: TypeForwardedTo(typeof(AuthenticatedRole))]
[assembly: TypeForwardedTo(typeof(EveryoneRole))]
[assembly: TypeForwardedTo(typeof(SecurityEntity))]
[assembly: TypeForwardedTo(typeof(SecurityEntityType))]
[assembly: TypeForwardedTo(typeof(WindowsAdministratorsRole))]
[assembly: TypeForwardedTo(typeof(VirtualRolePrincipal))]
[assembly: TypeForwardedTo(typeof(VirtualRoleProviderBase))]
[assembly: TypeForwardedTo(typeof(MappedRole))]

 

#50139
Apr 14, 2011 7:40
Vote:
 

Thanks, I didn't know about TypeForwardedTo. All working again!

#50157
Apr 14, 2011 13:13
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.