Last post Jul 18, 2006 07:22 AM by Wardy
May 19, 2006 06:10 AM|pradeepdhi|LINK
If someone can help me.
I have migrated my 2003 project to 2005, after resolving most of the errors, I have the below given error to resolve which i am find difficult to do.
Description : Could not load type 'ePosV2_Web.CustomerCode2Control'.
File : C:\Developement\eposV2_2\www.root.ePosV2\ePosV2Web\CustomerCode2Control.ascx
Line : 1
May 23, 2006 04:36 PM|JStell56|LINK
May 26, 2006 06:52 AM|Wardy|LINK
Check that "CustomerCode2Control" is in the "ePosV2_Web" namespace assuming this code worked previously there may be a call to parts of the framework in this class that are different or implemented differently so check the references in the class.
Also assuming the code is correct and that it is supported by asp.net 2.0 the virtual directory may need a copy of the compiled dll file in it for the web application.
When an asp.net application compiles its classes it sticks them in the bin folder in the root directory if you then create an active server page in a sub directory under the control of its own web.config file it may require its own copy of the bin directory
locally in other words you should copy the files so it goes something like this ....
According to the above arrangement the bin folder is not in the secure folder ... copying this directory may resolve the issue. Its to do with how the framework treats a config controlled directory as a separate application so the parent application for
some reason cant pass the data to it.
If anyone could explain why this is the case I would love to hear this ...
Email me : firstname.lastname@example.org
Jul 18, 2006 07:22 AM|Wardy|LINK
i solved this a while back in another thread but just noticed this unresolved thread ....
Any directory with a config file in it is considered a new application (i had a second config file for some reason)
this created a referencing problem for the classes required by the second application as i didnt add a web reference to the compiled dll of the other application to technically itself [*-)] yeh i thought that too.
simply put the problem i had was that i didnt realise i was referencing classes in another application even though the code was correct [cool]
i removed the extra config file and now use location tags in the config file in the applications root directory.