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

problem with web site and custom project configurations

Hi everybody,

I've got a solution that has several dll projects and a website.
For the dll projects I've add a configuration 'debug - no code analysis'.

Now for the website I can't create custom configurations...

The fact that I can't create different configuration for running with code
analysis and without code analysis is irritating, but I could live with it.

the problem is this:

Because the web site is in configuration DEBUG it copies the dlls it depends
on from the DEBUG directory of the dll projects, EVEN if the projects are
configured as 'debug - no code analysis' during the solution build!

This means that if the changes I made to the dll projects since the last
time I compiled the debug configuration did not change the public interface
of the dlls (i.e. didn't change the functions the web site are using) then
the web site will compile and run using the OLD dlls and NOT the dlls I just
compiled!
If on the other hand the public interface of the dlls has changed, then I
will get strange errors that the web site can't find functions that DO exist
in the source code.

And the only way I can see to fix it is to recompile the solution in debug
mode...

And another thing:
Why is a failure to find a dll a warning and not an error?

I compile the web site, the web site tries to get a dll that was not
compiled because of the configuration mismatch.
I get a warning:
MSBUILD : warning MSB3021: Unable to copy file
"D:\BacSoft\Client\WebClientLogic\bin\Debug\WebCli entLogic.dll" to
"D:\BacSoft\Client\WebClient\Bin\WebClientLogic.dl l". Could not find file
'D:\BacSoft\Client\WebClientLogic\bin\Debug\WebCli entLogic.dll'.

And then the compilation just goes on as usual...
(including the website deploy and the website setup projects afterwards).

This does not make sense to me.

Thanks,
Nadav
Feb 13 '07 #1
1 1512
Hello Nadav,

As for the ASP.NET 2.0 Web site project, since it by default use complete
dynamic compilation, there is no precompiled output assembly at development
time(in IDE), this is different from ASP.NET 1.x. And for its dynamic
compiled ans generated assemblies, the debug/release attribute is
determined by the <compilation debug="true/false" /element in web.config
file.

#Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/Blogs/scott/arc...1/15/2464.aspx

Currently, according to this behavior, the ASP.NET dev team has provided
two add-on projects

"Web Deployment Project" and "Web application Project"

Web deployment project provide you more convenient features for precompile
ASP.NET 2.0 web application:

#VS 2005 Web Deployment Projects
http://weblogs.asp.net/scottgu/archi...06/429723.aspx

You need to download it individually and install it.

Web Applciation project provide you a VS 2003/ASP.NET 1.X like project
model for developing ASP.NET 2.0 application, you'll get it after you
install the visual studio 2005 SP1.

Both of the two projects can be configured as "Debug" or "release" (or
other configuration as you've added in the solution's build configuration).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Feb 14 '07 #2

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

Similar topics

1
by: J. van Herten | last post by:
I want to use Custom constants to set several directives to use in the application. To do so I can use the Custom constants in the Build of the Configuration Properties. The settings I want is...
2
by: Kevin McNeish [C# MVP] | last post by:
Does anyone know how to set the project constants property for "All Configurations" programmatically? The following code does this by setting each project individually: foreach...
15
by: Ken Allen | last post by:
I have been developing a suite of assemblies over the past couple of weeks, and this afternoon somethign started misbehaving. If I do not run the IDE and compiler the code from the command line,...
4
by: Grind Boy | last post by:
Hi, I'm writing this off the top of my head as I don't have the exact information to hand. We are attempting to set up a secure internet site using ASP.NET on IIS5. We are having some...
6
by: Alexander Widera | last post by:
hi, is it possible to place my .dll -files instead of in the bin dir of the website in an other directory somewhere on my computer? the assemblies should be loaded automatically. I want to...
3
by: Mr Newbie | last post by:
I'm testing error handling configurations and having some trouble. I created a WebForm called. ErrDefault.aspx and I am trying to use the Page error attribute to force the redirection to a custom...
0
by: Dmitrii | last post by:
My C# project has 4-configuration: Debug, Release, DebugPlus, and ReleasePlus. In each of these configurations the C# program should consume (be "linked" to) a different Assembly.dll build...
1
by: fniles | last post by:
I just got a new machine and installed .NET 2005. In VB.NET 2005 in the old machine, under "Project" - "properties", in the "Compile" tab, I can see "Configuration" and "Platform" combo box with...
0
by: thomas.santos | last post by:
Hi, I've been trying to add a script to create a custom C++ file type to visual studio 2005 with limited success. I can get the file created and added to a project, however, I need to add a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.