473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

System::ServiceModel problem

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?

Apr 24 '07 #1
3 5260
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.

--
Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren
br**********************@hotmail.com
Apr 25 '07 #2
On Apr 25, 3:58 am, "Bruno van Dooren"
<bruno_nos_pam_van_doo...@hotmail.comwrote:
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.

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

zz

Apr 27 '07 #3

Ayon kay John:
On Apr 25, 3:58 am, "Bruno van Dooren"
<bruno_nos_pam_van_doo...@hotmail.comwrote:
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.

--
Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren
bruno_nos_pam_van_doo...@hotmail.com
From project property, add new reference and browse for
'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

Jun 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: xixi | last post by:
i have been tring to add a new catalog system on my local machine control center from remote server, after i create the host and node, i try to catalog the database, then when i try to access it,...
2
by: krp | last post by:
Yes I know, this isn't the rigth forum. Can anyone direct me to it? Or can anyone answer me? Here's the situation. I have a NTFS partition on a hd. It seems that the volume is corrupt or the...
2
by: Ronald S. Cook | last post by:
I am on WinXP but have downloaded .NET Framework 3.0. Isn't System.ServiceModel supposed ot be in there? It's not showing up in my list of .NET references within VS2005. Thanks, Ron
1
by: Atiz | last post by:
hi, i'm trying to create a program for pocket pc 2003. When i wanted to use System.ServiceModel.Security, the compiler complained that servicemodel is not present in System namespace. (I'm...
0
by: =?Utf-8?B?a3Nlbg==?= | last post by:
I am trying to use external config file for System.servicesModel using configSource attribute, I get following error. The attribute 'configsource' cannot be specified because its name starts...
2
by: NeToKo | last post by:
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...
0
by: devoloperbattu | last post by:
in my project i have to nmap an ip give and in this code cmd = "nmap -O " + myip + "> /usr/local/apache2/htdocs/test/temp/tmp.txt" os.system(cmd) i scan for the os on the remote system. ...
6
by: Sachin | last post by:
Hi All, I deployed an ASP.NET Web Service on Server1 and it worked fine. However when I deployed the same Web Service on Server2 I am getting the following error, The...
8
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service and hosted it in Windows Services. It is working fine. Now I am trying to implement the X509 certificates for message layer security. But it is throwing the following...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.