Xin chào Tôi đã cố gắng giải quyết vấn đề của mình, tuy nhiên không thể làm gì được.Dịch vụ Không có sẵn 503 + Dịch vụ HTTP có tại http: //localhost/ProductsService/Service.svc quá bận
Vấn đề là
http://localhost/productservice/service.svc
khi loại địa chỉ này trong trình duyệt của tôi nó mang lại cho tôi 503 Dịch vụ lỗi Unavailable
Khi tôi chạy mã của tôi từ VS 2010 nó mang lại cho tôi
Các dịch vụ HTTP tại số http://localhost/ProductsService/Service.svc quá bận. ngoại lệ.
ProductService đang chạy trong ứng dụng tích hợp ASP.NET v4.0 với ApplicationPoolIdentity.
Tôi không biết mình cần làm gì!
(Windows 7 Home & IIS7)
basicHttpBinding được sử dụng
cấu hình máy chủ bên là
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="AdventureWorksEntities" connectionString="metadata=res://*/ProductsModel.csdl|res://*/ProductsModel.ssdl|res://*/ProductsModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=PINCHY\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
app.config khách hàng là
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IProductsService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:80/ProductsService/Service.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProductsService"
contract="ProductsService.IProductsService" name="BasicHttpBinding_IProductsService" />
</client>
</system.serviceModel>
</configuration>
Bất kỳ trợ giúp sẽ được đánh giá cao Tha nks
Bạn cần phải cung cấp cho chúng tôi biết thêm để đi trên !! Cấu hình của bạn là gì? Những gì ràng buộc để bạn sử dụng? Hiển thị cho chúng tôi cấu hình phía máy chủ !! (bất cứ điều gì bên trong thẻ) –
tôi đã thêm cấu hình nhờ – Pinchy
Cấu hình của bạn có vẻ chính xác. Bạn đã cố gỡ lỗi dịch vụ của mình chưa? Btw. Windows 7 Home có IIS7? –