Ask a Question related to ASP.NET General, Design and Development.
-
Hitesh Khatri #1
Project Reference not working
Hi All,
I have web application project, to which I have added
project-reference to another class library.
When I am using one of the property from that class. I am
getting following error.
'Public Overridable Overloads Property PropName() As
Project1.PropName' is declared in project 'Project1.dll',
which is not referenced by project 'WebProject.dll'.
I don't want to add direct reference to the dll file, I
want to use project reference. I also tried using Import
statement in my module but It didn't help too.
Please suggest a solution.
Regards,
Hitesh
Hitesh Khatri Guest
-
Add Project Reference Dialog...
I've designed a web control in VS as an ASP C# control. I've created a new project and want to add a project reference from it to the C# control's... -
why does my webservice web reference not work in aspx project?!
Hi, I have a webservice on my local development box. I add a web reference in a web application to it. My reference usually comes up as... -
How to reference Word/Excel without using Visual Studio project
To create Excel file, you can Add Reference Visual Studio.NET, browse to ... and then select Microsoft.Office.Interop.Excel, etc. It endsup some... -
Can I add web reference to my VB.NET project at run time?
My project will be delivered to different sites therefore they will be referenced to the web services at their own web server. I don't want to... -
Working on an opensource project
Hey everyone, I'm starting a project for my current site http://metalempire.com called Empires; it's going to be a online RPG unlike all others... -
Natty Gur #2
Re: Project Reference not working
Hi,
If 'Project1.dll' is the class library assembly you must make reference
to it, otherwise .Net don’t know which assembly lo load.
If 'Project1.dll' isn’t the class library but it assembly that the class
library used then check if the property that you call return ant type
declare in the 'Project1.dll' assembly. If so you also must make
reference to it.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Hitesh Khatri #3
Re: Project Reference not working
Hi,
Thanks for responding to my question.
I am having one Web Project (VB.NET-WebProject.dll) and
one Class Library Project (VB.NET-Project1.dll) in my
Solution. In the Web Project, I have added 'Project
Reference' to the Class Library Project. The reference
property is also showing the correct path for the dll
(based on build config). Why .NET cannot load assembly
from that path.
You are suggesting that I must add direct reference to
Project1.dll and not 'Project Reference'. What is the use
of project reference?
I have different build config (Debug, Release etc.) setup
for my project. In case I add direct reference to the
dll, do I have to keep changing it when I switch the
build config? or should I just add reference to the dll in
the bin folder?
Thanks in advance for your help.
Regard,
Hitesh
Hitesh Khatri Guest
-
Natty Gur #4
Re: Project Reference not working
Hi,
No, What I meant is project reference. Any way if you reference the DLL>You are suggesting that I must add direct reference to Project1.dll and
>not
>'Project Reference'. What is the use of project reference?
but ASP.NET not seems to load it check if the Copy Local property of the
reference set to true. If not set it to true. This will end up with a
copy version of the DLL in the Bin directory of your web application.
.Net looks for reference assembly in GAC and if the assembly not found
in the GAC in the Bin directory of the loading application. If the
assembly not found in those locations the CLR raise error.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

