Add Reference

G

Guest

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
 
R

Robert Zurer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top