?
Solved

c# system.globalization.ChineseLunisolarCalendar can't seem to get this to work

Posted on 2014-09-29
6
Medium Priority
?
354 Views
Last Modified: 2014-11-12
Hello

I am trying to use the ChineseLunisolarCalendar procedure which should be defined in the System.Globalization class using Visual Studio 2013 c# project, but I can't seem to get it to recognise the ChineseLunisolarCalendar reference within the System.Globalization namespace, any ideas on what I might be missing?
see http://technet.microsoft.com/en-us/network/system.globalization(v=vs.95)
and
http://technet.microsoft.com/en-us/network/system.globalization.chineselunisolarcalendar(v=vs.95)

The error I get is as follows:

Error      1      The type or namespace name 'ChineseLunisolarCalendar' does not exist in the namespace 'System.Globalization' (are you missing an assembly reference?

Thanks for any feedback you might be able to provide.

el
0
Comment
Question by:elschott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40352301
What version of .NET are you targeting? That class seems to come up for me:

Screenshot
0
 
LVL 15

Assisted Solution

by:Ess Kay
Ess Kay earned 1000 total points
ID: 40352358
You need to add a reference to sysglobl.dll. This is already installed in the GAC as sysglobl.

For future reference, if you check the MSDN page for CultureAndRegionInfo you can see that it says

Namespace:  System.Globalization

Assembly:  sysglobl (in sysglobl.dll)

The issue is that namespaces can be spread across different assemblies (for example, System.Globalization.CultureInfo lives in mscorlib.)
0
 

Author Comment

by:elschott
ID: 40354072
Thanks for the feedback both comments were useful. My application is a windows phone application so this might be the source of my problem. If I create a straight Windows application the system.globalization works correctly. So it doesn't appear to work with windows phone app.

I tried adding the sysglobl.dll but I get the following error:

"a reference to a higher version or incompatible assembly cannot be added to the project"

any ideas if this is fixable
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 1000 total points
ID: 40354284
As I understand, Windows Phone uses a smaller subset of the Framework. This option may be lacking from that environment.
0
 

Author Closing Comment

by:elschott
ID: 40359213
Apparently it can't be done. Thanks for the feedback.
0
 
LVL 15

Expert Comment

by:Ess Kay
ID: 40360029
have you tried manually addind the reference,  and packaging it with the program?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question