• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1153
  • Last Modified:

ServerController.pas Undeclared identifier: 'TIWUserSession'

I'm working on my very first Delphi XE IntraWeb app.  I'm trying to connect to SQL Server 2008 and cannot find any help or example code.  I'm currently geting this message:

   [DCC Error] ServerController.pas(21): E2003 Undeclared identifier: 'TIWUserSession'

when I try to compile.

It's dieing on this line:

     function UserSession: TIWUserSession;

This file has been automatically buit by Delphi.  I have not added anything to it and have no idea what to put in the "uses" statement to get it to recognize TIWUserSession.

I'd appreciate any help on this and any sample code/projects or instructions for attaching to SQL Server.

Thanks,
Mike
0
ussynth
Asked:
ussynth
  • 3
1 Solution
 
leticiabarbalhoCommented:
try "uses IWUserSessionBase"
0
 
ussynthAuthor Commented:
Did not help.  Here is my uses:

  SysUtils, Classes, IWServerControllerBase, IWBaseForm, HTTPApp,
  // For OnNewSession Event
  UserSessionUnit, IWApplication, IWAppForm, IWUserSessionBase;
0
 
ussynthAuthor Commented:
I found the problem.  DO NOT rename the "TIWUserSession" form!!!  I renamed it back to "IWUserSession" and can now compile.
0
 
ussynthAuthor Commented:
I found the answer on another site.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now