Trang chủ  Diễn đàn  Đăng ký  Đăng Nhập  Cá Nhân  Hộp thư  Sổ địa chỉ  Gửi bài qua email 
Diễn đàn cá nhân  Thư viện hình ảnh  Thành viên  Tìm Kiếm  Lịnh sự kiện  Thắc mắc thường gặp?  Ticket List  Thoát

{Help} WCF Service Library

 
View related threads: (trong diễn đàn này | trong tất cả diễn đàn)

Xin chào bạn: Guest
Đang cùng đọc chủ đề này: không có ai
  Printable Version
Diễn Đàn Chính >> [Lập trình - Phát triển dự án với Microsoft .NET] >> WPF, WWF, WCF, Silverlight >> {Help} WCF Service Library Trang: [1]
Tên Login
Thân bài << Đề mục cũ   Đề mục mới >>
{Help} WCF Service Library - 7/28/2010 8:47:47 AM   
pow26

 

Bài viết đã đăng: 10
Điểm: 0
Ghi ngày: 9/23/2009
Tình trạng: offline
Chào room ! Mong anh em trong room giúp mình. Mình còn gà khi up data lên host.

Tôi có làm WCF Service Library. Tôi tạo 2 project:
  • 1 Application
  • 1 Wcf Service Library
Khi dưới local thì tôi chạy ok hết. Nhưng khi tôi up Wcf Service Library lên host để dưới client gọi thì không kết nối được ? (có phải mình up Wcf Service Library lên host là mình bỏ trong web-->content ko ?)

Tôi có thắc mắc là giữa WCF Service Library và WCF Service Application thì mình sẽ chọn công nghệ nào khi làm ?

Sau đây là app.config của Wcf Service Library:


<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<configSections>
</configSections>
<system.web>
   <compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
   <client>
     <remove contract="IMetadataExchange" name="net.tcp" />
     <endpoint binding="netTcpBinding" bindingConfiguration="net.tcp"
       contract="IMetadataExchange" name="net.tcp" />
   </client>
   <bindings>
     <mexTcpBinding>
       <binding name="NewBinding0" />
     </mexTcpBinding>
   </bindings>
   <services>
     <service name="WCF_Service_Library_RIMS_Config.RIMS_Online_Service">
       <endpoint address="" binding="netTcpBinding" bindingConfiguration=""
         contract="WCF_Service_Library_RIMS_Config.RIMS_Online_IService">
         <identity>
           <dns value="localhost" />
         </identity>
       </endpoint>
       <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="NewBinding0"
         contract="IMetadataExchange" />
       <host>
         <baseAddresses>
           <add baseAddress="net.tcp://72.32.147.143:808/WCF_RIMS_Configuration/Service1" />
         </baseAddresses><!--net.tcp://localhost:8732/Service1-->
       </host>
     </service>
   </services>
   <behaviors>
     <serviceBehaviors>
       <behavior name="">
         <serviceMetadata httpGetEnabled="false" />
         <serviceDebug includeExceptionDetailInFaults="false" />
       </behavior>
     </serviceBehaviors>
   </behaviors>
</system.serviceModel>

</configuration>


Mình cũng đã search lỗi nhưng vẫn tìm mãi không khắc phục được.hix.

Lỗi :


Metadata contains a reference that cannot be resolved: 'net.tcp://72.32.147.143/WCF_RIMS_Configuration/Service1'.
Could not connect to net.tcp://72.32.147.143/WCF_RIMS_Configuration/Service1. The connection attempt lasted for a time span of 00:00:20.9218750. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.32.147.143:808.
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
If the service is defined in the current solution, try building the solution and adding the service reference again.
Post #: 1
Trang:   [1]
Diễn Đàn Chính >> [Lập trình - Phát triển dự án với Microsoft .NET] >> WPF, WWF, WCF, Silverlight >> {Help} WCF Service Library Trang: [1]
Nhảy đến:





Bài Mới Không Có Bài Mới
Chủ đề nóng và CÓ bài viết mới Chủ đề nóng và KHÔNG có bài viết mới
Đã khóa và CÓ bài viết mới Đã khóa và KHÔNG có bài viết mới
 Đăng Đề Mục Mới
 Trả Lời
 Trưng Cầu
 Ý Kiến Của Bạn
 Delete My Own Post
 Delete My Own Thread
 Đánh giá bài





© 2002-2008 Vietnamese ASP.NET. | Trang chủ | Diễn đàn | Đăng ký | Đăng Nhập | Thắc mắc thường gặp?
Sử dụng phần mềm Diễn đàn ASPPlayground.NET phiên bản Advanced Edition 2.5.5 Unicode
Skin phát triển bởi ASPVN.NET phiên bản 1.0.0. Thời gian tải trang: 0.031
Nội dung được xây dựng bởi Ban quản trị và các Thành viên của diễn đàn
Domain & Hosting được tài trợ bởi ViTechNet.,JSC | Microsoft Vietnam
Quảng cáo - Liên kết