can't create hosting WCF under IIS7 asp.net4.0 windows web server 2008

TrilobyteMKR
TrilobyteMKR used Ask the Experts™
on
I am just testing out WCF and want to run the service from my web server. I have created an application pool, copied the vs2010 (vb) solution to the server, added a new web site which points to the WCF service solution, but I cannot get it to work
 
this a hosted web server and I'm not sure hwo this web site will work vs my live web site.

I'm sure this is something to do with how the IIS is configured or maybe an endpoint type of issue. I have just used the very basic wcf example loaded with vs2010.

Any suggestions?

Thanks
Malcolm
screenshot1.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi,

Its showing me stopped website status in screenshot. Right click on website -> Manage website -> Click on start

update me if problem persist.

Author

Commented:
Sorry my image didn't display the error message that I get when I do that - This web site cannot be started. Another Web site may be using the same port.
Hi,

Seems to me you are using same name binding with other website or using same IP on other website. Do the following steps and it should work fine for you.

* Right click on website -> Edit Bindings
* Remove all the bindings if you set here
* click on Add
* Select IP
* Enter host name -> domain.com
* Again click on Add -> Enter host name -> www.domain.com 
 (The above process is used to share IP with multiple websites)

* Now do the following entries in windows host file (Because I am able to see that you are using temporary website name):

xx.xx.xx.xx domain.com
xx.xx.xx.xx www.domain.com

If you have DNS then you can setup these website A record in your DNS file.

* If you want to assign dedicated IP then you have to check other websites for same IP binding is there or not.
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Author

Commented:
tanujchanda,
thanks for your comments. It got me thinking about how it was structured.
I've managed to get it working. What I had to do was make the services web site subordinate to my main web site, point to the physical path and set up the virtual address and it worked. Hopefully that is it. I could get to the service from a rul http://www.trilobyteservices.com/testwcftrilobyte/service1.svc

Thanks for your help
Malcolm
Hi,

Is there anything else which I can assist you on this.

Author

Commented:
His comments put me on the rigyht path to fix the problem. Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial