473,385 Members | 1,661 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,385 software developers and data experts.

Add Reference

My first ASP.NET 2.0 app.

I added a reference to a class library containg the types I want to as a
source of data to populate my pages. The dll and all the dlls it uses appear
in the newly created bin folder.

I add the using directive to the page and try to call the type but I keep
getting an error that a type in one temporary folder conflicts with another
type in another tempory folder. The assemblies are not strongly named.

How are dlls added in 2.0? What am I doing wrong? I read the various FAQs to
no avail. Can anyone help. Thanks
Dec 13 '05 #1
1 1340
In article <58**********************************@microsoft.co m>,
Ro*********@discussions.microsoft.com says...
My first ASP.NET 2.0 app.

I added a reference to a class library containg the types I want to as a
source of data to populate my pages. The dll and all the dlls it uses appear
in the newly created bin folder.

I add the using directive to the page and try to call the type but I keep
getting an error that a type in one temporary folder conflicts with another
type in another tempory folder. The assemblies are not strongly named.

How are dlls added in 2.0? What am I doing wrong? I read the various FAQs to
no avail. Can anyone help. Thanks


Sorry to the group.

After another few hours of grief, I downloaded the PayPal-enabled eCommerce
Starter Kit End-To-End Sample at

http://www.commercestarterkit.org/

I found out that

1 - The page can't use the reference directly but...
2 - A page can talk to a class in the App_Code folder
3 - The class in the App_Code folder can use the added reference
4 - Life is good.

If anyone can explain why that is I would appreciate it. A different paradigm
for sure. The fact that there is no namespace in the page's code behind is
going to take some further time to understand/

As it's still early, I have put off buying a book. I'm looking for one that
focuses more on what is new in 2.0 under the hood. One that wasn't written in
the early beta stages. Any recommendations?

TIA

Robert Zurer
Dec 13 '05 #2

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

Similar topics

2
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on...
110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
11
by: Doug | last post by:
Is there any harm in passing an object into a method with the 'ref' keyword if the object is already a reference variable? If not, is there any benefit?
13
by: Abe Frohnman | last post by:
Hello all, I'm passing a reference to a class into the constructor of a form, like so: public MyForm(int count, ref Area myArea) {...} How can I use myArea outside the constructor? Should I...
4
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then...
13
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
51
by: Kuku | last post by:
What is the difference between a reference and a pointer?
27
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
41
by: Summercool | last post by:
Can we confirm the following? also someone said, Java also has "reference" like in C++, which is an "implicit pointer": Pointer and Reference --------------------- I am starting to see what...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.