last day (15 days later) » 

7:05 PM
0
Q: Can't properly host a WCF Service in IIS. Error 404

Mr_LinDowsMacI have requirement that I want a WCF service library that provide a PDF via REST. For example I have an url like this: localhost:8732/service1/reports/ok And I get a PDF as response. It is a fixed file in local filesystem. Here it is my current code: Service.cs using System; using System.Collec...

 
What error/issue u are getting exactly, when u publish it on IIS?
 
I'm getting a 404 Error
URL address requested: localhost:8732/service1/reports/ok Ruta de acceso física: C:\inetpub\wwwroot\PDFprueba\service1\reports\ok
 
Okay.. I will try to do it on my device.. and update u
Are u able to see published website in inetmgr?
 
Yes, it is listed there.
 
try to convert it into webapplication
just right click on it and you will get an option
to make it as application
and then browse
 
7:06 PM
Where? in inetmgr?
or VS2013?
 
inetmgr
 
yeah
and update me
any success?
 
let me publish it again
 
7:11 PM
I was cleaning
 
It should be published in Default Web Site?
 
yeah
but if u create app
it may come out of default website
 
Damn, can't wipe the old one
 
right click remove working?
*not
 
7:13 PM
nope
apparently some process is using it
 
do F5
okay
 
can't figure out which one
 
close your VS
and then
do it
 
wiped
 
great!
 
7:16 PM
Mmmm... I didn't notice this before
there's an option at VS
to add a Virtual directory
 
and another option for New Application
 
okay..
 
I had to selected the Default Web Site first to use them..
should I ignore them, or just publish them in the Default Web Site?
 
You can publish in default website...
anything is fine
 
7:19 PM
ok, i'll try that this time
ok
 
if application is publishing outside Default web site then let it be there..
 
didn't work... apparently if I publish like that
that option to convert to Web Application is not listed
is just publishing directly to wwwroot
 
okay...
same error?
 
7:25 PM
connection refused
error 404 if just port 80
perhaps I should try by creating a virtual host
or application inside
 
just try...
I am also trying to do the same on my machine
 
Did you tried in your own pc?
ok
Template was Visual C# -> WCF Service Library
and renember to have a PDF file in C://
called invoice.pdf
 
okay..
 
it can be any pdf file, i put that there just to test it out
 
will update you asap
 
7:30 PM
thanks
 
still trying
give me 5 mins
 
7:44 PM
Why actually u want it to publish it to IIS7 and not IIS express? any specific reason?
 
IIS not express, because I will try to replicate that config in other server later
 
did you get it working?
at least in VS?
 
I am addig metadata
adding
endpoint
 
ah ok. I didn't, I just ignored that message in tested in the browser
and tested in the browser
 
7:52 PM
okay
I wiill update you if anything works at ma end
 
ok, I had to reboot... I'll be back
 
I'm back
 
Actually I am not getting GetReport Operation on my WCF test client
so m stuck there..
I will let u know once I have someting
 
mmm.... neither I
as I said, didn't use that to test this
metadata is another issue that I will try to resolve later
 
8:06 PM
oaky
fone
fine*
 
mmmm.... I have to go...
 
thanks for your help
 
I will give it a try for sometime
 
if you get any update, this chat or post an answer
 
8:07 PM
if anything good.. i'll post it
 
thanks :)
 
Np :)
I am getting "No end point found" if I goes for localhost:8732/service1/somerandomstring
 
8:41 PM
:(
same error/
 

last day (15 days later) »