Click here to Skip to main content
11,489,693 members (66,592 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF IIS7.5
I made a simple WCF service library. It works in localhost with the development server. I have tried many diff configs with a runtime error or 500 internet error. Some advice or corrections?

Environment: VS 2010, WCF Service Library, Hosting site - cloud server(Gear Host), I use ASPX for web development.
wsHttpBinding,

Here is the web.config: based on the configurations from the app.config file.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <!-- When deploying the service library project, the content of the config file must be added to the host's 
  app.config file. System.Configuration does not support config files for libraries. -->
  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="wsServBind" />
      </wsHttpBinding>
    </bindings>
    <services>
      <service name="WebServEnc.ServLib.Service">
        <endpoint address="~/WebServEnc.ServLib.Service" binding="wsHttpBinding"
          bindingConfiguration="wsServBind" name="Default" contract="WebServEnc.IServ">
          <identity>
            <dns value="" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" name="serv"
          contract="IMetadataExchange">
          <identity>
            <dns value="http://mysite.com/" />
          </identity>
        </endpoint>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, 
          set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="True"/>
          <!-- To receive exception details in faults for debugging purposes, 
          set the value below to true.  Set to false before deployment 
          to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="False" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
 
</configuration>
Posted 10-Aug-12 17:38pm
Edited 10-Aug-12 19:32pm
v3
Comments
Kenneth Haugland at 10-Aug-12 22:55pm
   
Is this IIS related?
Idle_Force at 10-Aug-12 23:10pm
   
Yes, IIS 7.5 if I'm not mistaken.
Kenneth Haugland at 10-Aug-12 23:17pm
   
Are you sure that the outside world has access to the scv file on you virtual folder?
Idle_Force at 10-Aug-12 23:26pm
   
No, I'm not. Frankly, this is very new to me. I have a book and watched some videos, but it is still so new. In my project, after testing on localhost, I published to my host server where I have a website. Mind you it replaces the web.config file and I manually add the config info from the service. I just don't know if I going about this the right way. Thanks for you advice.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This could take a while if im going to go trough all the possible mistakes that could have occured, so im going to give you this linke:
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/5c0a54e7-af4b-422f-bf5d-5f2f93d46ed0/[^]

If you still cant figure out what happened you are more than welcome to update your question with the new information (By using the Improve Question button)

So good luck to you Smile | :)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 535
1 OriginalGriff 223
2 Andy Lanng 193
3 Maciej Los 190
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,488
1 OriginalGriff 8,425
2 Sascha Lefèvre 3,344
3 Maciej Los 3,066
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 11 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100