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

Declaring an ASP.NET assembly a friend

I'd like to declare the assembly containing my asp.net application to
be a friend of another assembly. In particular, I'm having trouble
figuring out how to pull this off in VS 2005. It looks like I can opt
to use fixed names for the assembly, but I'd like to hand specify the
name of the generated assembly. Does anyone know if this is possible?

Thanks!

Jan 26 '07 #1
2 1047
Use the Web Application Project model, not the Web Site Project model.
You'll get a single assembly for your entire ASP.NET web application, which
you control the name of, and it will reside in the /bin folder. That's
friendly!
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"dwelzel" wrote:
I'd like to declare the assembly containing my asp.net application to
be a friend of another assembly. In particular, I'm having trouble
figuring out how to pull this off in VS 2005. It looks like I can opt
to use fixed names for the assembly, but I'd like to hand specify the
name of the generated assembly. Does anyone know if this is possible?

Thanks!

Jan 27 '07 #2
Interesting, I see how this would do the trick. I realized I wasn't
specific enough when I said "asp.net application", I meant to say
asp.net web service. Will this solution still do the trick in the
case of a web service?

On Jan 26, 5:44 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Use the Web Application Project model, not the Web Site Project model.
You'll get a single assembly for your entire ASP.NET web application, which
you control the name of, and it will reside in the /bin folder. That's
friendly!
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"dwelzel" wrote:
I'd like to declare the assembly containing my asp.net application to
be afriendof another assembly. In particular, I'm having trouble
figuring out how to pull this off in VS 2005. It looks like I can opt
to use fixed names for the assembly, but I'd like to hand specify the
name of the generated assembly. Does anyone know if this is possible?
Thanks!- Hide quoted text -- Show quoted text -
Jan 28 '07 #3

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

Similar topics

2
by: KK | last post by:
Hi all Can anybody help me what's going wrong here and how to correct it. Code is as follows.... System::Object * GetObjectFromAssembly() { Assembly * pMyAssembly =...
1
by: Tony Johansson | last post by:
Hello experts! Assume I have this class definition of class ListElem. I'm a bit unsure how to interpret when you put friend declaration in public, protected and private section of a class...
2
by: Terry Holland | last post by:
I have a an assembly with the following code Module modEnums Public Enum enuFixType ftyButtSide 'jamb full height, header inside jambs ftyButtTop 'header full width, jambs butt up to...
12
by: TC | last post by:
I'm trying to figure out what the "Friend" keyword does. I know it specifies that "elements are accessible from within the same assembly", but that doesn't help because I don't know what an...
3
by: jbeteta | last post by:
Hello, I have a problem declaring variables. I need to create an object oRpte as ReportClass on WebForm1.aspx and be able to use its value on WebForm2.aspx. For declaring the property oRpte()...
2
by: rjjaw | last post by:
Here is what I have but it isn't working if someone could point me in the right direction I would greatly appreciate it. Try Dim objAssembly As Reflection.Assembly...
1
by: curious2007 | last post by:
Hello everybody, When I try to declare nontemplate friend functions I get the following warning: friend decleration......declares a non-template function (if this is not what you intended,...
2
by: Hicham Mouline | last post by:
Hello, I am attempting to change a existing large code base and I have this situation: A.hpp class A { .... friend void B::member_function1() const; ...
4
by: Fred Blair | last post by:
Where is the correct place to declare an array so that it will be available anywhere in the project. I have been playing with one form that has two buttons and one listbox. I want each button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.