473,508 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Import directive error

Compiler Error Message: CS0234: The type or namespace name 'Http' does not
exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you
missing an assembly reference?)

Source Error:
Line 2: <%@ Import Namespace="System.Runtime.Remoting" %>
Line 3: <%@ Import Namespace="System.Runtime.Remoting.Channels" %>
Line 4: <%@ Import Namespace="System.Runtime.Remoting.Channels.Http" %>
Line 5:
Line 6: <%@ Page Language="C#" AutoEventWireup="True" %>
Any ideas?
10x, Sharon.
Nov 18 '05 #1
5 2015
Hi Sharon,

Make sure you have added reference to the System.Runtime.Remoting.dll.
If you have added and still getting this error i suggest you to remove the
reference and then add it again.

Hope this helps you.

Thanks
Raghavendra

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
Compiler Error Message: CS0234: The type or namespace name 'Http' does not
exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?)

Source Error:
Line 2: <%@ Import Namespace="System.Runtime.Remoting" %>
Line 3: <%@ Import Namespace="System.Runtime.Remoting.Channels" %>
Line 4: <%@ Import Namespace="System.Runtime.Remoting.Channels.Http" %>
Line 5:
Line 6: <%@ Page Language="C#" AutoEventWireup="True" %>
Any ideas?
10x, Sharon.

Nov 18 '05 #2
Hi Raghavendra and thanks for your reply.
How do i add a reference to aspx page.
I know how to do it with csc.exe, but this is a web page.
I'm not working with Visual Studio.
Thanks.

"Raghavendra T V" <ra*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Sharon,

Make sure you have added reference to the System.Runtime.Remoting.dll.
If you have added and still getting this error i suggest you to remove the
reference and then add it again.

Hope this helps you.

Thanks
Raghavendra

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
Compiler Error Message: CS0234: The type or namespace name 'Http' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are

you
missing an assembly reference?)

Source Error:
Line 2: <%@ Import Namespace="System.Runtime.Remoting" %>
Line 3: <%@ Import Namespace="System.Runtime.Remoting.Channels" %>
Line 4: <%@ Import Namespace="System.Runtime.Remoting.Channels.Http" %>
Line 5:
Line 6: <%@ Page Language="C#" AutoEventWireup="True" %>
Any ideas?
10x, Sharon.


Nov 18 '05 #3
Hi,
Use the <%@ Assembly %> directive.

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
Hi Raghavendra and thanks for your reply.
How do i add a reference to aspx page.
I know how to do it with csc.exe, but this is a web page.
I'm not working with Visual Studio.
Thanks.

"Raghavendra T V" <ra*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Sharon,

Make sure you have added reference to the System.Runtime.Remoting.dll.
If you have added and still getting this error i suggest you to remove the
reference and then add it again.

Hope this helps you.

Thanks
Raghavendra

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
Compiler Error Message: CS0234: The type or namespace name 'Http' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are

you
missing an assembly reference?)

Source Error:
Line 2: <%@ Import Namespace="System.Runtime.Remoting" %>
Line 3: <%@ Import Namespace="System.Runtime.Remoting.Channels" %>
Line 4: <%@ Import Namespace="System.Runtime.Remoting.Channels.Http" %>
Line 5:
Line 6: <%@ Page Language="C#" AutoEventWireup="True" %>
Any ideas?
10x, Sharon.



Nov 18 '05 #4
How do you add an "assembly reference" in a *.aspx file?
<%@ Assembly %> does not solve the problem.

"Shiva" wrote:
Hi,
Use the <%@ Assembly %> directive.

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
Hi Raghavendra and thanks for your reply.
How do i add a reference to aspx page.
I know how to do it with csc.exe, but this is a web page.
I'm not working with Visual Studio.
Thanks.

"Raghavendra T V" <ra*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Sharon,

Make sure you have added reference to the System.Runtime.Remoting.dll.
If you have added and still getting this error i suggest you to remove the
reference and then add it again.

Hope this helps you.

Thanks
Raghavendra

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
Compiler Error Message: CS0234: The type or namespace name 'Http' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are

you
missing an assembly reference?)

Source Error:
Line 2: <%@ Import Namespace="System.Runtime.Remoting" %>
Line 3: <%@ Import Namespace="System.Runtime.Remoting.Channels" %>
Line 4: <%@ Import Namespace="System.Runtime.Remoting.Channels.Http" %>
Line 5:
Line 6: <%@ Page Language="C#" AutoEventWireup="True" %>
Any ideas?
10x, Sharon.



Nov 18 '05 #5
Help :
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpgenref/html/cpconassembly.h
tm
<%@ Assembly Name="MyAssembly" %>

Or, you can use the web.config to add the directive as well.See MSDN for
more help.

--
Girish Bharadwaj
http://msmvps.com/gbvb
"amallik" <am*****@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
How do you add an "assembly reference" in a *.aspx file?
<%@ Assembly %> does not solve the problem.

"Shiva" wrote:
Hi,
Use the <%@ Assembly %> directive.

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
Hi Raghavendra and thanks for your reply.
How do i add a reference to aspx page.
I know how to do it with csc.exe, but this is a web page.
I'm not working with Visual Studio.
Thanks.

"Raghavendra T V" <ra*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi Sharon,

Make sure you have added reference to the System.Runtime.Remoting.dll.
If you have added and still getting this error i suggest you to remove the reference and then add it again.

Hope this helps you.

Thanks
Raghavendra

"Sharon Tal" <ta*******@hotmail.com> wrote in message
news:O%***************@TK2MSFTNGP09.phx.gbl...
> Compiler Error Message: CS0234: The type or namespace name 'Http' does
not
> exist in the class or namespace 'System.Runtime.Remoting.Channels'

(are you
> missing an assembly reference?)
>
> Source Error:
>
>
> Line 2: <%@ Import Namespace="System.Runtime.Remoting" %>
> Line 3: <%@ Import Namespace="System.Runtime.Remoting.Channels" %>
> Line 4: <%@ Import Namespace="System.Runtime.Remoting.Channels.Http" %> > Line 5:
> Line 6: <%@ Page Language="C#" AutoEventWireup="True" %>
>
>
> Any ideas?
> 10x, Sharon.
>
>


Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1718
by: Dirk | last post by:
Hello I use the #import directive to get the type information and smart pointers for a com object. To enable the event_receiver attribute on classes in the client I have to use the embedded_idl...
0
1410
by: autoEx | last post by:
I am using #import directive to import the excel library to make excel files but the excel object is not recognized by my application. Here is what I do: I have simple dialog based MFC application in...
5
1432
by: Jim Heavey | last post by:
Is the Page directive only go on ".aspx" pages? I think the answer is yes, but I am not positive. I am trying to figure out why a called class can not be found and I was wondering if I should...
1
1920
by: Jena | last post by:
Hi all, i've an example where in the page.aspx there are two strings like these: <% @Import Namespace="System.Data" %> <% @Import Namespace="System.Data.OleDb" %> in the page_load sub, using...
2
3369
by: s.hong | last post by:
Hello? On the ASP.NET, I can use the class by import declation on the top of page. <%@ page language="vb" explicit="true" aspcompat="false" debug="true"%> <%@ import namespace="System.Data" %>...
4
6076
by: Bruce W. Roeser | last post by:
All, I'm reading a book by Charles Petzold (Programming VS.Net). Pretty good content but am confused about the difference. From the text: ...
2
4050
by: Andy Fish | last post by:
Hi, I have a single-file aspx file (no codebehind). when I try to do this: <%@ Import Namespace="MySql.Data.MySqlClient" %> I get this: CS0246: The type or namespace name 'MySql' could...
11
2098
by: Mark | last post by:
Hello I made a site with validated XHTML and CSS. It works fine also. Only in IE i see the site build up without CSS (very fast though) and then the CSS is used to build the page. When i use...
1
1275
by: Johnson545236 | last post by:
I need some serious help. I'm extremely new to vs 2003 .net and I have to work with CRM, sigh. I am trying my first program and I get this error: Description: An error occurred during the...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.