Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Language Packs ...  Localization for custom modules .. strange VS behavior
Previous Previous
 
Next Next
New Post 4/10/2007 7:22 AM
User is offline BorkBork
11 posts
10th Ranked


Localization for custom modules .. strange VS behavior 
Hi,

Sorry if I'm asking this in the wrong forum, but I am completely stumped over a particular VS2005 behavior and I thought someone else might have run into it.

I've developed a simple custom control, DesktopModules/Test/Test.ascx, that simply displays a label. This label would of course be suitable for localization, and thus, I've clicked on "generate local resource", which creates an App_LocalResources/Test.ascx.resx file.

Now, as soon as I hit "build page" on Test.ascx, VS reports a validation/build error: "Object reference not set to an instance of an object". It points to the first line in the ascx file, but there's really nothing there to complain about. If I delete the *.resx file(s), it builds fine. Add the resx file again, boom, error. In fact, all I have to do is create a directory called App_LocalResources in that subdirectory for it to go boom.

I managed to create a standalone website, with a custom control in a subfolder, containing localization files, by first of all moving the App_LocalResources folder into the root, then hitting Build Website, then moving them back again into the subfolder, hitting Build Website again, and then I can hit "Build Page" fine, even again and again. But when I try the same stuff within the DNN project, it goes boom again.

Why? Why, oh why? Is this a bug within Visual Studio? Am I doing something wrong? I get the same thing on another guy's machine, and he's running XP, not Vista as I am. We've both got the latest service packs for Visual Studio.

Why? ("Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you even know? Why do you persist?")

Thankful for any help,
Matt
 
New Post 8/4/2007 4:22 AM
User is offline anonymous
0 posts
Unranked


Re: Localization for custom modules .. strange VS behavior 

Hey,

Did you get to the bottom of this?  I seem to be experiencing the same phenomenon.....

Thanks,

Olly

 
New Post 8/4/2007 8:19 AM
User is offline xiao qi
110 posts
www.DnnModules.cn
9th Ranked




Re: Localization for custom modules .. strange VS behavior 

     The dnn localization is implemented since asp.net 1.1, It is very similar as asp.net 2.0 localizaion implementation but have  diffrence. Please see DotNetNuke Localization.pdf  for detail . you can find this file in DotNetNuke_4.4.1_Docs.zip

 
New Post 8/5/2007 8:46 AM
User is offline BorkBork
11 posts
10th Ranked


Re: Localization for custom modules .. strange VS behavior 
Olly,

Nope, never did. Since asking, I've washed my hands of any custom DNN development, hired a consultant to work out the messy details instead, and am now happily working with php again.

Regards,
Mats Gefvert
 
New Post 8/5/2007 10:34 PM
User is offline Sebastian Leupold
12957 posts
www.deutschnetnuke.de
1st Ranked












Re: Localization for custom modules .. strange VS behavior 

I suggest also to check out the tutorials from Michael Washington at dotnetnuke.adefwebserver.com, AFAIR at least one demonstrates, how to utilize resource files.


Sebastian Leupold



DotNetNuke Project UserDefinedTable
DotNetNuke Project XML/XSL
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Language Packs ...  Localization for custom modules .. strange VS behavior
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com
Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP