Hi,
We have a DNN Portal with some .cs files from your development project (like "login.ascx.cs"), and after the upgrade from 9.3.2 to 9.9.1, we fetched the .cs files from your 9.9.1 project, and Compiling the solution we get " 'Globals' does not contain a definition for 'DependencyProvider' ". We already checked, multiple times, and the "DotNetNuke.dll" has the 9.9.1 version. We already tried to apply the .dll from you deploy .zip file and still get the same error. we compiled your entire solution in release and used the dlls but still the same. Can you give us a hand please? TY
our DNN portals are always based on your "DotNetNuke.Website.csproj" so we stick with the .cs files. and it´s great since we always do some twicks/changes in your code. but sticking to the point, after trying to build our website with the dlls with version 9.9.1 we get the error and can´t get passed it.
I'm guessing by login.ascx.cs you're referring to the skin object, DNN Platform/Website/admin/Skins/Login.ascx.cs, right? Unfortunately, Globals.DependencyProvider is marked as internal and so isn't available outside of the DNN Platform itself. At this point, SkinObjectBase doesn't support dependency injection so there's not a mechanism available to you to get an INavigationManager instance. For now you'll need to use the Globals.NavigateURL method instead.
login.ascx.cs
DNN Platform/Website/admin/Skins/Login.ascx.cs
Globals.DependencyProvider
internal
SkinObjectBase
INavigationManager
Globals.NavigateURL
It solved it! Ty! Regarding the removal of Globals.NavigateURL in v11, before that will Globals.DependencyProvider work outside of the DNN Platform itself?
The plan 🤞🏻 is for dependency injection to work in all areas of the platform in DNN 10 so that Globals.DependencyProvider is no longer needed.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.