Re: Error in deploy project

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello Steven,
Thanks for answer, my comments under your text
"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> a écrit dans le message
de news: QttiaxYeGHA.188@xxxxxxxxxxxxxxxxxxxxxxxx
Hi CS,

Thank you for posting.

From your description, you've developed an ASP.NET 2.0 web application
which references and uses some external assemblies. However, after you
precompiled the web application and try running it, you're getting "could
not load type..." exception on a certain type, correct?

No that's not the schema:

I have a web site , lets name it WTCRM, this web site is made using the
webdeployment project with option
"Merge all pages and controls into a single assembly", name is WTCRM.dll

Now I want to create a loadable module, just like Dotnetnuke or rainbow
modules.
This kind of module uses a reference from the WTCRM.dll to inherit from
classes it contains.
The process was very easy in .net 1.1.

It is when I try to 'webdeploy' my module that I get the error message, not
in run time, in 'deploy time'.
the deploy process is searchin in the module App_Code for a base class
where it should look in the WTCRM.dll.



As for the precompilation on the application, are you using the
WebDeployment Project? Also, based on the class/library info you
mentioned,
it seems that the external library(also referenced by your web
application?) also reference a certain class in your web application? If
this is the case,

This is not the case, schema is:
WTCRM.dll contains class A
module contains class B which inherits from A
this is working for all .net System.xxx namespaces, why not there ?
and again it was working in 1.1

such types in your web application, I would recommend you separate them
into external class library project and reference them in your web
project.

My main assembly, the core engine, would be jeopardized in many assemblies:
not easy when you want to sell a product.
My question is now: how to do with .NET 2 what 1.1 was doing easily without
problems ???

Thanks for your suggestions and time
CS





Regards,

Steven Cheng
Microsoft Online Community Support


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

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

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


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



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




.



Relevant Pages

  • RE: web.config required elements
    ... If you haven't used any LINQ feature, ... If you want to get the usage of each of those assemblies, ... correctly(with the current assembly reference list) is perform a ... "precompilation" on your web application. ...
    (microsoft.public.dotnet.general)
  • RE: Office PIA:s. Can they be made to work properly?
    ... I found the only way to reference a version prior to the one on the build ... > b) Build+Run successful, ... > WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# Plugin system - same interface in two different assemblies...
    ... "add a reference to the appropriate assemblies to each and every project"? ... You don't have each plugin project deciding what ... its idea of the interface is. ... can't by forcing people to include them in assemblies as I've explained. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VS 2005: multiple dlls for one website possible?
    ... >and shouldn't reference and web project assemblies. ... it calls the classes in the web app. ... and the custom control ...
    (microsoft.public.dotnet.framework.aspnet)