Web Service Not Working -- Namespace not found 
Author Message
 Web Service Not Working -- Namespace not found

Like you, I attempted to do the initial Walkthrough tutorial.   Like you, I
am able to add the web reference to the project. The problem I have is in
step 14-15 of "Creating the Validation Form". I put in the code and it
doesn't compile. I am led to believe thru some newsgroup reading that the
problem is you have to hand-tweak namespace stuff when adding a webref. I
didn't get much in specifics on that and have not been able to figure out
what needs to be done.

Also, discovered this namespace explorer, ILDASM.EXE, so I ran it and
explored around til I found the output of the compiler (does not tell you
exactly what executables are created, unlike old Visual Studio). I had
previously recompiled the whole project after commenting out the code from
step 14. Both pieces built without error, but the validation form part of
the project is not showing up when I look at the resulting DLL though
ILDASM. Perhaps because I have put no code into it, not sure. So, anyway,
was unable to locate the namespace.

Not sure where to go from here...????


Quote:
> Why is it that nobody answers the questions that I'm interested in?

> Andrew, have you found the solution for this yet?  I am having similar
> issues after adding a web reference to a client project and then not being
> able to find the namespace...



> > I tried to create a web service and import it into
> > an .aspx file.  However, when I try to view it in the
> > browser, I get the following error:

> > Compilation Error
> > Description: An error occurred during the compilation of a
> > resource required to service this request. Please review
> > the following specific error details and modify your
> > source code appropriately.

> > Compiler Error Message: BC30002: Type is not
> > defined: 'mymathvb.mymath'

> > Source Error:

> > Line 19:       End Try
> > Line 20:
> > Line 21:       Dim Service As mymathvb.mymath = New
> > mymathvb.mymath()
> > Line 22:
> > Line 23:       Select (CType(sender,Control).ID)

> > Source File: E:\apj\mymath.aspx    Line: 21

> > Show Detailed Compiler Output:

> > E:\WINNT\system32> "e:\winnt\microsoft.net\framework\v1.0.2
> > 914
> > \vbc.exe" /t:library /utf8output /R:"e:\winnt\assembly\gac\
> > system.web.services\1.0.2411.0__b03f5f7f11d50a3a\system.web
> > .services.dll" /R:"e:\winnt\assembly\gac\system.xml\1.0.241
> > 1.0__b77a5c561934e089
> > \system.xml.dll" /R:"e:\winnt\assembly\gac\system.drawing\1
> > .0.2411.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"e:\winn
> > t\assembly\gac\system.data\1.0.2411.0__b77a5c561934e089
> > \system.data.dll" /R:"e:\winnt\assembly\gac\system.web\1.40
> > 00.2411.0__b03f5f7f11d50a3a\system.web.dll" /R:"e:\winnt\as
> > sembly\gac\system\1.0.2411.0__b77a5c561934e089
> > \system.dll" /out:"E:\Program
> > Files\ASP.NET\Premium\V1.0Beta2\Temporary ASP.NET
> > Files\apj\3118fb06\ad94db85\ltglwweq.dll" /debug-
> >   "E:\Program Files\ASP.NET\Premium\V1.0Beta2\Temporary
> > ASP.NET Files\apj\3118fb06\ad94db85\ltglwweq.0.vb"

> > Microsoft (R) Visual Basic.NET Compiler version 7.00.9254
> > for Microsoft (R) .NET CLR version 1.00.2914.16
> > Copyright (C) Microsoft Corp 2001. All rights reserved.

> > E:\Program Files\ASP.NET\Premium\V1.0Beta2\Temporary
> > ASP.NET Files\apj\3118fb06\ad94db85\ltglwweq.0.vb(15) :
> > error BC30466: The Namespace or type 'mymath' for the
> > Import 'mymath' cannot be found.

> > Imports mymath
> >         ~~~~~~
> > E:\apj\mymath.aspx(21) : error BC30002: Type is not
> > defined: 'mymathvb.mymath'

> >       Dim Service As mymathvb.mymath = New mymathvb.mymath
> > ()



Sun, 22 Feb 2004 04:21:26 GMT  
 Web Service Not Working -- Namespace not found
I have almost the same problem.

I can't add the web reference to the project (doing the TempConvert1
walkthrough).
After I type the url to the .vsdisco file in the address bar of the "Add Web
Reference" dialog box I can see the xml document in the left pane but the
"Add Reference" button is not enabled.

We normaly use a proxy, I disabled the proxy for this operation.

Anybody experienced something like this?


Quote:
> Like you, I attempted to do the initial Walkthrough tutorial.   Like you,
I
> am able to add the web reference to the project. The problem I have is in
> step 14-15 of "Creating the Validation Form". I put in the code and it
> doesn't compile. I am led to believe thru some newsgroup reading that the
> problem is you have to hand-tweak namespace stuff when adding a webref. I
> didn't get much in specifics on that and have not been able to figure out
> what needs to be done.

> Also, discovered this namespace explorer, ILDASM.EXE, so I ran it and
> explored around til I found the output of the compiler (does not tell you
> exactly what executables are created, unlike old Visual Studio). I had
> previously recompiled the whole project after commenting out the code from
> step 14. Both pieces built without error, but the validation form part of
> the project is not showing up when I look at the resulting DLL though
> ILDASM. Perhaps because I have put no code into it, not sure. So, anyway,
> was unable to locate the namespace.

> Not sure where to go from here...????



> > Why is it that nobody answers the questions that I'm interested in?

> > Andrew, have you found the solution for this yet?  I am having similar
> > issues after adding a web reference to a client project and then not
being
> > able to find the namespace...



> > > I tried to create a web service and import it into
> > > an .aspx file.  However, when I try to view it in the
> > > browser, I get the following error:

> > > Compilation Error
> > > Description: An error occurred during the compilation of a
> > > resource required to service this request. Please review
> > > the following specific error details and modify your
> > > source code appropriately.

> > > Compiler Error Message: BC30002: Type is not
> > > defined: 'mymathvb.mymath'

> > > Source Error:

> > > Line 19:       End Try
> > > Line 20:
> > > Line 21:       Dim Service As mymathvb.mymath = New
> > > mymathvb.mymath()
> > > Line 22:
> > > Line 23:       Select (CType(sender,Control).ID)

> > > Source File: E:\apj\mymath.aspx    Line: 21

> > > Show Detailed Compiler Output:

> > > E:\WINNT\system32> "e:\winnt\microsoft.net\framework\v1.0.2
> > > 914
> > > \vbc.exe" /t:library /utf8output /R:"e:\winnt\assembly\gac\
> > > system.web.services\1.0.2411.0__b03f5f7f11d50a3a\system.web
> > > .services.dll" /R:"e:\winnt\assembly\gac\system.xml\1.0.241
> > > 1.0__b77a5c561934e089
> > > \system.xml.dll" /R:"e:\winnt\assembly\gac\system.drawing\1
> > > .0.2411.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"e:\winn
> > > t\assembly\gac\system.data\1.0.2411.0__b77a5c561934e089
> > > \system.data.dll" /R:"e:\winnt\assembly\gac\system.web\1.40
> > > 00.2411.0__b03f5f7f11d50a3a\system.web.dll" /R:"e:\winnt\as
> > > sembly\gac\system\1.0.2411.0__b77a5c561934e089
> > > \system.dll" /out:"E:\Program
> > > Files\ASP.NET\Premium\V1.0Beta2\Temporary ASP.NET
> > > Files\apj\3118fb06\ad94db85\ltglwweq.dll" /debug-
> > >   "E:\Program Files\ASP.NET\Premium\V1.0Beta2\Temporary
> > > ASP.NET Files\apj\3118fb06\ad94db85\ltglwweq.0.vb"

> > > Microsoft (R) Visual Basic.NET Compiler version 7.00.9254
> > > for Microsoft (R) .NET CLR version 1.00.2914.16
> > > Copyright (C) Microsoft Corp 2001. All rights reserved.

> > > E:\Program Files\ASP.NET\Premium\V1.0Beta2\Temporary
> > > ASP.NET Files\apj\3118fb06\ad94db85\ltglwweq.0.vb(15) :
> > > error BC30466: The Namespace or type 'mymath' for the
> > > Import 'mymath' cannot be found.

> > > Imports mymath
> > >         ~~~~~~
> > > E:\apj\mymath.aspx(21) : error BC30002: Type is not
> > > defined: 'mymathvb.mymath'

> > >       Dim Service As mymathvb.mymath = New mymathvb.mymath
> > > ()



Mon, 23 Feb 2004 16:26:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Web reference namespace not found

2. Web Service Test Client Not Working

3. Can not access web service from C# Windows Service

4. Windows Service (not a web service) question

5. Namespace Conflict - c# Class Library used by Web Service and ASP.NET Web App

6. Web reference not defining namespace?

7. System.Web.Mail namespace does not exist???

8. namespace not found

9. namespace name can not be found

10. C++/ATL/ADO - Intellisense not working (statement completion options) not working

11. ???? System.Net namespace not found?

12. Containers (Standard Template Library) and namespace do not jointly work together

 

 
Powered by phpBB® Forum Software