|
Đang cùng đọc chủ đề này:
không có ai
|
|
Tên Login | |
|
{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.
|
|
|
|
|
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 |
|
|
| Quảng cáo - Liên kết |
|
 |
|