Thanks for the fast response,
I noticed that the problem could be that using User32.dll and PostMessage from a service is not recommended and will not work.
If i run your webserver from a commandprompt it works.
The problem with that I guess, is that I don't know how to embed and register the exe files and dlls so everything will be installed from the setup project in the same nice way as you show with the service in your setup tutorial.
/Jörgem
Ultidev Team wrote:Hi there!
Please take a look at Windows Event Viewer - you may find some error information there. However, if the code that calls PostMessage() does not throw an exception and GetLastError() comes back clean, then we unfortunately may not have a ready answer for you, especially if running Cassini service under your current user account does not help (with UAC turned turned off on Windows 7, Vista and Server 2008).
If in the end it turns out to be access/permissions issue, then instead of running Cassini under more powerful account, please consider creating a ServicedComponent hosted in COM+ process to elevate privileges only for the small portion of the code. If your are shipping redistributable application with UltiDev Cassini, then this is the only proper way to run code under higher privileges because changing user account for entire service makes less secure, especially if other redistributable applications are running under Cassini.
Best regards,
UltiDev Team.