Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > compile error : using system.link

Reply
Thread Tools

compile error : using system.link

 
 
Rainer Queck
Guest
Posts: n/a
 
      06-17-2008
Hello NG,

as a newbie I am learning about asp.net 3.5.
To do this I bought a book form Microsoft Press (ASP.NET 3.5 Step by Step).
Also I prepared me a Windows Server 2008 with IIS 7.0 in a VM to test the
samples from the book.
I have installed the "dotnetfx35.exe" to the WS2008.

My problem now is, that - calling my default.aspx - I receive a errormessage
"CS0234: The Typ- oder Namespacename Linq is not in the Namespace System
available..."
What can I do to solve this problem?

Regards
Rainer Queck


 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      06-17-2008
Rainer Queck presented the following explanation :
> Hello NG,
>
> as a newbie I am learning about asp.net 3.5.
> To do this I bought a book form Microsoft Press (ASP.NET 3.5 Step by Step).
> Also I prepared me a Windows Server 2008 with IIS 7.0 in a VM to test the
> samples from the book.
> I have installed the "dotnetfx35.exe" to the WS2008.
>
> My problem now is, that - calling my default.aspx - I receive a errormessage
> "CS0234: The Typ- oder Namespacename Linq is not in the Namespace System
> available..."
> What can I do to solve this problem?
>
> Regards
> Rainer Queck


You need to add a "reference" to the project, to System.Core.dll (on
the .Net tab).
A "reference" includes a library in your project, so you can use it's
classes. This is required.
A "using" directive only allows you to skip the namespace when you use
a class from that "used" namespace. This is more like "syntactic
sugar", tit makes it less complicated to write (and read) the code. You
still need the "reference".

Hans Kesting


 
Reply With Quote
 
 
 
 
Rainer Queck
Guest
Posts: n/a
 
      06-17-2008
Hello Hans,

"Hans Kesting" <> schrieb im Newsbeitrag
news:...
> You need to add a "reference" to the project, to System.Core.dll (on the
> .Net tab).
> A "reference" includes a library in your project, so you can use it's
> classes. This is required.
> A "using" directive only allows you to skip the namespace when you use a
> class from that "used" namespace. This is more like "syntactic sugar", tit
> makes it less complicated to write (and read) the code. You still need the
> "reference".

Thanks for this infos. What ist the ".Net tab"? Is it part of the
InternetInformationServices?

I in the meanwhile brought my app to be able to run.
In the "book" I was told to copy a different web.config to a existing
(sample) website to add the "authentication" sample.
I remebered that this website worked before and therfor compared the
previous web.congfig to the new one and realized that in the new config the
section
<assemblies> ... </assemblies> was missing, which held the reference.

But back to my previous question, about the .Net tab. Is there a generic way
to enable IIS for .Net 3.5 assemblies?

Regards
Rainer


 
Reply With Quote
 
Hans Kesting
Guest
Posts: n/a
 
      06-17-2008
Rainer Queck explained on 17-6-2008 :
> Hello Hans,
>
> "Hans Kesting" <> schrieb im Newsbeitrag
> news:...
>> You need to add a "reference" to the project, to System.Core.dll (on the
>> .Net tab).
>> A "reference" includes a library in your project, so you can use it's
>> classes. This is required.
>> A "using" directive only allows you to skip the namespace when you use a
>> class from that "used" namespace. This is more like "syntactic sugar", tit
>> makes it less complicated to write (and read) the code. You still need the
>> "reference".

> Thanks for this infos. What ist the ".Net tab"? Is it part of the
> InternetInformationServices?
>
> I in the meanwhile brought my app to be able to run.
> In the "book" I was told to copy a different web.config to a existing
> (sample) website to add the "authentication" sample.
> I remebered that this website worked before and therfor compared the previous
> web.congfig to the new one and realized that in the new config the section
> <assemblies> ... </assemblies> was missing, which held the reference.
>
> But back to my previous question, about the .Net tab. Is there a generic way
> to enable IIS for .Net 3.5 assemblies?
>
> Regards
> Rainer


No, this is not an IIS setting, you need to set this in Visual Studio.
If you don't have Visual Studio (there are free "express" editions),
then that <assemblies> section works similar.

Hans Kesting


 
Reply With Quote
 
Rainer Queck
Guest
Posts: n/a
 
      06-17-2008
Hi Hans,

"Hans Kesting" <> schrieb im Newsbeitrag
news:%...
> No, this is not an IIS setting, you need to set this in Visual Studio.
> If you don't have Visual Studio (there are free "express" editions), then
> that <assemblies> section works similar.

Ok, now I know what you where talking about. I am working with VS2008
Professional and the .NET tab holds all necessary references.
The "bug" is in the book, which told me to "copy" a web.config not holding
the required references.

Thanks for your help!

Rainer


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile directive for conditional compile for Java 1.4 versus Java 5 timjowers Java 7 02-02-2011 12:08 AM
How to compile the following source code in VC6// I have error inVC++6 but compile ok in GCC fAnSKyer C++ 2 06-07-2009 07:57 AM
Compile versus not compile (VS 2005)?? stupid48@gmail.com ASP .Net 1 04-11-2008 08:24 PM
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
Compile Error using C++ VS6.0 using Notes API Andrew Luke C++ 3 09-09-2005 01:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57