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. 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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.
...
|
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...
|
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)
{
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
|
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,...
| |