I have a DNN website built on
04.09.04 that has been up and running for over a year with current setup.
I develop on a local site that is a duplicate of the live server.
I am developing a Report module using the MS ReportViewer control, have gotten it working (with some unresolved issues that need to be resolved such as a
conflict between the script control and DNN'S script control) so I can produce multiple reports from my DataBase as expected.
The site has 2 portals the main site is used for modules that allow set up and maintenance for the application and the sub portal is used only for punching in to the application and contains 2 modules a custom login module and the punch in module.
The report module is on the main portal.
The problem is when I recompile the report module(for the main Portal) the Punchin module(on the sub Portal) does not work correctly. I get the following error when accessing data via the DNN DAL (so my dropdown objects are not populated with the data):
System.Reflection.TargetException was caught
Message="Object does not match target type."
Source="mscorlib"
StackTrace:
at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at DotNetNuke.Common.Utilities.CBO.HydrateObject(Object objObject, IDataReader dr)
at DotNetNuke.Common.Utilities.CBO.CreateObject(Type objType, IDataReader dr)
at DotNetNuke.Common.Utilities.CBO.FillObject(IDataReader dr, Type objType, Boolean ManageDataReader)
at DotNetNuke.Common.Utilities.CBO.FillObject(IDataReader dr, Type objType)
at TripleTrace.Modules.TTSTimeClock.TTSTimeClockController.TTS_DivisionsGet(String bureauID, String companyID, String divisionID) in C:\Inetpub\wwwroot\TTSTimeClock\httpdocs\DesktopModules\TTSTimeClock\Components\TTSTimeClockController.vb:line 75
at TripleTrace.Modules.TTSTimeClock.ViewTTSTimeClock.ManageDivisions(String& tZone, String& divisionName) in C:\Inetpub\wwwroot\TTSTimeClock\httpdocs\DesktopModules\TTSTimeClock\ViewTTSTimeClock.ascx.vb:line 2369
When I recompile the PunchIn Module(for the subPortal) I get the following error on the main portal when accessing the Report Module:
System.Reflection.TargetException was caught
Message="Object does not match target type."
Source="mscorlib"
StackTrace:
at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at DotNetNuke.Common.Utilities.CBO.HydrateObject(Object objObject, IDataReader dr)
at DotNetNuke.Common.Utilities.CBO.CreateObject(Type objType, IDataReader dr)
at DotNetNuke.Common.Utilities.CBO.FillCollection(IDataReader dr, Type objType)
at TripleTrace.Modules.TTSTimeClock_Reports.TimeClock_Controller.TTS_DivisionsList(String bureauID, String companyID) in C:\Inetpub\wwwroot\TTSTimeClock\httpdocs\DesktopModules\TTSTimeClock_Reports\Components\TimeClock_Controller.vb:line 117
at TripleTrace.Modules.TTSTimeClock_Reports.ViewTTSTimeClock_Reports.FillDivisionCombo() in C:\Inetpub\wwwroot\TTSTimeClock\httpdocs\DesktopModules\TTSTimeClock_Reports\ViewTTSTimeClock_Reports.ascx.vb:line 725
Again If I recompile the Report module it will then work but the punchIn module will not.
I can also achieve the exact same results by restarting the application in whichever portal is having the problem rather than recompiling.
Some things I have checked:
- I do not see anything that is shared between the 2 modules.
- I checked the definitions to the modules and they do not point to the other modules forms.
- There is no Setting or Edit forms for the Report module but there are for the PunchIn Module
- I removed the script control from My report module (so now I can not see the reports in the viewer but the rest of the form functions correctly) so there is no conflict with that control for now.
- The results of all these actions are the same on the live and development machines.
- There are other modules that use the exact same code within the individual modules that are working fin and do not conflict when compiled or if the application is restarted.
I am obviously stumped and development has come to a halt on this. I would appreciate any assistance at all in correcting this problem.
Thanks in advance!