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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:14:10+00:00 2026-05-14T00:14:10+00:00

I use wshttpbinding in my service Config and message security. My app works fine

  • 0

I use wshttpbinding in my service Config and message security. My app works fine but after 10 or 20 min when client calls any method of service, an exception throws because my security token will be expired, and connection can’t work.

One solution is to recreate the connection to make a new token (but I can’t use this because my service contains datacontext and if I recreate the service, the datacontext will be new).

Other solution is to change the security type from message to transport (I tried this solution but nothing changed because another exception was thrown).

  • 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-14T00:14:10+00:00Added an answer on May 14, 2026 at 12:14 am

    I am assuming that when you say datacontext you mean Enitity Framework datacontext.

    Your solution appears to depend on the datacontext being available when the client returns. This is a very brittle approach. Even if you increased all the relevant timeouts, you would still get errors if for example the server restarted.

    Take a look at WCF Data Services http://msdn.microsoft.com/en-us/data/bb931106.aspx

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

Sidebar

Related Questions

I have created a WCF service which does not use the app.config to configure
I am trying to create a WCF service that will use message mode security
My service can work with normal WCF calls, but to expose metadata (the wsdl
I have a WCF client/server app which is communicating over HTTP using the WSHttpBinding.
Normally, one can specify a service binding using the app.config file, and the system
I have a remote wcf service, I connect it by WSHttpBinding. If I use
I have a WCF service and a client that uses that service. They use
I need to use multiple hosts under IIS for WCF. We're using wshttpbinding and
Every time my program runs vs adds the default configuration to my app.config file.
How we could authenticate/authorize WCF RESTful service (that uses webHttpBinding (and not wsHttpBinding, like

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.