Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Visual-Studio WCF tier
hello
ive followed the msdn Walkthrough: Creating an N-Tier Data Application
-Done: the class library (DataAccessTier)
-Done: the class library (DataEntityTier)
-Done: DataAccessTier create Dataset
-Done: Separating the TableAdapters from the Dataset (DataSet Project:DataEntityTier)
-Done:Create WCF and new queries
-Done:Adding a Reference to the Data Entity and Data Access Tiers to the Data Service(WCF)
-Done:add reference because in using C# (System.Data.DataSetExtensions)
-Done: in IService ive added [OperationContract] and in Serice1.cs ive added relevant code.
+IService code:
[OperationContract]
DataEntityTier.NorthwindDataSet.CustomersDataTable GetCustomers();
 
[OperationContract]
DataEntityTier.NorthwindDataSet.OrdersDataTable GetOrders();
+service1 Code:
public DataEntityTier.NorthwindDataSet.CustomersDataTable GetCustomers()
{
    DataAccessTier.NorthwindDataSetTableAdapters.CustomersTableAdapter
         CustomersTableAdapter1
        = new DataAccessTier.NorthwindDataSetTableAdapters.CustomersTableAdapter();
    return CustomersTableAdapter1.GetCustomers();
 
}
public DataEntityTier.NorthwindDataSet.OrdersDataTable GetOrders()
{
    DataAccessTier.NorthwindDataSetTableAdapters.OrdersTableAdapter
         OrdersTableAdapter1
        = new DataAccessTier.NorthwindDataSetTableAdapters.OrdersTableAdapter();
    return OrdersTableAdapter1.GetOrders();
 
}
-Done: add Presentation Tier and set as starting project and add reference (DataEntityTier)
-After that i get a problem doing this step:
To add a service reference to the presentation tier 
1.
In Solution Explorer, right-click PresentationTier and click Add Service Reference.
 
2.
In the Add Service Reference dialog box, click Discover.
 
3.
Select Service1 and click OK
-If i want to add a service reference and press descover i see a service (Design_Time_Address/DataService/Service1/mex) if i select it and click OK i get an popup (WCF Service Host) the status: ERROR and if i click on the service the aditional Information says: System.PlatformNotSupportedException: Operation is not supported on this platform.
at system.Net.HttpListner.ctor()........etc
- after that i close what window there is another popup saying: There was an error downloading metadata from the address please verify that you have entered an valid addess.(address:http://localhost:8732/Design_Time_Address/DataService/Service1/mex)
 

How do I fix this so I can add a service reference and continue with the presentation tier?
Posted 13-Oct-12 12:55pm
Edited 13-Oct-12 13:06pm
(no name)105.9K
v2
Comments
Teenustar at 14-Oct-12 21:09pm
   
Did you build the Data Entity tier ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 400
1 Maciej Los 222
2 OriginalGriff 213
3 BillWoodruff 130
4 Zoltán Zörgő 85
0 OriginalGriff 7,969
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,309
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 13 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100