Ask a Question related to ASP.NET Web Services, Design and Development.
-
Dave Anderson #1
ASP.Net web service gives CS0246
I am trying to get the MathService sample from
[url]http://samples.gotdotnet.com/quickstart/aspplus/[/url] 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\MathServiceClien t.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\aspne t_regiis.exe -i
Any help would be wonderful :-)
Thanks, dave
Dave Anderson Guest
-
Noobilicious question: Exposing two interfaces on the same web service(C# web service)
What are the fundamentals? I'm getting ready to write a new web service and I'd like to have the ability to add interfaces as they change to... -
Access Denied - Network Service vs Local Service
I have been struggling with my ASP.NET (V1.1 sp1) websites getting an 'Access Denied' message. I have track down the problem (I think) to the IIS... -
Is it possible for web service to send out random notifications to web service consumer?
I am a newbie for web servcie and want to write a web service which monitors the certain field in the database. Once it exceeds the certain value,... -
Referencing web service complex data type within a second web service (like a delegate)
Hi, I am trying to figure out if ASP.NET XML Web Services and the WSDL standard can handle this type of scenario: I have two web services, and... -
win32::eventlog DNS Server, Directory Service, File Replication Service
hello, does anyone know how to scan the special eventlogs on a dc like DNS Server log Directory Service File Replicatoin Service i tried it...



Reply With Quote

