Microsoft Office Tutorials and References
In Depth Information
<host>
<baseAddresses>
<add baseAddress=" http://localhost:<portnumber>/visiowcfservices.svc " />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfDataProvider.ServerStatusBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<connectionStrings>
<add name="VisioServicesConnectionString" connectionString="Data Source=localhost;Initial
Catalog=VisioServices;Integrated Security=SSPI;User Id=uid;Password=pwd"
providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>
after completing the preceding steps, your folder structure and files should look similar to those in Figure 2-76 .
Figure 2-76. WCF service host folder
17.
open iis, and create an application pool by providing a Name, .Net Framework version,
and pipeline mode.
18.
Create a new web site. Choose the app pool you just created, provide a site name, and
choose the local folder where you copied the .dll file as the physical path. Under binding ,
provide a port number that’s not in use.
19.
open the browser, and type the UrL
http://localhost:<portnumber > / VisioWcfServices.svc; to see the output shown
in Figure 2-77 .
 
Search JabSto ::




Custom Search