Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: The directive 'Import' is unknown?


Message #1 by "Muhammed Tahirošlu" <mucutah@y...> on Tue, 3 Jul 2001 14:33:51
When i run an aspx file, i get this error message:



The directive 'Import' is unknown.



Source Line of this error:



Line 1:  <%@ Import Namespace="System.IO" %>



What can i do about this?





 

Message #2 by "max.li" <max@a...> on Thu, 5 Jul 2001 06:38:39
in msdn library visual studio.net 



ms-help://MSDNVS/cpguide/html_hh2/cpconimport.htm



"The @ Import directive cannot have more than one namespace attribute. To 

import multiple namespaces, use multiple @ Import directives.



The following namespaces are automatically imported into all pages"



> When i run an aspx file, i get this error message:

> 

> The directive 'Import' is unknown.

> 

> Source Line of this error:

> 

> Line 1:  <%@ Import Namespace="System.IO" %>

> 

> What can i do about this?

> 

> 

>  

Message #3 by Todd Carrico <ToddC@m...> on Tue, 3 Jul 2001 09:41:32 -0500
Are you using VB, or C#?



tc





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

From: Muhammed Tahiro=F0lu [mailto:mucutah@y...]

Sent: Tuesday, July 03, 2001 9:34 AM

To: ASP+

Subject: [aspx] The directive 'Import' is unknown?



When i run an aspx file, i get this error message:



The directive 'Import' is unknown.



Source Line of this error:



Line 1:  <%@ Import Namespace=3D"System.IO" %>



What can i do about this?






  Return to Index