Re: The type or namespace name could not be found

Tech-Archive recommends: Fix windows errors by optimizing your registry



J,
I've been playing around a little with this and I think I follow. When
I click on the bin folder on the solution explorer, I can "Add
Reference". What dll should I be looking for? Should it be something
related to the namespace I declared?

The namespace was called "CampaignsTableAdapters"

Thanks,
V



vnc...@xxxxxxxxxxx wrote:
J,
Thanks,
I'm working on the files locally and then copying them to a remote
machine. I think I follow when you say "Add Reference". But this is
where I get a little lost. Is there something specific that I'm
supposed to be looking for in the "Add Reference".

Secondly, what files should be located in my bin directory.

Lastly, when you speak of dll's, are you referring to the dll's that I
would add under "Add Reference"?

Thanks,
V
jeff31162 wrote:
V
When you say you move this to remote machine, are you trying to develop
there, or just run it from there?

If no development environment then look into your bin directory on the
remote machine (after you have copied the project files there). Although this
component may have been "installed" on your local dev machine, when compiled
in VS I believe a dll for this object should have been placed in the bin dir.
Then when you copy it to the remote machine, it will be available.

If you have dev environment on remote then you can open project there and
add a reference to the component if it is installed on that machine. If it is
installed, it will show up in the list after clicking "Add Reference".

Hope something here helps
Jeff

"vncntj@xxxxxxxxxxx" wrote:

Thanks for your reply. I don't think its registered, but I'm not sure
how I can test to see if it is?


jeff31162 wrote:
If you can not pinpoint the error to a specific line in the code, I would
suggest looking in the "References" folder and see if there are any errors in
there. My guess is that perhaps a non Microsoft component is not being found
on the other machine. Is "CampaignsTableAdapters" installed and registered
on the remote server?

Jeff

"vncntj@xxxxxxxxxxx" wrote:

I've tested this project locally, by running it
http://localhost:1436/Data/gift.aspx and everything is perfect. But if
it onto the remote server I get "The type or namespace name could not
be found"


this is my gift.aspx.cs
***************************************
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CampaignsTableAdapters;


public partial class gift : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
tcampaignsTableAdapter campaignsAdapter = new
tcampaignsTableAdapter();
CampaignGI.DataSource = campaignsAdapter.GetCampaigns();
CampaignGI.DataBind();
}
}


this is my gift.aspx
*******************************************************
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gift.aspx.cs"
Inherits="gift" %>
<html>
<body>
<asp:DropDownList ID="CampaignGI" runat="Server"
DataTextField="Campaign" DataValueField="Campaign" />
</body>
</html>


I've read other post on the topic, but I don't understand compiling and
the dll approach to the solution

thanks in advance,
V





.



Relevant Pages

  • Re: The type or namespace name could not be found
    ... I think I follow when you say "Add Reference". ... what files should be located in my bin directory. ... When you say you move this to remote machine, ... Is "CampaignsTableAdapters" installed and registered ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Where to place class file
    ... It said you can place the compiled assembly in the bin folder, and other code anywhere in the Web application automatically references it. ... when I compile the component and add it to the bin directy and build the project it bombs out until I manually add the reference. ... Public Property ExportType() As AppType ... Now When I compile it and place the dll in the bin and remove the class file from the root it doesn't work until I also manually add a reference to it in References. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: File Location
    ... > onto a real web hosting company, so everything is all new to me. ... > is there someway to change my file location to be ... My project current has a reference to a module outside of the project. ... > Do I just move the corresponding .dll into the bin directory? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 1st hosting of objects, new(), etc.
    ... InitializeLifetimeService method on your remote object that should have ... > I'm less interested in either app hosting the object, as I am in having the> IIS application object holding a reference to a speedy/local/non-proxy> reference, and having any other> apps have proxies into the IIS-app-hosted object. ... > Or does it not make a difference when I call rWKST because on the server all> copies will be local -- e.g., there won't be a loopback socket that> eventually calls back into the same process. ... >> Register MyObject as a wellknown type ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: OT: why no file copy() libc/syscall ??
    ... where fd_in and fd_out reference ... abort would obviously usually result in a failure (thus a possible revert, ... If the remote server has enough data to perform the operation then it does ... don't support non-blocking call? ...
    (Linux-Kernel)