ServerController.pas Undeclared identifier: 'TIWUserSession'

Posted on 2011-05-06
Last Modified: 2012-05-11
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.

Question by:ussynth

    Expert Comment

    try "uses IWUserSessionBase"

    Author Comment

    Did not help.  Here is my uses:

      SysUtils, Classes, IWServerControllerBase, IWBaseForm, HTTPApp,
      // For OnNewSession Event
      UserSessionUnit, IWApplication, IWAppForm, IWUserSessionBase;

    Accepted Solution

    I found the problem.  DO NOT rename the "TIWUserSession" form!!!  I renamed it back to "IWUserSession" and can now compile.

    Author Closing Comment

    I found the answer on another site.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now