|
|
|
|
|
|
Welcome to Module Masters support forums - the primary support mechanism for our products. Feel free to post your questions, and we will aim to respond in a timely manner. We also encourage our users to post any feedback you may have. You may also email us directly at service@modulemasters.com
| Author |
Messages |
|
dpijl10
Posts:11
 |
| 07/06/2010 05:45 |
|
Hi,
I have a problem upgrading a RS2005 (version 2.01) to the newest version 4.3.
Installed the module the usual way; changed the web.config accordingly (version 8.0.0.0 -> 9.0.0.0). The module now does not work anymore:
Fout: RS2005 is op dit moment niet beschikbaar.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BeckerSolutions.Modules.RS2005.ViewRS2005.ᣤ() at BeckerSolutions.Modules.RS2005.ViewRS2005.ᣦ() at BeckerSolutions.Modules.RS2005.ViewRS2005.ᣚ(Object ᙂ, EventArgs ᙄ) --- End of inner exception stack trace ---
This server is just a testserver, but I need this upgrade for our productionserver soon and I am worried this will happen there. The servers have many portals and I would like to preserve the settings. De-installing en re-installing will not be an option because all settings will be lost!
The server is Windows 2003 / IIS6 / DNN 4.8.2 / SQL 2005 (to be upgraded to SQL 2008).
Can it be that I am missing some support for SQl2008 in this configuration?
The module 2.01 was working fine before the upgrade.
Can you help me?
|
|
|
|
|
host
Posts:497
 |
| 07/06/2010 06:27 |
|
| It sounds like the DLL's maybe didn't get updated? Make sure you compare the web.config lines and that you have them exactly as they are mentioned now. Also, send the DNN event logs that go with the error as well. |
|
|
|
|
dpijl10
Posts:11
 |
| 07/09/2010 08:58 |
|
I've doublechecked the web.config and it's referring to version 9.
After the upgrade (which goes perfect without errors or warnings) I go to an existing web-page with a RS2005 component on it.
It displays the message:
Fout: RS2005 is op dit moment niet beschikbaar.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BeckerSolutions.Modules.RS2005.ViewRS2005.RecordInstall() at BeckerSolutions.Modules.RS2005.ViewRS2005.CheckStatus() at BeckerSolutions.Modules.RS2005.ViewRS2005.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Clicking the "Administration" I receive the message:
Er is een kritieke fout opgetreden.
Property accessor 'Password' on object 'BeckerSolutions.Modules.RS2005.RS2005Info' threw the following exception:'Object reference not set to an instance of an object.'
These are de EventLog-messages:
------------------------------------------------------------------------
ModuleId: 8457
ModuleDefId: 100
FriendlyName: RS2005
ModuleControlSource: DesktopModules/RS2005/ViewRS2005.ascx
AssemblyVersion: 04.08.02
PortalID: 234
PortalName: Batibouw Management 2010
UserID: 1
UserName: host
ActiveTabID: 6031
ActiveTabName: Home
RawURL: /Default.aspx?alias=vm-test002/batibouwmanagement2010
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://vm-test002/Host/Portals/tabid/17/portalid/86/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 5741a7c7-b88d-48e4-a655-ba2223efe057
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: BeckerSolutions.Modules.RS2005.ViewRS2005.RecordInstall
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BeckerSolutions.Modules.RS2005.ViewRS2005.RecordInstall() at BeckerSolutions.Modules.RS2005.ViewRS2005.CheckStatus() at BeckerSolutions.Modules.RS2005.ViewRS2005.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Naam: VM-TEST002
------------------------------------------------------------------------
AssemblyVersion: 04.08.02
PortalID: 234
PortalName: Batibouw Management 2010
UserID: 1
UserName: host
ActiveTabID: 6031
ActiveTabName: Home
RawURL: /batibouwmanagement2010/Home/tabid/6031/ctl/Servers/mid/8457/language/nl-NL/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: bd3f85f7-30c3-4801-b88b-b337fa050c72
InnerException: Property accessor 'Password' on object 'BeckerSolutions.Modules.RS2005.RS2005Info' threw the following exception:'Object reference not set to an instance of an object.'
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: BeckerSolutions.Modules.RS2005.RS2005Info.get_Password
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Property accessor 'Password' on object 'BeckerSolutions.Modules.RS2005.RS2005Info' threw the following exception:'Object reference not set to an instance of an object.' ---> System.Reflection.TargetInvocationException: Property accessor 'Password' on object 'BeckerSolutions.Modules.RS2005.RS2005Info' threw the following exception:'Object reference not set to an instance of an object.' ---> System.NullReferenceException: Object reference not set to an instance of an object. at BeckerSolutions.Modules.RS2005.RS2005Info.get_Password() --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) at System.Web.UI.DataBinder.Eval(Object container, String expression) at ASP.desktopmodules_rs2005_serveradmin_ascx.__DataBinding__control51(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at BeckerSolutions.Modules.RS2005.DesktopModules_RS2005_ServerAdmin.BindData() at BeckerSolutions.Modules.RS2005.DesktopModules_RS2005_ServerAdmin.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Naam: VM-TEST002
------------------------------------------------------------------------
Hope you can help us with it.
|
|
|
|
|
host
Posts:497
 |
| 07/12/2010 07:39 |
|
| When you go to server administration, do you see the report server you had setup previously? If so, please try to reset the password. New in version 4.x was encryption of the password, although we have not ever seen any error message similar to what your seeing here, it is expected that the credentials will not be valid until the password is reset upon upgrading to 4.x from prior versions. How many instances of the module do you have on your site? |
|
|
|
|
dpijl10
Posts:11
 |
| 07/12/2010 08:15 |
|
No, when choosing the Administration I get the "Er is een kritieke fout opgetreden." We don't see the table of "servers". If you mean by "instances" the number of modules placed on pages: 450 on production server 1 and 380 on production 2. It would be annoying to restore them manually... |
|
|
|
|
host
Posts:497
 |
| 07/12/2010 08:23 |
|
| Wow, that would be a pain, let me attempt to replicate this issue. You are on DNN 4.8.2 upgrading 2.1 to 4.3 correct? |
|
|
|
|
dpijl10
Posts:11
 |
| 07/12/2010 08:26 |
|
| Yes, correct. |
|
|
|
|
host
Posts:497
 |
| 07/12/2010 09:31 |
|
| Sounds good, will test this when we get time to provision an environment, will report our findings. |
|
|
|
|
dpijl10
Posts:11
 |
| 07/12/2010 09:35 |
|
| Thanks, when you need more info, let me know! |
|
|
|
|
host
Posts:497
 |
| 07/14/2010 09:03 |
|
Ok, I setup an environment with 2.1 of the module and set it up using SQL RS 2005 and plopped an instance on the portal allowing user to select a report. I then performed the upgrade following these steps: 1) Install the new version of the module 4.3 into the portal 2) Updated the web.config to update the handler version (note if on 4.8 and above with IIS 7, you'd need to add the additional handler line) 3) Restarted IIS 4) Cleared browser cache 5) On a new page, plopped a new instance of the module on the page and activated it 6) In the server administration on this new instance of the module, for the existing server I updated the password since it is now encrypted and updated, then tested the connection, all was well. 7) Setup the new instance of the module to verify connectivity and display of reports. 8) Opened the existing page with the previous module, verified it displayed listing of reports. All was well here and I did not experience any issues. I guess what I recommend is on your test server, can you repeat your steps doing exactly as I have done here. My DNN version was slightly different as I was on 4.9.1, but still, this should not matter. I was on IIS 6, SQL 2005 / RS 2005. |
|
|
|
|
dpijl10
Posts:11
 |
| 07/16/2010 08:16 |
|
Reverted the setup (handy VM's) to the previous version of 2.1 (Windows 2003, SQL 2005, IIS 6, RS 2005). Created a clean portal in en_US mode. Created a clean page "Report", dropped a RS2005 module (2.1) onto it. Added a server in administration, added a report, successful and I have a report. -- Moduledefs: Install 4.3, No Errors, Module is now named 'Reporting Services' Checked the "Report" page -> 2 Errors: (1 RS2005 unavailable, 1 Error loading module), ok changing web.config It's IIS6, so only changed the httpHandlers section. IIS7 section has no reference to the module. Restarted IIS (iisreset), Cleared cache (IE8) Created new page "Report2", dropped module on it an receive 2 Errors 1) RS2005 is currently Unavailable at ViewRS2005.RecordInstall() 2) Reporting is currently Unavailable at ViewRS2005.RecordInstall() Cannot activate. Trying to enter Administration: receive 3rd error: A critical error has occurred. Property accessor 'Password' on object 'BeckerSolutions.Modules.RS2005.RS2005Info' threw the following exception:'Object reference not set to an instance of an object.' So I'm al little stuck right now. , Updated the web.config to reference the version 9 component. |
|
|
|
|
host
Posts:497
 |
| 07/19/2010 22:47 |
|
| Well, I tested this out on 4.8.2 DNN and it worked like a charm. We may have to do a web session to explore this further, it is something specific to your environment, get your test VM to a state where it is ready to do the upgrade and we can test it out, send an email to service@modulemasters.com |
|
|
|
|
dpijl10
Posts:11
 |
| 08/09/2010 03:32 |
|
You've triggerd me with that last remark "environment specific". More than a year ago a former colleguea deleted portal-0 on our test-server. We had re-created it, with the only side-effect that it had portal id 86 in stead of 0. This had not bitten us for more than a year until now! I've created another portal and hacked the database to have this portal with ID 0.
Guess what: Error message disappeared! Your code depends apparently heavily on the default portal being portalID 0! Now I can test the upgrade procedure with more confidence.
The only thing still is that after the upgrade I've got 2 moduledefs (RS2005 and Reporting Services), which gives no issue after the upgrade until you place a new module on a page. This results in having 2 modules in stead of 1! Fixed that by removing the excess reference by hand (and re-assigning existing rs2005 references to the new id).
|
|
|
|
|
host
Posts:497
 |
| 08/10/2010 09:33 |
|
| This is correct, good job catching this one. This has never been an issue since there is always a default portal 0 and we have some cross portal items that we made the decision to tie to the default since it is always a given..except if someone blows it away! |
|
|
|
|
pmichael
Posts:3
 |
| 02/05/2011 15:52 |
|
| I don't have a portal with a portalid of 0 ... as a result of splitting out portals to separate installs. Not extremely interested in hacking about to recreate it in the install. No alternatives if I am to use this module?
|
|
|
|
|
host
Posts:497
 |
| 02/08/2011 03:47 |
|
| Pmichael, I responded via email. |
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|
|
|
|
|
|
|
|
|