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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:34:38+00:00 2026-05-12T11:34:38+00:00

Very basic question – but I couldn’t find an answer. I have got a

  • 0

Very basic question – but I couldn’t find an answer.
I have got a asp.net web service which is located in an asmx file. This should call a function from a helper library.
Using a different asmx file in Visual Studio everything is working fine – I just had to add the assembly to the dependencies of this project.

Altough I have copied the assembly to the bin subdirectory on the webserver (I think this was what the descriptions I’ve read said) it returns this error message:

Server Error in ‘/’ Application
CS0246: The type or namespace name
`XXXFunctions’ could not be found. Are
you missing a using directive or an
assembly reference?

Description: HTTP 500. Error
processing request.

Stack Trace:

System.Web.Compilation.CompilationException:
CS0246: The type or namespace name
XXXFunctions' could not be found. Are
you missing a using directive or an
assembly reference? at
System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath,
System.CodeDom.Compiler.CompilerParameters
options) [0x00000] at
System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath)
[0x00000] at
System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder
abuilder,
System.Collections.Generic.List
1
buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind)
[0x00000] at
System.Web.Compilation.BuildManager.BuildAssembly
(System.Web.VirtualPath virtualPath)
[0x00000] at
System.Web.Compilation.BuildManager.GetCompiledType
(System.String virtualPath) [0x00000]
at
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler
(System.Web.HttpContext context,
System.String verb, System.String url,
System.String filePath) [0x00000]
at
System.Web.Script.Services.ScriptHandlerFactory.GetHandler
(System.Web.HttpContext context,
System.String requestType,
System.String url, System.String
pathTranslated) [0x00000] at
System.Web.HttpApplication.GetHandler
(System.Web.HttpContext context,
System.String url, Boolean
ignoreContextHandler) [0x00000] at
System.Web.HttpApplication.GetHandler
(System.Web.HttpContext context,
System.String url) [0x00000] at
System.Web.HttpApplication+c__Iterator2.MoveNext
() [0x00000]

This is the asmx file I’m using:

<%@ Assembly name="System.Web.Extensions" %>
<%@ Assembly name="System.Runtime.Serialization" %>
<%@ Assembly name="System.ServiceModel.Web" %>
<%@ WebService Language="C#" Class="FCWService.FCWService" %>

using System;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
using System.IO;
using System.Text;

namespace FCWService
{
    [WebService (Namespace = "http://tempuri.org/NumberService")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ScriptService]
    public class FCWService : System.Web.Services.WebService
    {
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public XXXFunctions.Data GetData(double length)
        {
            return XXXFunctions.Functions.GetData(length);
        }
    }
}

Any ideas ?


Answered:
I found out that there was a <%@ Assembly name=”XXXFunctions” %> directive was missing on top the asmx page.

  • 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-12T11:34:39+00:00Added an answer on May 12, 2026 at 11:34 am

    Answered: I found out that there was a <%@ Assembly name=”XXXFunctions” %> directive was missing on top the asmx page.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When you send the email, generate a big random string… May 12, 2026 at 3:00 pm
  • Editorial Team
    Editorial Team added an answer Treat validation as a service rather than as a responsibility… May 12, 2026 at 3:00 pm
  • Editorial Team
    Editorial Team added an answer To add an entry to the Project Types dialog, you… May 12, 2026 at 3:00 pm

Related Questions

Very basic question: how do I write a short literal in C++? I know
Very basic question - but I couldn't find an answer. I have got a
A very basic question... How can I only allow the selection of one option
A very basic question. I have just installed Visual Studio 2008 Express Edition and
This is a very basic question. I'm just on my mission to learn ASP.NET

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.