Can't Activate WCF service -
i'm working on wcf , worked fine on localhost. after placed production server, thows me exception "the requested service, 'http://global-kazway.kz/service1.svc' not activated. see server's diagnostic trace logs more information".
i'm new in services , have been trying solve problem 3 hours.
here app.config of client;
<?xml version="1.0" encoding="utf-8"?> <configuration> <configsections></configsections> <connectionstrings> <add name="testproject.properties.settings.dbconnectionstring" connectionstring="data source=.\sqlexpress;attachdbfilename=c:\users\1\documents\visual studio 2010\projects\testproject\testproject\appdata\db.mdf;integrated security=true;user instance=true" providername="system.data.sqlclient" /><add name="dbentities" connectionstring="metadata=res://*/dbmodel.csdl|res://*/dbmodel.ssdl|res://*/dbmodel.msl;provider=system.data.sqlclient;provider connection string="data source=.\sqlexpress;attachdbfilename=c:\users\1\documents\visual studio 2010\projects\testproject\testproject\appdata\db.mdf;integrated security=true;user instance=true;multipleactiveresultsets=true;app=entityframework"" providername="system.data.entityclient" /><add name="dbentities1" connectionstring="metadata=res://*/dbmodel.csdl|res://*/dbmodel.ssdl|res://*/dbmodel.msl;provider=system.data.sqlclient;provider connection string="data source=.\sqlexpress;attachdbfilename=|datadirectory|\appdata\db.mdf;integrated security=true;user instance=true;multipleactiveresultsets=true;app=entityframework"" providername="system.data.entityclient" /></connectionstrings> <system.servicemodel> <bindings> <basichttpbinding> <binding name="basichttpbinding_iservice1" 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://global-kazway.kz/service1.svc" binding="basichttpbinding" bindingconfiguration="basichttpbinding_iservice1" contract="kazwayservicereference.iservice1" name="basichttpbinding_iservice1" /> </client> </system.servicemodel> </configuration>
first step in troubleshooting wcf application bring browser , type in service uri. based on client: you'd navigate http://global-kazway.kz/service1.svc
now see kind of results get. exception? service screen? can best information screen! points out issue such missing behavior.
compare web.config deployed web.config entries. may find there well. may have manage security on folder. browser display spell out clearly.
Comments
Post a Comment