VS 2005 MS Orientation Aware Controls designer problem

V

velver

Hello,

Trying to test MS Orientation Aware Controls from Microsoft
Mobile Smart Client 2006 on VS 2005 I am having this particular
error when I try to open any OA control or form which hosts it
in *a designer* :

---------------------
Unable to cast object of type
'Microsoft.CompactFramework.Design.SystemValueProviderService' to type
'Microsoft.CompactFramework.Design.ISystemValueProviderService'.
---------------------

The project OrientationAwareDemo builds and runs OK however. The
problem only appears when I want to open OAC control or form in
VS 2005 designer. The desiner does not load and VS shows HTML page
whit the error mentioned above.

What could be the reason for this particular error ?

Thanks in advance for any hint ...
 
P

Peter Duniho

Hello,

Trying to test MS Orientation Aware Controls from Microsoft
Mobile Smart Client 2006 on VS 2005 I am having this particular
error when I try to open any OA control or form which hosts it
in *a designer* :

---------------------
Unable to cast object of type
'Microsoft.CompactFramework.Design.SystemValueProviderService' to type
'Microsoft.CompactFramework.Design.ISystemValueProviderService'.
---------------------

The project OrientationAwareDemo builds and runs OK however. The
problem only appears when I want to open OAC control or form in
VS 2005 designer. The desiner does not load and VS shows HTML page
whit the error mentioned above.

What could be the reason for this particular error ?

Well, the fundamental cause is that the
Microsoft.CompactFramework.Design.SystemValueProviderService doesn't
implement the
Microsoft.CompactFramework.Design.ISystemValueProviderService interface.
Given the names of the two types, that seems very odd, but AFAIK it's
really the only explanation for the error. Perhaps somehow an older
implementation of
Microsoft.CompactFramework.Design.SystemValueProviderService is being used
by the Designer, one that predates the interface?

MSDN has barely heard of these types. A search turns up five results, all
involving Designer-related problems, but none the same problem you have.
The only silver lining I see, such as it is, is that it suggests that even
if you could get the cast to work in the Designer, you'd probably run into
other problems. :(
http://social.MSDN.microsoft.com/Search/en-US?query=SystemValueProviderService&ac=8

There is actually a Compact Framework newsgroup, where your question is
more appropriate. You may find posting your question there solicits a
response from someone who's actually seen the problem before, or at least
has some idea of how to deal with it.

Pete
 
M

Mighty G

what happens when you repoint designer support dll in orientation aware
designer project to one in this folder?

\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\VisualStudio\Designer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top