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 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

Related Questions

This seems like a very basic question but I couldn't find any help on
This is a very basic question...quite embarassing, but here goes: I have a Stopwatch
Very basic question, but I have an error in my code that can only
This is a very basic question but wanted to confirm that if we have
This may be a very basic question but somehow it got me tricked... when
This is a very basic question. I'm just on my mission to learn ASP.NET
This is a very basic question - but I haven't been able to find
This might be a very basic question but I can't find the correct command
I have rather a very basic question but somehow it is confusing to me.
Probably this is a very basic question for shell programmers. But suppose I have

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.