Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 355375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:00:43+00:00 2026-05-12T12:00:43+00:00

I have a .NET 3.5 based web service running at http://localhost/serivce.svc/ . Then I

  • 0

I have a .NET 3.5 based web service running at http://localhost/serivce.svc/. Then I have an ASP.NET application running at http://localhost/myApp. In Application_Load my application reads some XML configuration from the web service. That works fine on my machine, but:

  • On Windows Vista with IIS 7 the request to the web services fails.
  • The web service can be accessed via the browser without any problem.
  • I configured the app pool of my application to run as admin. I added the admin to the IIS_USRS group, but it still cannot access the web service. impersonate=true/false seems not to make a difference.
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:00:43+00:00Added an answer on May 12, 2026 at 12:00 pm

    First off, take admin out of the IIS_WPG group before you forget, and configure your app pool back to normal.

    Now, turn on WCF logging on the service by putting the following in your web.config file –

    <system.diagnostics>
        <sources>
            <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
                <listeners>
                    <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                        <filter type="" />
                    </add>
                    <add name="ServiceModelMessageLoggingListener">
                        <filter type="" />
                    </add>
                </listeners>
            </source>
        </sources>
        <sharedListeners>
            <add initializeData="c:\logs\web_messages.svclog"*
                type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
                <filter type="" />
            </add>
        </sharedListeners>
    </system.diagnostics>
    
    
    <system.serviceModel>
    ...
       <diagnostics>
         <messageLogging logMalformedMessages="true" *logMessagesAtServiceLevel="true"*
           logMessagesAtTransportLevel="true" />
       </diagnostics>
    ...
    </system.ServiceModel>
    

    Create the c:\logs directory and make sure the application pool identity user has full control on that directory. Now test your app.

    If no log files are being created then there’s a problem reaching the WCF service.
    If log files are being created view them in the Service Trace viewer which comes as part of the Windows SDK. You’ll see a red message which is the log entry containing the exception thrown inside the service – this should give you a pointer to where your service code is going wrong.

    If the problem is inside your app, rather than the service then you should be logging exceptions inside your Application_Load event (you should be logging exceptions anyway) – however if you try with a global exception handler, well, your app is failing on startup and so the global exception handler will never start to run – instead of putting potential failable scenarios in Application_Load I’d move that out to a utility class which provides an access point to the information you need (say myGlobalThingumy.GetStuff()). Make this class a singleton, and then check if you have the stuff already – if you don’t, then you make your web service call. It would act much the same as putting it in Application_Load but will enable global error handling to work, and make your debugging easier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me share the following scenario: I have a ASP.NET intranet Web-based application that
I am prototyping a AJAX based web application running up against ASP.NET, where I
We have build several web service based on .net. Now we want to create
I have a code base that has been used as an ASP.Net web application.
What's the best way to have two websites (asp.net based) running on different domains
We have an ASP.NET application that queues some of its long-running operations (generating reports,
We are using ASP.Net Web services. The architecture is Desktop Based Application developed in
I have a legacy ASP.Net web application that is basically used to process web
I have an asp.net MVC web application that requires tasks to be scheduled. (A
If I have a WCF SOAP (C#) based web service running in my local

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.