473,749 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System::Service Model problem

yy
when i try to compile my code with 'using namespace
System::Service Model' 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 5318
when i try to compile my code with 'using namespace
System::Service Model' 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************* *********@hotma il.com
Apr 25 '07 #2
On Apr 25, 3:58 am, "Bruno van Dooren"
<bruno_nos_pam_ van_doo...@hotm ail.comwrote:
when i try to compile my code with 'using namespace
System::Service Model' 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_v an_doo...@hotma il.com
>From project property, add new reference and browse for
'system.service model.dll' under
C:\WINDOWS\Micr osoft.NET\Frame work\v3.0\Windo ws Communication
Foundation.

zz

Apr 27 '07 #3

Ayon kay John:
On Apr 25, 3:58 am, "Bruno van Dooren"
<bruno_nos_pam_ van_doo...@hotm ail.comwrote:
when i try to compile my code with 'using namespace
System::Service Model' 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_v an_doo...@hotma il.com
From project property, add new reference and browse for
'system.service model.dll' under
C:\WINDOWS\Micr osoft.NET\Frame work\v3.0\Windo ws 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
1940
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, it gives me the error IBM] SQL30061N The database alias or database name "NJIPD " was not found at the remote node. SQLSTATE=08004 i don't have this problem when i catalog the system right after i install db2 server, without put...
2
1313
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 fat. When I try to enter the driveletter in command prompt it says: "The volume does not contain a recognised file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted."
2
13585
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
6806
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 already referencing to the System.dll) Then when I tried checking whether servicemodel is present in 2.0 .net CF, msdn did not state whether it is present. Then i chance upon it saying it comes from System.ServiceModel.dll which I cannot find it in
0
1776
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 with the reserved prefix 'config' or 'lock'. <system.serviceModel configsource="services.config" /> Thanks Sen
2
2001
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 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?
0
1293
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. Iran this code in python it is working but when i run this in mod_python through apache it is not showing any errors but not giving the correct result.
6
7311
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 'System.ServiceModel/ServiceHostingEnvironment' configuration section cannot be created. The Machin.config file is missing information. Verify that this configuration section is properly registered and that you
8
13341
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 exception: An unhandled exception of type 'System.ServiceModel.Security.SecurityNegotiationException' occurred in mscorlib.dll
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.