last day (14 days later) » 

12:12 PM
0
Q: WCF is running only inside VS

ZORRO_BLANCOI created a WCF web service and i installed it in IIS as a new web application. The WCF has some actions like: Login, getEmployees ...etc. and it works fine when i publish and run it from vs, so i can reach from browser links like: http://myserver/service.svc http://myserver/service.svc?wsdl htt...

 
Please show your complete endpoint configuration on both sides.
 
@Rabban i updated the question with endpoints
and i use the same configurations on vs and on iis application
actually i replaced all myserver with the actual server name tsysrv09.tsydom.tsyon.net
and i wanted to mention that this should be a rest web service
 
On the first sight, your config looks ok. what do you mean with that you can't reach the other actions? Do you get an timeout or an FaultException or something different? I'm not familiar with webHttpBinding but the <identity> entry in your endpoint could be a problem. If the dns entry is wrong configured, you can't connect. Try <dns /> or complete without the identity. But you have to change it on both sides.
You can also try to trace your calls. Wcf often don't tell you the real reason whats wrong. But you can trace all calls and get full information about it.
 
as i said in the question with the actions links i mean : myserver/getEmployees?name=dada
should the problem with the dns not work with the other links too
whould you please tell me how to trace that?
 
hi there
on your server add following to the <system.serviceModel> node in your config
<diagnostics>
<messageLogging logEntireMessage="true"
logMalformedMessages="true"
logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="true"
maxMessagesToLog="500"/>
</diagnostics>
and under the <configuration> node put this
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="All">
<listeners>
<add name="traceListener" />
</listeners>
</source>
<source name="System.ServiceModel.MessageLogging"
switchValue="All">
<listeners>
<add name="traceListener" />
</listeners>
</source>
</sources>
<sharedListeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="c:\work\Traces.svclog" />
</sharedListeners>
</system.diagnostics>
on "initializeData" change it to a path that the application pool has rights for
 
12:21 PM
i appreciate your help
 
i hope it helps ;)
 
i removed the dns but it didn't work :(
 
narf, maybe it becomes clearer when you trace it
 
i am trying to do that but i dont really know how to do that
 
wcf is great, but it is really annoying to find the small show stoppers
 
12:23 PM
i followed this artikle
16
Q: Don't see Failed Request Tracing in IIS 7 Manager

JoelFanIn the "Actions" Pane of IIS Manager, under Configure there is supposed to be a link for "Failed Request Tracing". I don't see that... I just have "Limits..."

yes
but still cant see the request tracing
 
hmmm, i'm not really familiar with wcf hosting on iis, we only host in windows services
 
i see
 
di you tried to run you app without iis?
and without vs
 
how to do that
the vs published it to iis
 
is it an exe or an asp.net seit or something?
site^^
 
12:27 PM
actually it is web service where i use c#
i am not sure what it is but i dont have exe output
and i dont use asp.net as i think
pure c#
with entity framework
 
i see, you can use your service in an exe. Just create a small test application that executes your service. And run your application on your server where the iis is located
 
sorry but i dont know how to execute my webservice in an application
is that difficult
 
var host = new ServiceHost(typeof(YourServiceImplementation));
host.Open();
no, its really easy
 
aha ok i see, i will try it
 
k
 
12:31 PM
one more question
how to run the test app on server?
 
Just create an Console Application with code from above and the config you posted, then run the exe on your server
call "System.Console.ReadLine();" after you open the host, othewise the app will close
 
"Service 'AXPAYROLL.PayrollActions' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element."}
 
did you copied your config to the console app?
 
no soory
i will do that
Service up and running at:
http://minint-friclsh/payroll/
 
12:46 PM
no need to excuse. Wcf and all the stuff around is really complex shit. If used right, it will save you a lot of time. But for beginners, its the pure hell^^
this seems not to be a full url
 
Service up and running at:
http : //minint-friclsh/payroll/
i could call the service from browser
i will try the action calls
i am able to call the action links
and i am bcomming the right data
it looks like my web service is a dll
does that mean that i should run this console application on the iis ?
 
good to hear that the calls are working.
no, you can use iis, you don't need the console application
but now we know the problems is on iis and has nothing to do with your service
 
ok great how to do that
cool
 
but as i sad, i'm not really familiar with wcf hosting on iis
 
12:58 PM
there must be some tutorials to achieve this, but from here on, my experience ends and i can't help you further
 
yes but all totorials are helping to get to the none operational links which i can allready do, i think they suppose that the rest is easy
no problem thank you for the help
i appreciate it really
 
i'm glad i could help ;)
good luck
just try to figure out how to configure iis to route your calls to the service
 

last day (14 days later) »