Solved

publish wcf service application in iis7

Posted on 2013-05-22
5
631 Views
Last Modified: 2013-05-29
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.EvalService">
            <endpoint address="http://localhost:8080/basic"
              binding="basicHttpBinding" contract="HostService.IEvalService" />
            <endpoint address="mex" binding="mexHttpBinding"
              name="mex" contract="IMetadataExchange" />
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:8080/EvalsService" />
              </baseAddresses>
            </host>
 </service>
0
Comment
Question by:nicemanish
  • 4
5 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39189669
Did you follow the procedures here: http://msdn.microsoft.com/en-us/library/bb924407.aspx

port is in the website setting bindings.
0
 

Author Comment

by:nicemanish
ID: 39190532
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
0
 

Author Comment

by:nicemanish
ID: 39190542
forget to add point in 3.
and this error can be caused by a virtual directory not being configured as an application in iis.
0
 

Accepted Solution

by:
nicemanish earned 0 total points
ID: 39194203
Hi ,

I have created the directory as Application in IIS,problem Resolved
0
 

Author Closing Comment

by:nicemanish
ID: 39203918
I have created the directory as Application in IIS,problem Resolved
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
optimize  c# code 7 48
Data Saving(2) 2 26
cs.Designer Issue(2) 2 21
Iterate a dictionnary to change values 4 28
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now