Object reference error when using the HttpContext object
I have a test server script below….
public static void test()
{
int iCount = HttpContext.Current.Session.Count;
}
On the form load event, it called that script and got the error below.
Failed to execute deployed method 'FormLoaded', using entity 'frmServer'. Object reference not set to an instance of an object.
Does anyone get this object reference error when using the HttpContext object? Any suggestion?
Tagged:
0
Comments
-
I'm not sure that HttpContext makes sense in the context of a BPM server side script. Imagine that the web client is on a different server than the engine. The engine would be running the server side script but have no knowledge of anything web server side.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 155 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 9 XM Fax
- Follow Categories