L
lizet.pena
We have a windows form application that is deployed to several remote
users.
We use a batch file to execute the application.
This batch file is in charge of doing an xcopy of any new files
sitting on the deployment share (Intranet).
The batch file also starts the application.
We've noticed since a week ago the application is behaving differently
if it is called from the batch file or from the command prompt than if
the application is called from windows explorer.
The actual error is in loading some objects from our domain model, the
objects are not instantiated properly when we run the application
using the following line on our batch file
start applicationname.exe
The same application works without problems (objects are instantiated
and do not give null reference errors) when we double click the
executable in windows explorer or use the following line in the batch
file
explorer applicationname.exe
Any comments or suggestions for troubleshooting this are more than
welcome.
Why is the security context different?
TIA
L.
users.
We use a batch file to execute the application.
This batch file is in charge of doing an xcopy of any new files
sitting on the deployment share (Intranet).
The batch file also starts the application.
We've noticed since a week ago the application is behaving differently
if it is called from the batch file or from the command prompt than if
the application is called from windows explorer.
The actual error is in loading some objects from our domain model, the
objects are not instantiated properly when we run the application
using the following line on our batch file
start applicationname.exe
The same application works without problems (objects are instantiated
and do not give null reference errors) when we double click the
executable in windows explorer or use the following line in the batch
file
explorer applicationname.exe
Any comments or suggestions for troubleshooting this are more than
welcome.
Why is the security context different?
TIA
L.