ASP.Net web service gives CS0246

D

Dave Anderson

I am trying to get the MathService sample from
http://samples.gotdotnet.com/quickstart/aspplus/ working in Windows XP.

This is a ASP.net webservice with the webservice defined in the
MathService.asmx
I am using the DotNet Framework v1.1.4322

The WSDL compiles fine from the asmx file. The C# proxy class compiles fine.
If I look at the resulting assembly dll (with ildasm.exe), I see the
namespace MathService and the class MathService.

The assembly DLL is in the bin subdirectory in the virtual directory
MathService. The virtual directory (and subdirectories) has execute
permission as Scripts and Executables (I have tried them all).

This is Windows XP (all updates applied).

The MathServiceClient.aspx gets the following

Compiler Error Message: CS0246: The type or namespace name 'MathService'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:


Line 1: <%@ Import Namespace="MathService" %>
Line 2:
Line 3: <html>

Source File: C:\Inetpub\wwwroot\MathService\CS\MathServiceClient.aspx
Line: 1

My understanding is that ASP.net should search the bin subdirectory looking
for the appropriate namespace.

I have tried an explicit assembly directive and ASP.net reports "Parser
Error Message: File or assembly name MathService, or one of its
dependencies, was not found."

So clearly ASP.net cannot find the bin subdirectory and hence the assembly.

Has anyone any idea what I am missing?

BTW, I have reregistering asp.net using (a web search showed this as a
potential solution).

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i

Any help would be wonderful :)

Thanks, dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top