Link to home
Start Free TrialLog in
Avatar of TrilobyteMKR
TrilobyteMKRFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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

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
Avatar of tanujchandna
tanujchandna
Flag of India image

Hi,

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

update me if problem persist.
Avatar of TrilobyteMKR

ASKER

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.
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
ASKER CERTIFIED SOLUTION
Avatar of tanujchandna
tanujchandna
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
His comments put me on the rigyht path to fix the problem. Thanks