WTCRM.Settings. DBDataStore is a class in a main site deployed including
everything in the same assmebly
Address_Manager project is an external module that uses WTCRM as a
reference.
Address_Manager contains classes derived from DBDataStore.
The deploy project for AddressManager is trying to load DBDataStore from its
own App_Code assembly and not from WTCRM, and I get error:
Error 1 Could not load type 'WTCRM.Settings .DBDataStore' from assembly
'App_Code, Version=1.0.0.3 7368, Culture=neutral , PublicKeyToken= null'.
ASPNETCOMPILER 1 1 AddressManager_ deploy
seems like a bug no ?
CS 5 1717
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?
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, I'm afraid this could cause error behavior. As for our
ASP.NET web application, all the types get compiled in this project should
not be referenced by other external library, at least a web project(or
winform project) is not good one for defining reusable types. If there is
such types in your web application, I would recommend you separate them
into external class library project and reference them in your web project.
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.)
Hello Steven,
Thanks for answer, my comments under your text
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> a écrit dans le message
de news: Qt************* @TK2MSFTNGXA01. phx.gbl... 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.)
Thanks for your response CS,
So I've got that you actually first use web deployment project to
precompile the ASP.NET 2.0 web application(int o single assembly) ----
WTCRM.dll. Then creating another reusable module which reference the
WTCRM.dll. I'm afraid this is the potential cause since webdeployment
project did help us generate a single precompiled assembly for ASP.NET 2.0
project, however, the generated assembly contains all the classes which is
finally used by the ASP.NET runtime to avoid additional dynamic
compilation. Such precompiled assembly is certainly not recommended to be
used as other module or application's reference... Would you consider
pre-separate such class(in the web application) which may be further
referenced by other module into a class library project?
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.)
I will take a look to this approach, but it will not be easy. In fact I just
need classes that are in the App_Code of WTCRM. If I would separate
something in different assemblies, it would be App_Code....
Sorry to repeat but this was working easilly in 1.1
CS
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> a écrit dans le message
de news: sa************* *@TK2MSFTNGXA01 .phx.gbl... Thanks for your response CS,
So I've got that you actually first use web deployment project to precompile the ASP.NET 2.0 web application(int o single assembly) ---- WTCRM.dll. Then creating another reusable module which reference the WTCRM.dll. I'm afraid this is the potential cause since webdeployment project did help us generate a single precompiled assembly for ASP.NET 2.0 project, however, the generated assembly contains all the classes which is finally used by the ASP.NET runtime to avoid additional dynamic compilation. Such precompiled assembly is certainly not recommended to be used as other module or application's reference... Would you consider pre-separate such class(in the web application) which may be further referenced by other module into a class library project?
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.)
Thanks for your response CS,
Yes, I understood your pain on this. However, I would still recommend you
try your best to change the project or solution's class isolation strategy
according to the new ASP.NET 2.0 compilation model.
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.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sunil Sabir |
last post by:
Dear All,
I am trying to Deploy ASP.net application on the remote server. I am
trying to deploy it by WebSetup project. I have only installed .Net Framework
on the server. I am geting the following error:
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could,...
|
by: james margey |
last post by:
Hi to all,
I have spent 3 days at this error and i have two days to go for a
deadline, and i am about to go off my nut, the reason being: Microsoft
dont seem to be able to provide a solution, I have trawled the web and
the few that have the same error have not being provided a fix. This
error occurs if i make the slightest change in my project. If i
REBUILD my project no error occurs. So i keep having to rebuild my
project - this is not...
|
by: scottrm |
last post by:
We have two developers, call them A and B, (on Windows XP) developing a
number of asp.net web sites on a shared server (Windows 2003). Everything has
been ok but recently for no apparent reason whenever developer A builds a
particular project (which builds with no errors) and then tries to access the
web site they just built they get the error below. Other projects built by
the developer A are ok and also if the other developer, developer...
|
by: Nalaka |
last post by:
Hi,
I am testing with Visual studio 2005, web projects.
Situation:
I have one solution with two web projects, created as file system projects.
(I am tesing using the built in server, not IIS)
First project is a webService.
Second consumes the webservices by the first.
|
by: Nils Hedström |
last post by:
I have a ASP.NET 1.1 project that I want to be able to deploy on my web-servers
while they have real traffic (40 requests/second).
When I copy the projects assembly in the bin-directory of the website directory
the application gets restarted and the web server needs to recompile all
my aspx-pages. Because the traffic is high the web server needs to recompile
a lot of aspx-pages at the same time.
Because of this alot of requests gets...
| |
by: alan |
last post by:
I've try to deploy my application by using Setup Wizard. But after I
build the setup application, it got a error said "unrecoverable
error!". I don't know what's the problem. In order to the what problem
is it, I open a new project and just use one form, use one text box
and one button and try to deploy by setup wizard. Finally it also said
"unrecoverable error!".
What's wrong with it? It's just a simple application, why it got this...
|
by: robgallen |
last post by:
I'm having a wierd issue trying to launch a robocopy process via a web
form. To cut a long story short, it works fine when I run it from the
server it is hosted on, but when I access the site from my own machine,
I get access denied errors.
Example on server 'wwwdeploy':
http://localhost/Deploy/default.aspx effectively runs this command:
robocopy \\wwwdeploy\wwwroot$\project\subfolder
\\wwwtest\drop\project\subfolder /S /Z
|
by: techieman |
last post by:
My application is a .NET web application consisting of 8 library projects in C#.Net, 2 windows based projects in VB.Net and 1 web project in C#.Net. It also uses some DLLs related to microsoft application blocks and sharepoint. 1 DLL of PDS Extender is also used as my project is an Enterprise Management Project (customization of Microsoft Project Web Access). For deploying the web application I have created a Web setup deployment (Built in...
|
by: Mircea Pleteriu |
last post by:
Hi,
I have developed a a web application with ASP.NET 2.0 and VS 2005.
My client wants to be delivered a .msi file that installs the app. My big
problem is that the .msi also deploys the source code files which I strongly
don't want to happen.
How to create a setup project that does not include the source files but
only the aspx, config and some binaries (as it was with VS 2003 setup
projects)?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |