What is the proven and easy method to deploy a Web application using DataObjects.Net components on a Web server, which does not have DO4 installed? Please guide if there is already documentation in the Manual or anywhere else. We added all references, created a setup and deployed on a Web server, it is not working. It throws up Could not load assembly errors. The application works only on developer PCs. We have checked all the binaries are there in the applications directory created by the setup. Urgent help is appreciated. Thanks. |
There are no any special requirements - you should just ensure the content of bin folder of web server's application root is the same as at your development PC. To check this, try compare the folders after deployment. Another possible reason (actually, pretty rare now) is that full trust permissions aren't provided for DataObjects.Net assemblies. If you're using some shared hosting, you must consult with hosting provider about this (normally this is mentioned in Q/A). If this won't help to resolve the issue, please provide stack trace or full ASP.NET error report. I just got the following info from Alex Ilyin:
But "Active Session is required..." is actually thrown by I recommend to turn on Fusion Log to find out the cause. See e.g. this article for details. Another option: compare your The author has workaround the issue by installing ODP.NET @ web server. Most likely, it was necessary beacuse all the types in all referenced assemblies are enumerated somwehere in his application. Further investigation will follow. |
Please see my comments below my answer.