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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:37:06+00:00 2026-05-20T00:37:06+00:00

I have some basic questions related to the conversion of Web Service (.asmx) into

  • 0

I have some basic questions related to the conversion of Web Service (.asmx) into WCF. We have a running website which use tons of Web Services. These web services use a common dll that has the business logic. We are planning to convert the web services into WCF. Since there many web services, we are planning to convert one at a time. So to begin with there will be one WCF and many web services (asmx) residing on the production server. I have some confusion on how to make the website run with both – WCF and ASMX residing at one place. I would appreciate if someone can answer my queries:

  1. Can I share the same web.config file for both .asmx web service and WCF service? If yes, then what all changes do I need do to to make sure both works at the same time. Adding ServiceModel tag is enough to the existing web.config?

  2. Can I use the web.config to store some configuration parameters that can be shared between the two services – WCF and .asmx? How to call it?

  3. Currently, the common dll (business layer) is using HTTPContext.Current to cache some values. How can I make sure that the code works for both WCF and .asmx calls? What is the best way to convert the code similar to:

    xslt = (XslCompiledTransform)HttpContext.Current.Cache[fileName];
    string XslFilePath = HttpContext.Current.Server.MapPath(@"~/xsl/" + fileName);
    

    What is the WCF equivalent?

  4. Finally, how can I deploymy WCF changes in production server? Do I just need to copy the service dll and the .svc file?

I know, I have so many questions, and these may look simple to you guys but I am finding hard to figure them out.

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

    1) Can I share the same web.config file for both .asmx web service and
    WCF service?

    Yes, absolutely – the WCF config lives in the <system.serviceModel> section (mostly), so that’s no an issue at all.

    2) Can I use the web.config to store some configuration parameters
    that can be shared between the two services – WCF and .asmx?

    If you create your own custom configuration section or section group – yes, sure. Both the ASMX web service as well as your WCF code can read that custom config section – that’s all standard .NET stuff, really (See: How to: Create Custom Configuration Sections Using ConfigurationSection)

    3) Currently, the common dll (business layer) is using
    HTTPContext.Current to cache some values.

    You can turn on the ASP.NET compabitibility mode on your WCF services, and doing so, you a) tie yourself to IIS forever, and b) get access to all the usual HTTP context and stuff like that. See: WCF Services and ASP.NET for more info.

    4) Finally, how can I deploy my WCF changes in production server? Do I
    just need to copy the service dll and the .svc file?

    Copy the service DLL(s), the SVC file, make the config changes – that’s it!

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

Sidebar

Related Questions

I have some questions about basic CSS that I was unable to understand or
Dup of Some Basic PHP Questions Hello, I have a heap of tinyint fields
Hi have some forms that I want to use some basic php validation (regular
I have a Rails app with some basic models. The website displays data retrieved
I have a basic model in which i have specified some of the fields
This is a really basic question but... I have some code like this var
Currently, I have some basic code to play a simple tone whenever a button
For my university assignment I have to design some basic managment system for sicknesses
I have a storyboard(1) that does some basic animations in 2 seconds. I want
I have some questions about synthesized properties in Objective-C. The full list follows, but

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.