![]() If you used the IntraWeb Application Wizard in XE2, it would of created a ServerController.pas unit for you. IWLabel1.Caption := E.ClassName ' ' E.Message I then added a button, a label and properly configured ADOConnection (against SQL Server if that matters) and: procedure TIWForm2.IWButton1Click(Sender: TObject) Procedure TIWServerController.AfterConstruction ĬomInitialization := ciMultiThreaded //succeded Procedure IWServerControllerBaseNewSession(ASession: TIWApplication After failing to override the constructor, I override the AfterConstruction method to initialize such property, like thisĮxample: TIWServerController = class(TIWServerControllerBase) Using the Delphi XE VCL for the Web Application wizard I got a unit named ServerController, with the class TIWServerController.Next, trying to set this property on a page OnCreate event looks too late (it must be created in the thread you want to initialize COM), my guess is that altering this property at this time is forbidden and will raise an exception, or will be ignored completely.The first thing you have to know is the actual class used to construct the IWServerController object is part of your IntraWeb project.Where to change the ComInitialization property of the IWServerController object to get this working. ![]() Where is declared the TComInitialization type, which in turns defines the ciMultiThreaded identifier.Īnswer to this is: IWServerControllerBase unit, part of Intraweb.> project with the wizard and readd your files to it.The CoInitialize error on IntraWeb using ADO gives you the correct answer.Īs I catch from comments on answer to this question, there are two things left: Look at Guess vs GuessService demos, or create a new > IW10 is different than IW14 for services. > GUI showing up and no service is installed. exe /install I see the regular Stand Alone > privileges (on Win7 64 Prof.) I carefully read: > IW10.0.21 with Delphi 2009 I made sure there are no blanks in the > Unfortunately, to me this solutions still doesn't work. > I have tried it on both Windows 7 and server 2003. I know it runs because in TIWServerController.IWServerControllerBaseCreate I create an INI file the first time it runs, and this is created successfully, before it drops out without installing. > When running APPNAME -INSTALL at the command prompt it instantly returns to ther command prompt without installing as a service. > I have tried building in both the old way (using iwRun) and the new way TIWStart.Execute(False) > I have an Intraweb application that runs fine as a standalone application but cannot get it to install as a service since moving to Intraweb XI. exe /install I see the regular Stand Alone GUI showing up and no service is installed. I make sure to run /install with admin privileges (on Win7 64 Prof.) I made sure there are no blanks in the ServerController.AppName. Unfortunately, to me this solutions still doesn't work. > "Programming is an art form that fights back" 4:03:58 PM Error: ''ProfitPak WebShop'' is not a valid component name 4:03:58 PM Cache directory created "C:\Users\Murray\AppData\Local\Temp\0195h6spj8\" > 2) Is there a log file in the app dir after you try? See below > 1) Are you running the console as admin? Yes > the first time it runs, and this is created successfully, before it > TIWServerController.IWServerControllerBaseCreate I create an INI file > prompt it instantly returns to ther command prompt without installing > TIWStart.Execute(False) When running APPNAME -INSTALL at the command > building in both the old way (using iwRun) and the new way > application but cannot get it to install as a service since moving to > I have an Intraweb application that runs fine as a standalone > On 6:17 AM, Rimtech Software Australia Pty Ltd Director wrote: Re: Installing Intraweb Application as a service I have tried it on both Windows 7 and server 2003. When running APPNAME -INSTALL at the command prompt it instantly returns to ther command prompt without installing as a service. ![]() I have tried building in both the old way (using iwRun) and the new way TIWStart.Execute(False) I have an Intraweb application that runs fine as a standalone application but cannot get it to install as a service since moving to Intraweb XI. Installing Intraweb Application as a service
0 Comments
Leave a Reply. |