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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:51:02+00:00 2026-05-15T04:51:02+00:00

Excuse the title, but it’s best I just explain the problem. I have 2

  • 0

Excuse the title, but it’s best I just explain the problem.

I have 2 projects in my solution

  1. A Class Library
  2. A Web Application, which consists of a web service (asmx).

the web service has code sitting in the app_code folder, with a file [webservicename].cs

Inside the webservice code behind class, I have a web method here is a sample example (its simplified):

[WebMethod]
public EnumTaskExportState ProcessTask()
{
    var tm = new UploadTaskManager();
    return tm.ProcessTask();
}

Now at design time, in visual studio (2010 or 2008), when I right click on UploadTaskMananger, and then select “Go to definition”. I get taken to AppData\Temp[some folder structure]…etc…. and it displays the public class definition.

Instead I would like to have complete integration, so that I get taken directly to the actual class in the class library project.

My guess is, this is happening because I am using the app_code route, and not a compiled file for the web service class. But I don’t know any other way to do this.

How can I fix this? Possibly do away with the need for the app_code directory?

  • 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-15T04:51:02+00:00Added an answer on May 15, 2026 at 4:51 am

    Its pretty easy

    Step 1… when you generate a new web service , the app_code/.cs file gets generated too.
    Copy the signature from that class, it will be used as a template in step 4.

    Step 2… delete the app_code/.cs file that got generated

    Step 3. In your class file, create a namespace and folder structure where you will include the web service classes containing web methods. For example Class1.WebServices

    Step 4. in Namespace Class1.WebServices (as per above example), create a new class, then replace the default class signature with the copied class signature from step 1.

    Step 5. Edit the web service now, and create your web methods

    Step 6. In the web application, edit the asmx file to reference the class without code behind for example

    <%@ WebService Language="C#"  Class="Class1.WebServices.WebServiceClass" %>
    

    Step 7, test!

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

Sidebar

Related Questions

Please excuse (or improve the title) but I have a silly little problem that's
Please excuse the awkward title I'll try my best to explain my peculiar problem.
The title is a bit complicated, but it fits my problem. I have a
Excuse my title if it's confusing, but I don't know how else to describe
Excuse the poor title, i can not think of the correct term. I have
excuse me in advance if this is not the right title for the problem
First of all, excuse my poor topic title. I simply have no idea how
Excuse the terrible question title. I have this PHP string and want to check
Please excuse the confusing title ;) We've built an ASP.NET MVC application to replace
Please excuse me but I didn't know to give a name to the title

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.