Problem with hosting webservice on IIS that uses manager  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Problem with hosting webservice on IIS that uses manager

Postby perry » Thu Apr 27, 2023 12:10 pm

Hi All,

I have upgraded a web service from 7.0.x to 7.2.1 and now getting this error
Code: Select all
Message: request: System.NullReferenceException: Object reference not set to an instance of an object.
   at JiwaFinancials.Jiwa.JiwaApplication.ConnectionManager.ConnectionProfile.ReadRecord()
   at JiwaFinancials.Jiwa.JiwaApplication.ConnectionManager.ConnectionProfile.Setup()
   at JiwaFinancials.Jiwa.JiwaApplication.Manager..ctor()


the code is simply fail when initializing manager object
Code: Select all
 manager = New JiwaFinancials.Jiwa.JiwaApplication.Manager()


I can replicate this issue by hosting JiwaAPI on IIS
Code: Select all
[NullReferenceException: Object reference not set to an instance of an object.]
   JiwaFinancials.Jiwa.JiwaApplication.ConnectionManager.ConnectionProfile.ReadRecord() in C:\VSTS\Jiwa 7\07.02.00\JiwaApplication\ConnectionManager\ConnectionProfile.vb:187
   JiwaFinancials.Jiwa.JiwaApplication.ConnectionManager.ConnectionProfile.Setup() in C:\VSTS\Jiwa 7\07.02.00\JiwaApplication\ConnectionManager\ConnectionProfile.vb:616
   JiwaFinancials.Jiwa.JiwaApplication.Manager..ctor() in C:\VSTS\Jiwa 7\07.02.00\JiwaApplication\Manager.vb:3499
   JiwaAPI.AppHost.Configure(Container container) in C:\VSTS\Jiwa 7\07.02.00\JiwaAPI\JiwaAPI\JiwaAPI\AppHost.cs:41
   ServiceStack.ServiceStackHost.Init() +280
   JiwaAPI.Global.Application_Start(Object sender, EventArgs e) in C:\VSTS\Jiwa 7\07.02.00\JiwaAPI\JiwaAPI\JiwaAPI\Global.asax.cs:9


There is no problem with selfhosted JiwaAPI (Window service) on the same server and there is no problem hosting my webservice on a different sever...

Has anyone had this issue before?

I have done/checked below btw
- .Net Framework 4.8 installed
- Windows features
- used an admin account as application pool identity
- app pool is 4.0 and uses 32bit
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: Problem with hosting webservice on IIS that uses manager  Topic is solved

Postby Mike.Sheen » Thu Apr 27, 2023 3:40 pm

A quick search and I found this issue which fits with what you are seeing: DEV-9840
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Problem with hosting webservice on IIS that uses manager

Postby perry » Thu Apr 27, 2023 3:46 pm

Thanks, that makes sense. The server that works probably had an earlier SR.
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 27 guests