473,395 Members | 2,467 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.

2.0 woes

I'm trying, I really am. But the changes made in 2.0 are breaking me.
Apparently all my app_code class methods have to be public. Internal methods
can't be accessed by code on a page. Nope, not possible. I mark a method in
a helper class as internal and it becomes inaccessible to the code in my main
page's codebehind file. Okay, 2.0 is doing some freaky-ass individually
compiled file nonsense now, so I'll just find the filename of the page's
codebehind dll and then add an InternalsVisibleTo attribute to my app_code
class. I'm using fixed naming, so the name should remain the same. Nope,
doesn't work. It may work after you publish the website, but it doesn't
while debugging. I won't know because I can't tell the compiler to define
DEBUG so I can switch between the two depending on my build type, and I've
wasted enough time trying to get this to work to start using msbuild at the
command line. Spectacular.
Apr 17 '06 #1
1 887
Yes, because App_Code gets bilt into its own assembly and pages etc into
their own. If you declare a base class for pages etc into App_Code, then it
would be possible.

In case that brings you unbearable issues, you can start using Web
Application project model (http://webproject.scottgu.com) which works very
similarly like things worked under VS2003.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"William Sullivan" <Wi*************@discussions.microsoft.com> wrote in
message news:E5**********************************@microsof t.com...
I'm trying, I really am. But the changes made in 2.0 are breaking me.
Apparently all my app_code class methods have to be public. Internal
methods
can't be accessed by code on a page. Nope, not possible. I mark a method
in
a helper class as internal and it becomes inaccessible to the code in my
main
page's codebehind file. Okay, 2.0 is doing some freaky-ass individually
compiled file nonsense now, so I'll just find the filename of the page's
codebehind dll and then add an InternalsVisibleTo attribute to my app_code
class. I'm using fixed naming, so the name should remain the same. Nope,
doesn't work. It may work after you publish the website, but it doesn't
while debugging. I won't know because I can't tell the compiler to define
DEBUG so I can switch between the two depending on my build type, and I've
wasted enough time trying to get this to work to start using msbuild at
the
command line. Spectacular.

Apr 17 '06 #2

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

Similar topics

2
by: Martin the Mac Addict | last post by:
Good evening to the skilled Ladies and Gentlemen of the PHP world. I am fairly new to all of this but learning quickly. I have run in to a need to remove blank lines from a form submission after...
7
by: Mark | last post by:
O, woe is me, to have seen what I have seen, see what I see! (That's Shakespeare for those who were wondering what I'm on about) I am "having fun" with cookies. And I wonder if I have...
0
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
3
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
2
by: Andrew Thompson | last post by:
- NN 4.78 rendering woes, links at far left - I am trying to rework an old site, make it valid html and css, improving the x-browser and 'older browser' compatibility. My efforts so far, have...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
9
by: Mark Rae | last post by:
Hi, This time, I'm looking for a regular expression which says "the string must contain exactly seven or exactly eight digits" e.g. 123456 fails 1234567 passes 12345678 passes 123456789...
1
by: hdogg | last post by:
Scope Woes - IF statement nested in WHILE statement -PHP I have an array $actuals_sum. <?php while(conditions) { if($i == '24) {
4
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a...
1
by: Mike Howarth | last post by:
I've been having a few problems with connecting to SQL Server, initially I was using dblib however found some problems with returning text fields whereby all text fields were ignored and it bawked...
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: 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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.