System::ServiceModel problem

Y

yy

when i try to compile my code with 'using namespace
System::ServiceModel' i get:
error C2039: 'ServiceModel' : is not a member of 'System'

i've installed WCF and WPF extensions for Visual Studio 2005 and after
that i see 'Net Framework 3.0' under C# new project, with WCF Service
Library... tried to Build the C# sample and it works... but in my C++/
CLI there is a problem with 'ServiceModel'...

any hints?
 
B

Bruno van Dooren

when i try to compile my code with 'using namespace
System::ServiceModel' i get:
error C2039: 'ServiceModel' : is not a member of 'System'

i've installed WCF and WPF extensions for Visual Studio 2005 and after
that i see 'Net Framework 3.0' under C# new project, with WCF Service
Library... tried to Build the C# sample and it works... but in my C++/
CLI there is a problem with 'ServiceModel'...

There are no C++ plugins for WCF or WPF. If you want to use them you'd have
to manually add references to the correct assemblies. This is done
automatically in a C# W*F.
Check the C# project assembly references and add those references to your
C++ application.
 
J

John

There are no C++ plugins for WCF or WPF. If you want to use them you'd have
to manually add references to the correct assemblies. This is done
automatically in a C# W*F.
Check the C# project assembly references and add those references to your
C++ application.

--
Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren
(e-mail address removed)
From project property, add new reference and browse for
'system.servicemodel.dll' under
C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation.

zz
 
N

NeToKo

Ayon kay John:
'system.servicemodel.dll' under
C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation.

zz

Hi John,
I've already fixed the problem by adding assembly reference.

-Netoko
 

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