• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1223
  • 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.

  • 3
1 Solution
try "uses IWUserSessionBase"
ussynthAuthor Commented:
Did not help.  Here is my uses:

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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