nicemanish
asked on
publish wcf service application in iis7
i have cretaed a wcf service application.i want to deploy it iis 7.
there are the two way
1.if i am making virtual directory its working fine,but all the files reside in virtual directory like .cs ,
the unnessary files are not required.i want the dll as well svc files.
2.option like i publish the wcf service application.when i am publishing its give bin ,svc and web config file.i created the folder in IIS
and mapped it to publish site.when i cliked the mapped site to expolre its open the publish site folder,that place i am not able to browse
the svc file.
please suggest how to publish wcf service application in iis7.so that from the iis 7 i should be able to browse the svc file.?
3.i would like to invoke service from specific port from the iis whats i need to that?
i added the web.config like as below
<services>
<service name="HostService.EvalServ ice">
<endpoint address="http://localhost:8080/basic"
binding="basicHttpBinding" contract="HostService.IEva lService" />
<endpoint address="mex" binding="mexHttpBinding"
name="mex" contract="IMetadataExchang e" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/EvalsService" />
</baseAddresses>
</host>
</service>
there are the two way
1.if i am making virtual directory its working fine,but all the files reside in virtual directory like .cs ,
the unnessary files are not required.i want the dll as well svc files.
2.option like i publish the wcf service application.when i am publishing its give bin ,svc and web config file.i created the folder in IIS
and mapped it to publish site.when i cliked the mapped site to expolre its open the publish site folder,that place i am not able to browse
the svc file.
please suggest how to publish wcf service application in iis7.so that from the iis 7 i should be able to browse the svc file.?
3.i would like to invoke service from specific port from the iis whats i need to that?
i added the web.config like as below
<services>
<service name="HostService.EvalServ
<endpoint address="http://localhost:8080/basic"
binding="basicHttpBinding"
<endpoint address="mex" binding="mexHttpBinding"
name="mex" contract="IMetadataExchang
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/EvalsService" />
</baseAddresses>
</host>
</service>
ASKER
1. after so many search i acme to know for iis 7.5 we need to install wcf component by some comand
2.i have creted the virtual directory and make it enable in directory browsing and mapped to the folder where publish files reside.
3.now i am getting issue like allow definition =MachineToApplication beyond application level.
i am using windows 7 and iis 7.5 and .net v4.0.30319.
for third point i tried many searches but not able to resolve issue.plz help
2.i have creted the virtual directory and make it enable in directory browsing and mapped to the folder where publish files reside.
3.now i am getting issue like allow definition =MachineToApplication beyond application level.
i am using windows 7 and iis 7.5 and .net v4.0.30319.
for third point i tried many searches but not able to resolve issue.plz help
ASKER
forget to add point in 3.
and this error can be caused by a virtual directory not being configured as an application in iis.
and this error can be caused by a virtual directory not being configured as an application in iis.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have created the directory as Application in IIS,problem Resolved
port is in the website setting bindings.