A
AAguiar
I have an asp.net project where the code behind the aspx page calls a c#
class which makes calls to a managed static C++ class.
The C# class works fine when the asp net worker process starts, when it is
invoked by pressing "F5", or when the web.config file is modified.
In all these cases the web.config file contains <identity
impersonate="false" />.
The mysterious problem arrises when I set <identity impersonate="true"/> in
the web.config file.
In this case, each time the web.config file is modified , I get the error
NullReferenceException: Object reference not set to an instance of an
object.
When debugging the error raises at the point where c# class call for the
first time a function on the static c++ class.
If I restart de aspnet wroker process the error disappear, until I modify
again the web.config file.
Does anyone have any idea of why I get an NullReferenceException at this
point when I set <identity impersonate="true" /> in the web.config file and
the aspnet worker process gets recycled ?
Any help or direction regarding the resolution of this problem would be
greatly appreciated.
Thanks in advance.
class which makes calls to a managed static C++ class.
The C# class works fine when the asp net worker process starts, when it is
invoked by pressing "F5", or when the web.config file is modified.
In all these cases the web.config file contains <identity
impersonate="false" />.
The mysterious problem arrises when I set <identity impersonate="true"/> in
the web.config file.
In this case, each time the web.config file is modified , I get the error
NullReferenceException: Object reference not set to an instance of an
object.
When debugging the error raises at the point where c# class call for the
first time a function on the static c++ class.
If I restart de aspnet wroker process the error disappear, until I modify
again the web.config file.
Does anyone have any idea of why I get an NullReferenceException at this
point when I set <identity impersonate="true" /> in the web.config file and
the aspnet worker process gets recycled ?
Any help or direction regarding the resolution of this problem would be
greatly appreciated.
Thanks in advance.