Hi,
The path and filenames are capitalized correctly (i.e. the value of the path variable below matches the path and file name).
The user control is named View.ascx
Running DNN 5.1.1.98
Windows Vista Home Premium
Default AppPool
IIS Physical Path: C:\devportals\Cambrian
IIS Virtual Path: /cambrian
Note: The code below, that returns Nothing in 5.1.1.98- runs just fine in 5.0.1...
********************************
Here is the code:
Dim strPath As String = "~/DesktopModules/CambrianSideAd/" & Localization.LocalResourceDirectory & "/" & Localization.LocalSharedResourceFile
*** strPath returns: "~/DesktopModules/CambrianSideAd/App_LocalResources/SharedResources.resx"
Dim strDefaultContent As String = DotNetNuke.Services.Localization.Localization.GetString("DefaultContent", strPath)
*** strDefaultContent returns nothing - in the SharedResources.resx file, DefaultContent.Text = "This is the default content"
Dim strTest As String = Localization.GetString("AdContent", LocalResourceFile)
*** strTest also returns nothing, in View.ascx.resx, AdContent = "Here is the ad content"
This really has me stumped...