Re: Add Reference

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In article <586F1D14-A8D1-4A8B-B470-61DE4A616532@xxxxxxxxxxxxx>,
RobertZurer@xxxxxxxxxxxxxxxxxxxxxxxxx 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
.



Relevant Pages

  • Subproject dependencies not included in build?
    ... I have a reference in Project A to Project B. Project B has references to a ... the dlls are copied to it's build folder. ... the dlls are not copied to Project A's build folder. ... target project to include all of the dependencies from it's referenced ...
    (microsoft.public.vstudio.development)
  • Re: Odd references problem
    ... I then created a folder 3rdParty with some 3rdPart-DLLs and added these DLLs as a reference to ProjektA. ...
    (microsoft.public.vstudio.general)
  • Re: Can any type of cleanup be done after installing Windows XP SP3?
    ... I've manually moved all these previous version DLLs with numbers after ... them to another temporary folder in case they are needed. ... a huge number of unique TMP Files, which I think are supposed to be ...
    (microsoft.public.windowsxp.general)
  • Re: How to stop updating DLLs?
    ... > Say I have four projects - one is an EXE and three are DLLs. ... Create a \lib folder as a sibling to your exe's .bin folder. ... ..DLL's there and use a binary reference instad of a project reference. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to build executables for .NET 1.1 on vs 2002
    ... I am using C# to I have tried to reference the DLLs in the 1.1 folder but it will crash as soon as I use any class that is not in the 1.0 example System.Windows.Forms.FolderBrowserDialog. ...
    (microsoft.public.dotnet.framework)