473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Add reference question

Hi
My project is a web project using c# with code behind.(vs.net)
I'm developing on my local machine and then install it on the remote server.
I created a class library named 'DataLibrary' with the database connection
definitions and "added reference" from my project.

On the local machine it works just fine, but when I install it on the remote
server I get an error saying:
CS0246: The type or namespace name 'DataLibrary' could not be found (are you
missing a using directive or an assembly reference?)

little code:
Line 1: using System;
Line 2: using System.Collections;
Line 3: using System.ComponentModel;
Line 4: using System.Web;
Line 5: using System.Web.SessionState;
Line 6: using DataLibrary;
Line 7: using GlobalFunctions;
I tried to copy the DLL itself to the server but it didn't help.
Can someone help with that?
Thanks
Nov 15 '05 #1
3 2143
Have you copied your assembly into your web application's bin directory?

Cheers,
Wim Hollebrandse
http://www.wimdows.com
http://www.wimdows.net

"Verdict" <ra*@chatroomusa.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
Hi
My project is a web project using c# with code behind.(vs.net)
I'm developing on my local machine and then install it on the remote server. I created a class library named 'DataLibrary' with the database connection definitions and "added reference" from my project.

On the local machine it works just fine, but when I install it on the remote server I get an error saying:
CS0246: The type or namespace name 'DataLibrary' could not be found (are you missing a using directive or an assembly reference?)

little code:
Line 1: using System;
Line 2: using System.Collections;
Line 3: using System.ComponentModel;
Line 4: using System.Web;
Line 5: using System.Web.SessionState;
Line 6: using DataLibrary;
Line 7: using GlobalFunctions;
I tried to copy the DLL itself to the server but it didn't help.
Can someone help with that?
Thanks

Nov 15 '05 #2
No, how would I do that?

"Wim Hollebrandse" <wimATwimdows.com> wrote in message
news:Oh****************@TK2MSFTNGP10.phx.gbl...
Have you copied your assembly into your web application's bin directory?

Cheers,
Wim Hollebrandse
http://www.wimdows.com
http://www.wimdows.net

"Verdict" <ra*@chatroomusa.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
Hi
My project is a web project using c# with code behind.(vs.net)
I'm developing on my local machine and then install it on the remote

server.
I created a class library named 'DataLibrary' with the database

connection
definitions and "added reference" from my project.

On the local machine it works just fine, but when I install it on the

remote
server I get an error saying:
CS0246: The type or namespace name 'DataLibrary' could not be found (are

you
missing a using directive or an assembly reference?)

little code:
Line 1: using System;
Line 2: using System.Collections;
Line 3: using System.ComponentModel;
Line 4: using System.Web;
Line 5: using System.Web.SessionState;
Line 6: using DataLibrary;
Line 7: using GlobalFunctions;
I tried to copy the DLL itself to the server but it didn't help.
Can someone help with that?
Thanks


Nov 15 '05 #3
Just the assembly (DataLibrary.dll) should be sufficient.

Ah well - it works. ;-)

Cheers,
Wim Hollebrandse
http://www.wimdows.com
http://www.wimdows.net

"Verdict" <ra*@chatroomusa.com> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...
Ok, got you!
I copied the AssemblyInfo.cs to the bin on the server and it works!
Thanks

"Verdict" <ra*@chatroomusa.com> wrote in message
news:ed**************@TK2MSFTNGP12.phx.gbl...
No, how would I do that?

"Wim Hollebrandse" <wimATwimdows.com> wrote in message
news:Oh****************@TK2MSFTNGP10.phx.gbl...
Have you copied your assembly into your web application's bin directory?
Cheers,
Wim Hollebrandse
http://www.wimdows.com
http://www.wimdows.net

"Verdict" <ra*@chatroomusa.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
> Hi
> My project is a web project using c# with code behind.(vs.net)
> I'm developing on my local machine and then install it on the remote
server.
> I created a class library named 'DataLibrary' with the database
connection
> definitions and "added reference" from my project.
>
> On the local machine it works just fine, but when I install it on the remote
> server I get an error saying:
> CS0246: The type or namespace name 'DataLibrary' could not be found (are you
> missing a using directive or an assembly reference?)
>
> little code:
> Line 1: using System;
> Line 2: using System.Collections;
> Line 3: using System.ComponentModel;
> Line 4: using System.Web;
> Line 5: using System.Web.SessionState;
> Line 6: using DataLibrary;
> Line 7: using GlobalFunctions;
>
>
> I tried to copy the DLL itself to the server but it didn't help.
> Can someone help with that?
> Thanks
>
>



Nov 15 '05 #4

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

Similar topics

4
by: Amr Mostafa | last post by:
Hello :) I'm trying to write a script that deals with a web service. I'm using NuSoap class. my question is : Can I pass some variables By Reference to the web service and get the result back...
6
by: Chris S. | last post by:
I'm trying to make a graphical editor and browser for Pickled files. One aspect I'm not sure about is how to detect multiple references to the same data. For instance, say I had the Pickled...
1
by: Tony Johansson | last post by:
Hello Experts! I reading a book called programming with design pattern revealed by Tomasz Muldner and here I read something that I don't understand completely. It says "A garbarage...
1
by: Tony Johansson | last post by:
Hello Experts! I reading a book called programming with design pattern revealed by Tomasz Muldner and here I read something that I don't understand completely. It says "A garbarage...
6
by: Lenn | last post by:
Hi, Could someone clarify my confusion regarding passing reference types to a method with ref keyword and explain when it's practical to use it. It's my understanding that in .NET reference...
9
by: ziman137 | last post by:
Hi all, The results from following codes got me a bit confused. #include <stdio.h> #include <iostream> using namespace std; struct A {
1
by: Michel Couche | last post by:
Hello, I am starting the development of a newsletter The use of the class MailMessage of System.Net.Mail is quite straightforward for usual contact forms but my question here is "How can I...
3
by: pleaseexplaintome_2 | last post by:
using the code below (some parts not included), I create a new excel workbook with spreadheets. I then want to delete a spreadsheet, but a reference remains open and excel stays in task manager...
68
by: Jim Langston | last post by:
I remember there was a thread a while back that was talking about using the return value of a function as a reference where I had thought the reference would become invalidated because it was a...
12
by: Bryan Parkoff | last post by:
I write my large project in C++ source code. My C++ source code contains approximate four thousand small functions. Most of them are inline. I define variables and functions in the global scope....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...

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.