[SPRNET-1264] Exception EnterpriseServiceExporter Created: 02/Nov/09  Updated: 29/Oct/10  Resolved: 29/Sep/10

Status: Resolved
Project: Spring.NET
Component/s: Spring-NET-SERVICES
Affects Version/s: 1.3.0 RC1, 1.3.0
Fix Version/s: 1.3.1

Type: Bug Priority: Major
Reporter: jaehyo Assignee: Steve Bohlen
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is related to SPRNET-1379 Enterprise Services Exporter sample a... Resolved


hi guys..

I think I have found a bug in v1.3.0 RC1 of Spring.Net.
a Property, AppDomain.CurrentDomain.DynamicDirectory is null in the
Export Method of EnterpriseServiceExporter class when I debug.
the Enterprise Registery Service works fine in v 1.2.0 but not in v 1.3.0
I hope it's a known bug and You have a solution to it..

Spring Sample "Spring.Calculator" Exception Message

System.Configuration.ConfigurationErrorsException: Error creating context 'sprin
g.root': Error creating object with name 'Spring.EnterpriseServices.EnterpriseSe
rvicesExporter#0' defined in 'config [E:\Open Source\Spring.Net 1.3 RC1\Spring.N
spring/objects] line 1' : Initialization of object failed : Object reference not
set to an instance of an object. ---> Spring.Objects.Factory.ObjectCreationExce
ption: Error creating object with name 'Spring.EnterpriseServices.EnterpriseServ
icesExporter#0' defined in 'config [E:\Open Source\Spring.Net 1.3 RC1\Spring.NET
ring/objects] line 1' : Initialization of object failed : Object reference not s
et to an instance of an object. ---> System.NullReferenceException: Object refer
ence not set to an instance of an object.

Comment by James [ 18/Feb/10 ]

Hi Mark,
Looks like you're working this issue. Is there any workaround until the fix is available?

Comment by Steve Bohlen [ 22/Sep/10 ]

Issue does not exist in 1.3.0 RTM. Please submit failing test if possible and we will reopen the issue.

Comment by Bruno Baia [ 23/Sep/10 ]

To reproduce it :
Run Spring.Calculator.RegisterComponentServices.2008 project in the Spring Caculator sample.

Comment by Steve Bohlen [ 28/Sep/10 ]

Hmmm...how right you are (overlooked that separate project when initially attempting to repro this issue!)

Comment by Steve Bohlen [ 29/Sep/10 ]

Rely on .BaseDirectory in lieu of .DynamicDirectory in the case where the .DynamicDirectory is NULL

Comment by Erich Eichinger [ 29/Oct/10 ]

assigned wrong issue to myself

Generated at Sat Jul 04 17:53:55 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.