Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Compilation errors - namespaces missing?


Message #1 by "Øystein Skjesol" <oystein@s...> on Sun, 27 Jan 2002 13:57:58
Hello.

I am quite new to asp.net, but I really thought it should be easier to get 

up and running.

I hva installed the 1.0 sdk framework which <i>seems </i> to be working 

fine. I can read aspx pages, and do simple scripting.



My problem rises with namespaces. There seems to be missing some namspaces 

in my installation. (it seems so to me, anyway.)



a simple page like this:

''''''''''''''''''''''''''

''''''''''''''''''''''''''



<%@ Import Namespace="System" %>

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Data.SQL" %>



''''''''''''''''''''''''

'''''''''''''''''''''''''

returns this error when run:

''''''''''''''''''''''''''

''''''''''''''''''''''''''

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: BC30466: Namespace or type 'SQL' for the 

Imports 'System.Data.SQL' cannot be found.

''''''''''''''''''''''''''''''''''

''''''''''''''''''''''''''''''''''



I'm running w2k pro, and tried to do the same installation on another 

computer running xp with the same result.



Do I have to specify which namespaces should be available in the framework?



Happy for some help.



Øystein, Norway

 
Message #2 by perryf@m... on Sun, 27 Jan 2002 17:30:09
Everyone says how knowing namespaces is 95% of knowing .Net.  There is a 

utility supplied with the quickstart samples with asp.net called class 

browser.  On my system the url is:



http://localhost/quickstart/aspplus/samples/classbrowser/vb/classbrowser.a

spx



Anyways, the namespace you are looking to use is "System.Data.SQLclient"



PF





> Hello.

> I am quite new to asp.net, but I really thought it should be easier to 

get 

> up and running.

> I hva installed the 1.0 sdk framework which <i>seems </i> to be working 

> fine. I can read aspx pages, and do simple scripting.

> 

> My problem rises with namespaces. There seems to be missing some 

namspaces 

> in my installation. (it seems so to me, anyway.)

> 

> a simple page like this:

> ''''''''''''''''''''''''''

> ''''''''''''''''''''''''''

> 

> <%@ Import Namespace="System" %>

> <%@ Import Namespace="System.Data" %>

> <%@ Import Namespace="System.Data.SQL" %>

> 

> ''''''''''''''''''''''''

> '''''''''''''''''''''''''

> returns this error when run:

> ''''''''''''''''''''''''''

> ''''''''''''''''''''''''''

> 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: BC30466: Namespace or type 'SQL' for the 

> Imports 'System.Data.SQL' cannot be found.

> ''''''''''''''''''''''''''''''''''

> ''''''''''''''''''''''''''''''''''

> 

> I'm running w2k pro, and tried to do the same installation on another 

> computer running xp with the same result.

> 

> Do I have to specify which namespaces should be available in the 

framework?

> 

> Happy for some help.

> 

> Øystein, Norway

Message #3 by "Steven A Smith" <ssmith@a...> on Sun, 27 Jan 2002 13:02:12 -0500
Even better is this tool that you can use on your desktop:

http://www.aisto.com/roeder/dotnet/



The reflector is a .NET class browser that is WONDERFUL for examining classes.

It has the .NET Framework built in by default, but you can also use it to point

at your own assemblies.  And it will display C# comments as well, so you can see

the comments that MS put into their framework classes (since of course they are

all written in C#).



Steve



Steven Smith, ASP.NET MVP, MCSE+Internet

ssmith@a...

President, ASPAlliance.com

http://aspalliance.com    The #1 ASP.NET Community

http://aspsmith.com        ASP.NET Training for ASP Developers



Learning ASP.NET?  Get My Book: ASP.NET By Example

http://www.amazon.com/exec/obidos/ASIN/0789725622/stevenatorasp/

----- Original Message -----

From: <perryf@m...>

To: "aspx_beginners" <aspx_beginners@p...>

Sent: Sunday, January 27, 2002 5:30 PM

Subject: [aspx_beginners] Re: Compilation errors - namespaces missing?





> Everyone says how knowing namespaces is 95% of knowing .Net.  There is a

> utility supplied with the quickstart samples with asp.net called class

> browser.  On my system the url is:

>

> http://localhost/quickstart/aspplus/samples/classbrowser/vb/classbrowser.a

> spx

>

> Anyways, the namespace you are looking to use is "System.Data.SQLclient"

>

> PF

>

>

> > Hello.

> > I am quite new to asp.net, but I really thought it should be easier to

> get

> > up and running.

> > I hva installed the 1.0 sdk framework which <i>seems </i> to be working

> > fine. I can read aspx pages, and do simple scripting.

> >

> > My problem rises with namespaces. There seems to be missing some

> namspaces

> > in my installation. (it seems so to me, anyway.)

> >

> > a simple page like this:

> > ''''''''''''''''''''''''''

> > ''''''''''''''''''''''''''

> >

> > <%@ Import Namespace="System" %>

> > <%@ Import Namespace="System.Data" %>

> > <%@ Import Namespace="System.Data.SQL" %>

> >

> > ''''''''''''''''''''''''

> > '''''''''''''''''''''''''

> > returns this error when run:

> > ''''''''''''''''''''''''''

> > ''''''''''''''''''''''''''

> > 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: BC30466: Namespace or type 'SQL' for the

> > Imports 'System.Data.SQL' cannot be found.

> > ''''''''''''''''''''''''''''''''''

> > ''''''''''''''''''''''''''''''''''

> >

> > I'm running w2k pro, and tried to do the same installation on another

> > computer running xp with the same result.

> >

> > Do I have to specify which namespaces should be available in the

> framework?

> >

> > Happy for some help.

> >

> > Øystein, Norway

>




$subst('Email.Unsub').

>



Message #4 by perryf@m... on Sun, 27 Jan 2002 18:38:47
Steve,



Thanks.  I already downloaded it and it is very easy to use and very 

handy.



PF



> Even better is this tool that you can use on your desktop:

> http://www.aisto.com/roeder/dotnet/

> 

> The reflector is a .NET class browser that is WONDERFUL for examining 

classes.

> It has the .NET Framework built in by default, but you can also use it 

to point

> at your own assemblies.  And it will display C# comments as well, so 

you can see

> the comments that MS put into their framework classes (since of course 

they are

> all written in C#).

> 

> Steve

> 

> Steven Smith, ASP.NET MVP, MCSE+Internet

> ssmith@a...

> President, ASPAlliance.com

> http://aspalliance.com    The #1 ASP.NET Community

> http://aspsmith.com        ASP.NET Training for ASP Developers

> 

> Learning ASP.NET?  Get My Book: ASP.NET By Example

> http://www.amazon.com/exec/obidos/ASIN/0789725622/stevenatorasp/


  Return to Index