Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Log gets Full of Errors that Localization files can not be fundLog gets Full of Errors that Localization files can not be fund
Previous
 
Next
New Post
1/11/2010 5:18 AM
 


Dear all,

I've developed some modules but all are giving errors in the DNN 05.01.04 (3) installation. First they didn't localize so i found the following work arounds:
 

 override void OnInit(EventArgs e)
{
    base.OnInit(e);
    string FileName = Path.GetFileNameWithoutExtension(this.AppRelativeVirtualPath);    if (this.ID != null)
       //this will fix it when its placed as a ChildUserControl 
        this.LocalResourceFile = this.LocalResourceFile.Replace(this.ID, FileName + ".ascx.resx");    else
       
// this will fix it when its dynamically loaded using LoadControl method
        this.LocalResourceFile = this.LocalResourceFile + FileName + ".ascx.resx";

OR:

override void OnLoad(EventArgs e)
{
try
{
    Version ver = System.Reflection.Assembly.GetAssembly(typeof(Globals)).GetName().Version;    if (ver.Major == 5)
    {
    if(File.Exists(this.LocalResourceFile))
       
this.LocalResourceFile = HostingEnvironment.MapPath(Localization.GetResourceFile(this, this.GetType().BaseType.Name + ".ascx")) + ".resx";    else
        this.LocalResourceFile = Localization.GetResourceFile(this, this.GetType().BaseType.Name + ".ascx");    base.OnLoad(e);
    catch (Exception ex)
    {
        Response.Write(ex.Message);

 

 Both work arounds work and make the localization work but putting the sitelog full with errors like:

AssemblyVersion: 5.1.4
PortalID: 0
PortalName: Recruit A Student
UserID: 1
UserName: host
ActiveTabID: 114
ActiveTabName: Applicant
RawURL: /DCJobBoard/Applicant/tabid/114/Mode/Login/Default.aspx
AbsoluteURL: /dcjobboard/Default.aspx
AbsoluteURLReferrer: http://localhost/DCJobBoard/Applicant.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 4bbeb87c-6103-4b5e-8f4e-0fc2788ae9c4
InnerException: '/dcjobboardd:\instances\dcjobboard\desktopmodules\dcjobboard\applicant\app_localresources\sharedresources.nl-nl.host.resx' is not a valid virtual path.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.VirtualPath.Create
StackTrace:
Message: System.Web.HttpException: '/dcjobboardd:\instances\dcjobboard\desktopmodules\dcjobboard\applicant\app_localresources\sharedresources.nl-nl.host.resx' is not a valid virtual path. at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) at System.Web.Hosting.HostingEnvironment.MapPath(String virtualPath) at DotNetNuke.Services.Localization.Localization.GetResourceFileCallBack(CacheItemArgs cacheItemArgs) at DotNetNuke.Common.Utilities.DataCache.GetCachedData[TObject](CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
Source:
Server Name: DCWS022

Can anyone help me as it is slowing down the instance and make the log verry messy.

Thanks.

Christiaan

 

protected

 

{

 

 

{

 

 

{

 

 

}

 

 

protected

protected

 

 

 

 

     }

 

 

     }

    }

}

 
New Post
1/12/2010 7:30 AM
 

Dear All,

I've update mij dev portal to 5.2.1. Now i don't have to use the work arround anymore to just the localization. But still he register events like:

AssemblyVersion: 5.2.1
PortalID: 0
PortalName: Recruit A Student
UserID: 1
UserName: host
ActiveTabID: 116
ActiveTabName: JobBoard
RawURL: /DCJobBoard/JobBoard/tabid/116/ctl/ViewAdministration/pageid/ManageCompanyUsers/mid/466/Default.aspx?SkinSrc=[G]%2fSkins%2fDCPortal%2fDCPortal-DCJobBoard&ContainerSrc=[G]%2fContainers%2fDCPortal-containers%2fDCPortal-DCJobBoard
AbsoluteURL: /dcjobboard/Default.aspx
AbsoluteURLReferrer: http://localhost/DCJobBoard/JobBoard/tabid/116/ctl/ViewAdministration/pageid/ManageCompanyUsers/mid/466/Default.aspx?SkinSrc=%5BG%5D%2fSkins%2fDCPortal%2fDCPortal-DCJobBoard&ContainerSrc=%5BG%5D%2fContainers%2fDCPortal-containers%2fDCPortal-DCJobBoard
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: cd337c40-ee67-46d2-a614-7fd8ab9a767d
InnerException: '/dcjobboardd:\instances\dcjobboard\desktopmodules\dcjobboard\admin\app_localresources\viewadministration.ascx.nl-nl.portal-0.resx' is not a valid virtual path.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.VirtualPath.Create
StackTrace:
Message: System.Web.HttpException: '/dcjobboardd:\instances\dcjobboard\desktopmodules\dcjobboard\admin\app_localresources\viewadministration.ascx.nl-nl.portal-0.resx' is not a valid virtual path. at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) at System.Web.Hosting.HostingEnvironment.MapPath(String virtualPath) at DotNetNuke.Services.Localization.Localization.GetResourceFileCallBack(CacheItemArgs cacheItemArgs) at DotNetNuke.Common.Utilities.DataCache.GetCachedData[TObject](CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
Source:
Server Name: DCWS022

Does anyone know how to fix this as i can't seem to find a good answer.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Log gets Full of Errors that Localization files can not be fundLog gets Full of Errors that Localization files can not be fund


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out