Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Installing Cassini in VS2008 setup on MS Virtual XP problem
dombat
#1 Posted : Thursday, November 18, 2010 9:00:41 AM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK

Hello,

I have created a Visual Studio 2008 setup package as described here:
http://ultidev.com/produ...RedistirbWithVS2005.htm

The package installs properly, including my website and SQL Express 2005. This is on a new Windows XP SP3 Microsoft Virtual PC.

If I run the "Cassini Web Server Explorer" from the start menu, it shows up for about half a second with the "active content blocked bar" along the top and then redirects to a "Internet Explorer cannot display the webpage" message.


If I run my ".url" shortcut;
http://localhost:7756/GoToApplication.aspx?AppID=CC0E83D7-551B-44FE-AF8F-B03EFF472342

It just goes to "Internet Explorer cannot display the webpage" message.

If I install utildev cassini directly from your download page, it works. What do you think is wrong?

Notes:
The machine has MS firewall switched on, MS security essentials and medium security settings in internet explorer. I cant see any relevant errors in the event log.
Ultidev Team
#2 Posted : Thursday, November 18, 2010 12:49:55 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi.

It looks like UltiDev Cassini was not installed as a part of your application installation. To verify that you could check Add/Remove Applications in the Control Panel to see if there are any "UltiDev Cassini" components installed. Since you were able to install UltiDev Cassini separately, we suspect that it was not somehow included as a prerequisite into your setup package, or maybe the target system didn't have internet connection, although in this case installer should have notified you that it was unable to download and install UltiDev Cassini prerequisite.

Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
dombat
#5 Posted : Thursday, November 18, 2010 11:16:01 PM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK

Ok, this is odd.

Start setup.exe

it says "do you want to install the cassini components"

click yes

it installs the files in the directory "Cassini Web Server for ASP.NET 2.0" (i see them appear)

then when it gets to installing my website, all the files disappear before i even click "next". It's like Cassini has rolled itself back.
dombat
#6 Posted : Thursday, November 18, 2010 11:25:24 PM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK

Ok there are some event log entries:


FIRST (error)
=====
Service cannot be started. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\WINDOWS\TEMP\haab62bw.tmp'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)...


SECOND (Information)
======
Commit exception:

System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
at CassiniService.ProjectInstaller.StartService(ServiceController cassiniService, Int32 secondsToWait)
at CassiniService.ProjectInstaller.StartThisService(Int32 secondsToWait)
at CassiniService.ProjectInstaller.InternalCommit()

THIRD (Error)
=========
The description for Event ID ( 11001 ) in Source ( MsiInstaller ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Product: UltiDev Cassini Web Server for ASP.NET 2.0 -- Error 1001. An exception occurred during the Commit phase of the installation. This exception will be ignored and installation will continue. However, the application might not function correctly after installation is complete. --> Service Commit():
System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
at CassiniService.ProjectInstaller.StartService(ServiceController cassiniService, Int32 secondsToWait)
at CassiniService.ProjectInstaller.StartThisService(Int32 secondsToWait)
at CassiniService.ProjectInstaller.InternalCommit() --> Time out has expired and the operation has not been completed., (NULL), (NULL), (NULL).

FOURTH (Information)
==============
Product: UltiDev Cassini Web Server for ASP.NET 2.0 -- Installation failed.
Ultidev Team
#7 Posted : Friday, November 19, 2010 4:39:07 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

The error is not one of well-known. What strange here is that you can install UltiDev Cassini using the standalone installer, and it is the same exact thing as what you ship with your application. Please check whether your current user has access to "C:\WINDOWS\TEMP", but if everything works if you can install UltiDev Cassini on its own, then something is probably not quite well with the system. Please consider testing on another box or VM and see if you can reproduce the problem some place else.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
dombat
#8 Posted : Friday, November 19, 2010 6:15:09 AM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK

Ok, thank you for your help.

Very good support for a "free" product :-)
Ultidev Team
#9 Posted : Friday, November 19, 2010 6:30:51 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Thank you! Fortunately the product is pretty reliable: even after 450,000 known installations, we get very manageable number or support requests and issue reports.

But we had to edit our previous post :-): the error is NOT the well-known one.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
dombat
#10 Posted : Tuesday, November 23, 2010 11:12:18 PM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK

Ok, my first event log entry was "DirectoryNotFound". (c:\windows\temp\....)

TEMP does not exist in the windows directory.

The environment variable is set to %USERPROFILE%\Local Settings\Temp

I created TEMP in Windows and the Cassini service installed properly and is running.

This was on a Virtual PC, so I will try it on some real PC's hopefully that will be more "real world". Most windows directories usually have a TEMP directory, I'm not quite sure why mine didn't.
dombat
#11 Posted : Tuesday, November 23, 2010 11:26:50 PM(UTC)
Groups: Member
Joined: 11/18/2010(UTC)
Posts: 13
Location: UK


Once I had got the service running I was getting "403 forbidden".

On closer inspection my website was in the directory [TARGETDIR]\<sub directory> but my setting in "Register cassini in the Install Custom Action" (Visual Studio 2005/8 setup project) the CustomActionData was set to;

/AppID="[UpgradeCode]" /AppLocation="[TARGETDIR]\"


but it should be;
/AppID="[UpgradeCode]" /AppLocation="[TARGETDIR]\<sub Directory>\"


Once this was properly set then my website now works!

I hope this thread will be useful to people in the future.
Ultidev Team
#12 Posted : Wednesday, November 24, 2010 4:34:37 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Thank you much for sharing your solution to the problem!

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (11)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.