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 6318971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:43:21+00:00 2026-05-24T15:43:21+00:00

On II7 we host a WCF/asp.net based API. In order to allow users of

  • 0

On II7 we host a WCF/asp.net based API. In order to allow users of a classic asp application to connect to the API we had to publish a version we refer to as “transport”. This Transport version is written in asp.net too, it points to the same assembly , its just the security layer is different to allow classic asp to authenticate. Transport level security is used as opposed to message based security.

When using a browser to load the service reference i can loading the svcutil.exe … WDSL page.

When using my test asp page to call a web method from this reference i get the following returned:

Finished calling Web Service.
Status = Internal Server Error
ResponseText = a:InvalidSecurityAn error occurred when verifying security for the message.

This suggests that the authentication is failing. When testing using asp.net or the application WCF storm to contact the normal API everything works well.

The API was recently migrated , it would appear something has not been setup correctly but i am at a loss to explain what.

I can browse to the svcutil.exe … WDSL service reference, when selecting it via the browser i get the expect XML response.

The USER NAME and password utilised work when using the non-classic asp publicaiton of the API using the message based secuirty.

Would it be possible to post some troubleshooting tip that may help diagnoise the issue please specifically regarding transport level security fault finding and setup ?

Thank you
Scott

EDITED TO ADD THE FOLLOWING UPDATE:

Attempted to use the Default App Pool and a new App Pool but same problem persists.

My test page error: ResponseText = a:InvalidSecurityAn error occurred when verifying security for the message.

IIS LOG shows:
v3/transport/testclassicasptransportwcfservice.asp ( 200 0 0 ) (i.e iis 200)
/V3/Transport/DeviceService.svc/DeviceService (500 0 0) (i.e iis error 500)

note: virtual dir defined on TRANSPORT and V3. V3 works ok using .net as opposed to classic asp to authenticate.

EVENT LOG:
The Template Persistent Cache initialization failed for Application Pool ‘transport’ because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes.

This reference appears to suggest a fix but many of the DIR paths and references in “appcmd” dont exist.

_http://theether.net/kb/100127

  • 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-24T15:43:21+00:00Added an answer on May 24, 2026 at 3:43 pm

    REF http://theether.net/kb/100127

    1. load cmd prompt
    2. CD to C:\Windows\System32\inetsrv
    3. enter: appcmd list config -section:system.webServer/asp
    4. the following path is displayed: c:\inetpub\conf\temp\ASP compiled templates
    5. check path exists (it does)
    6. Check if the NETWORK SERVICE has permissions to access “ASP compiled templates” If not from appcmd execute;

      icacls "c:\inetpub\conf\temp\ASP Compiled Templates" /grant "NETWORK SERVICE:(OI)(CI)(M)"
      

      should read “sucessfully processed 1 files”

      restarted app pool.

    THE “InvalidSecurityAn error occurred when verifying security for the message” problem still persists but the “COULD NOT CREATE A DISK CACHE SUB-DIRECORY …. ” error from the eventlog is no longer occurring.

    Sorry another update. The network service permission change DID NOT resolve the issue , changeing to the DEFAULT APP POOL solved the problem.

    Got a lead at last. Examined:

    1. ServiceSecurityAudit set in service behaviour. Ref http://intrepiddeveloper.wordpress.com/2008/08/07/security-event-logging-auditing/#
    2. IIS logs (simply shows the non-specific error 500.)
    3. Fault tracing enabled( also shows error 500).
    4. Custom errors were off
    5. Friendly IE messages were off
    6. Asp client side and server side debugging on
    7. ProcessMon running , no errors.
    8. Web.config httpErrors errorMode=”Detailed” /> +

    ServiceSecurityAudit found me an “Object reference not set to an instance of an object” so sounds like our app has a bug.


    Follow up (17/08/11):

    Service Security Audit documented here:

    http://intrepiddeveloper.wordpress.com/2008/08/07/security-event-logging-auditing/

    Was the key for us to resolve this issue. Uncovered the Object Reference Error which indicated out Business Objects and Data Access dlls were out of alignment. Using CLASSIC ASP to contact the WCF.NET API using TRANSPORT AUTHENTICATION there was abolutely no indication of this error until Service Security Audit was enavled on the behaviour.config file in the WCF deployment.

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

Sidebar

Related Questions

I am trying to deploy an asp .net MVC app onto II7 and getting
I see that for showing error of classic asp in ii7 i must use
Can I run ASP.NET 4.0 websites on Windows XP II6 or do I need
I've written a site for my summer internship using ASP.NET MVC. The progress is
I'm working locally on an ASP.NET website under Windows 7, and I experience stange
I have a WCF service (basicHttpBinding) hosted in II7 on Vista that I expect
Hey everyone. I am getting 404 errors when I try to access my ASP.NET
I'm using II7 and bits down loader to deploy my application to customers. Can
According to the msdn.microsoft.com site, .NET 3.5 Routing should work under IIS6 and II7
- i can't to connect report server PC config window 7, II7, sql sever

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.