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

  • Home
  • SEARCH
  • 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
  • 0 Views
  • 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

Ask A Question

Stats

  • Questions 253k
  • Answers 253k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Sessions are more secure than cookies and hidden fields because… May 13, 2026 at 9:58 am
  • Editorial Team
    Editorial Team added an answer You can retrieve the movie's nominal width and height through… May 13, 2026 at 9:58 am
  • Editorial Team
    Editorial Team added an answer testInt is declared as an instance field. It is impossible… May 13, 2026 at 9:58 am

Related Questions

I am writing a web application in ASP.NET 3.5 that takes care of some
Let's say for example you have 5 different companies using the same platform (Windows
I’ve got a situation with a large internal corporate web based application running ASP.NET
I'm busy building a software update application in C#, WinForms, .NET 3.5, where I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.