This project is read-only.

Release Coming for Orcas Beta 2 and/or for x64?

Aug 4, 2007 at 7:14 AM
Edited Aug 4, 2007 at 7:14 AM
I'm using Orcas Beta 2 and Vista Ultimate x64. Is there any chance you guys could see about getting this thing to work in this environment? I'd be willing, if disappointed, to sacrifice my x64 environment, but I'm not going back to Beta 1 of Orcas, ever.

Thanks,
Jon
Aug 8, 2007 at 6:39 AM
So you guys posted a build for Orcas Beta 2. But come on guys, talk to us. Why am I the one who has to reply to myself?
Aug 8, 2007 at 7:43 AM
Edited Aug 8, 2007 at 7:47 AM
Installation much improved. Still fail points (database and CAPICOM):

Installing DinnerNow
Building "Tools"
Microsoft (R) Build Engine Version 3.5.20706.1
Microsoft .NET Framework, Version 2.0.50727.1378
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "IIS7 Handler"
Microsoft (R) Build Engine Version 3.5.20706.1
Microsoft .NET Framework, Version 2.0.50727.1378
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Finished
4 File(s) copied
Creating an alias named "DinnerNow" for the localhost\SQLExpress instance
An alias has been created for the database
Restoring the DinnerNow database...
processed file: ..\..\database\dinnernow.bak
Successfully processed 1 files; Failed processing 0 files
Msg 5133, Level 16, State 1, Server MEDIA2049\SQLEXPRESS, Line 1
Directory lookup for the file "c:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\DinnerNownew.mdf" failed with the operating system
error 5(Access is denied.).
Msg 3156, Level 16, State 3, Server MEDIA2049\SQLEXPRESS, Line 1
File 'DinnerNownew' cannot be restored to 'c:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\DinnerNownew.mdf'. Use WITH MOVE to identify a valid
location for the file.
Msg 5133, Level 16, State 1, Server MEDIA2049\SQLEXPRESS, Line 1
Directory lookup for the file "c:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\DinnerNownew_log.ldf" failed with the operating
system error 5(Access is denied.).
Msg 3156, Level 16, State 3, Server MEDIA2049\SQLEXPRESS, Line 1
File 'DinnerNownew_log' cannot be restored to 'c:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\DATA\DinnerNownew_log.ldf'. Use WITH MOVE to identify a
valid location for the file.
Msg 3119, Level 16, State 1, Server MEDIA2049\SQLEXPRESS, Line 1
Problems were identified while planning for the RESTORE statement. Previous
messages provide details.
Msg 3013, Level 16, State 1, Server MEDIA2049\SQLEXPRESS, Line 1
RESTORE DATABASE is terminating abnormally.
Creating DinnerNow Workflow database...
Creating persistence tables...
DBCC execution completed. If DBCC printed error messages, contact your system
administrator.
creating persistence stored procedures...
DBCC execution completed. If DBCC printed error messages, contact your system
administrator.
Creating Tracking tables...
creating Tracking stored procedures...
Create the ASPNETDB SQL Server database for the membership system

Start adding the following features:
Membership
Profile
RoleManager
Personalization
SqlWebEventProvider

.................
An error has occurred. Details of the exception:
An error has occurred while establishing a connection to the server. When conne
cting to SQL Server 2005, this failure may be caused by the fact that under the
default settings SQL Server does not allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Unable to connect to SQL Server database.

Create the CardSpace tables...
Login failed for user 'MEDIA2049\Jon'.
Cannot open database "AspNetDB" requested by the login. The login failed.
Create the CardSpace stored procedures...
Login failed for user 'MEDIA2049\Jon'.
Cannot open database "AspNetDB" requested by the login. The login failed.
Configuring support for SVC files
Microsoft(R) Windows Communication Foundation Installation Utility
Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.590
Copyright (c) Microsoft Corporation. All rights reserved.


Installing: Machine.config Section Groups and Handlers (WOW64)

Installing: Machine.config Section Groups and Handlers

Installing: System.Web Build Provider (WOW64)

Installing: System.Web Compilation Assemblies (WOW64)

Installing: HTTP Handlers (WOW64)

Installing: HTTP Modules (WOW64)

Installing: System.Web Build Provider

Installing: System.Web Compilation Assemblies

Installing: HTTP Handlers

Installing: HTTP Modules

Installing: Protocol node for protocol net.tcp (WOW64)

Installing: TransportConfiguration node for protocol net.tcp (WOW64)

Installing: ListenerAdapter node for protocol net.tcp

Installing: Protocol node for protocol net.tcp

Installing: TransportConfiguration node for protocol net.tcp

Installing: Protocol node for protocol net.pipe (WOW64)

Installing: TransportConfiguration node for protocol net.pipe (WOW64)

Installing: ListenerAdapter node for protocol net.pipe

Installing: Protocol node for protocol net.pipe

Installing: TransportConfiguration node for protocol net.pipe

Installing: Protocol node for protocol net.msmq (WOW64)

Installing: TransportConfiguration node for protocol net.msmq (WOW64)

Installing: ListenerAdapter node for protocol net.msmq

Installing: Protocol node for protocol net.msmq

Installing: TransportConfiguration node for protocol net.msmq

Installing: Protocol node for protocol msmq.formatname (WOW64)

Installing: TransportConfiguration node for protocol msmq.formatname (WOW64)

Installing: ListenerAdapter node for protocol msmq.formatname

Installing: Protocol node for protocol msmq.formatname

Installing: TransportConfiguration node for protocol msmq.formatname

Installing: HTTP Modules (WAS)

Installing: HTTP Handlers (WAS)
processed file: D:\dev\proj\DinnerNow\bin\DinnerNow.WebUX
Successfully processed 1 files; Failed processing 0 files
processed file: D:\dev\proj\DinnerNow\bin\DinnerNow.WebUX
Successfully processed 1 files; Failed processing 0 files
Applied configuration changes to section "system.webServer/staticContent" for "M
ACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
New-Object : Retrieving the COM class factory for component with CLSID {91D221C
4-0CD4-461C-A728-01D509321556} failed due to the following error: 800700c1.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:19 char:
21
+ $store = new-object <<<< -com "CAPICOM.Store"
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:21 char:
13
+ $store.Open( <<<< 1,"$certStore",130)
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:34 char:
14
+ $Store.Close( <<<< )
New-Object : Retrieving the COM class factory for component with CLSID {91D221C
4-0CD4-461C-A728-01D509321556} failed due to the following error: 800700c1.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:40 char:
21
+ $store = new-object <<<< -com "CAPICOM.Store"
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:42 char:
13
+ $store.Open( <<<< 1,"$certStore",130)
D:\dev\proj\DinnerNow\scripts\install\certs\adatum.sst
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:46 char:
13
+ $store.Load( <<<< $certPath)
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:48 char:
14
+ $store.Close( <<<< )
New-Object : Retrieving the COM class factory for component with CLSID {91D221C
4-0CD4-461C-A728-01D509321556} failed due to the following error: 800700c1.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:40 char:
21
+ $store = new-object <<<< -com "CAPICOM.Store"
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:42 char:
13
+ $store.Open( <<<< 1,"$certStore",130)
D:\dev\proj\DinnerNow\scripts\install\certs\dinnernow.pfx
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:46 char:
13
+ $store.Load( <<<< $certPath)
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:48 char:
14
+ $store.Close( <<<< )
New-Object : Retrieving the COM class factory for component with CLSID {91D221C
4-0CD4-461C-A728-01D509321556} failed due to the following error: 800700c1.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:58 char:
21
+ $store = new-object <<<< -com "CAPICOM.Store"
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:60 char:
13
+ $store.Open( <<<< 1,"my",130)
You cannot call a method on a null-valued expression.
At D:\dev\proj\DinnerNow\scripts\install\tasks\InstallCertificates.ps1:73 char:
16
+ $store.Close( <<<< )

name type
---- ----
ImageCopyright ImageCopyrightService.Management.Ima...



name overrideModeDefault
---- -------------------
ImageCopyright Allow
ImageCopyrightService


Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

D:\dev\proj\DinnerNow\scripts\install\tasks\BindSSL.vbs(5, 1) SWbemObjectEx: Shu
tting down

Building "DinnerNow - ServicePortfolio.sln"
Microsoft (R) Build Engine Version 3.5.20706.1
Microsoft .NET Framework, Version 2.0.50727.1378
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "DinnerNow - SideBar.sln"
Microsoft (R) Build Engine Version 3.5.20706.1
Microsoft .NET Framework, Version 2.0.50727.1378
Copyright (C) Microsoft Corporation 2007. All rights reserved.

ASPNETCOMPILER : error ASPRUNTIME: The target directory could not be deleted.
Please delete it manually, or choose a different target.
Deploying Gadget to Web Site
The system cannot find the path specified.
Build Complete
Building "DinnerNow - Web.sln"
'"c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"' is not r
ecognized as an internal or external command,
operable program or batch file.
...
Aug 8, 2007 at 8:08 AM
Edited Aug 8, 2007 at 8:08 AM
Regarding the Database failure, I was able to use SQL Management Studio to restore the .bak file. However, I still got an "Access Denied" error. I had selected the .bak file to restore, and "DinnerNow" as the target database, and from that, SQL Server tried to install the database to ...

C:\Program Files (x86)\Microsoft SQL Server\MSSQL.3\MSSQL\DinnerNow.mdf

To get past the Access Denied error, I had to manually add the Data subdirectory ...

C:\Program Files (x86)\Microsoft SQL Server\MSSQL.3\MSSQL\Data\DinnerNow.mdf

Still working on the CAPICOM / certs "You cannot call a method on a null-valued expression" error.
Aug 8, 2007 at 8:32 AM


Still working on the CAPICOM / certs "You cannot call a method on a null-valued expression" error.


OK I got past this. This happens because of Vista x64; CAPICOM is a 32-bit DLL. If you use the 32-bit version of PowerShell, it will load the 32-bit COM component. So in "7 - Install Certificates for web sites.bat" I changed the two instances of:

%WINDIR%\system32\windowspowershell\v1.0\powershell

.. to ..

%SystemRoot%\sysWOW64\WindowsPowerShell\v1.0\powershell.exe

Also had to re-run "set-executionpolicy unrestricted" in the 32-bit PoSh console as its policy settings are seperate from the default (x64) environment.

Between those two tweaks, it worked.

D:\dev\proj\DinnerNow\scripts\install>"7 - Install Certificates for web sites.bat"
D:\dev\proj\DinnerNow\scripts\install\certs\adatum.sst
D:\dev\proj\DinnerNow\scripts\install\certs\dinnernow.pfx
processed file: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\cd36334e0673e0b3d0b9c64a2cbf42ce_9e02f798-2a1f-4d9f-8794
-d73782300429
Successfully processed 1 files; Failed processing 0 files

D:\dev\proj\DinnerNow\scripts\install>
Aug 8, 2007 at 8:59 AM
There was at least one other error:


Create the ASPNETDB SQL Server database for the membership system

Start adding the following features:
Membership
Profile
RoleManager
Personalization
SqlWebEventProvider

.................
An error has occurred. Details of the exception:
An error has occurred while establishing a connection to the server. When conne
cting to SQL Server 2005, this failure may be caused by the fact that under the
default settings SQL Server does not allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Unable to connect to SQL Server database.

Create the CardSpace tables...
Login failed for user 'MEDIA2049\Jon'.
Cannot open database "AspNetDB" requested by the login. The login failed.
Create the CardSpace stored procedures...
Login failed for user 'MEDIA2049\Jon'.
Cannot open database "AspNetDB" requested by the login. The login failed.


I got around this by updating "4 - Configure ASP.NET SQL Membership Provider.bat" by changing

%WINDIR%\microsoft.net\framework\v2.0.50727\aspnet_regsql.exe -S DinnerNow -E -A all

.. to ..

%WINDIR%\microsoft.net\framework64\v2.0.50727\aspnet_regsql.exe -S DinnerNow -E -A all

The DinnerNow alias had been installed in the x64 "realm".

Jon
Aug 8, 2007 at 9:19 AM
Edited Aug 8, 2007 at 9:40 AM
I went back and changed the declared variable %MsBuildPath% from ...\Framework\... to ...\Framework64\... in the files ...

  • 0 - Build Install Tools.bat
  • A - Build DinnerNow.bat
  • StartHere.bat

.. and changed ..

"c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

.. to ..

"c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

.. in ..

  • A - Build DinnerNow.bat

.. and re-ran all of the above.

I'm still getting a warning, "The system cannot find the path specified" on "A - Build DinnerNow.bat" after building the Gadget thingmajig. It appears to be an unnecessary "cd install" as I think the script is already running in the install directory and didn't leave it.
Aug 8, 2007 at 11:52 PM
Hi

DinnerNow has not been designed or tested on 64bit - this was by design.

However you should be able to get it working with some work. Most things i see you have found, although i don't have an exhaustive list. Generally the things to check are:

  • Scripts - look for paths etc that do not use the (x86) programs branch.
  • Post-Build events - look for the same thing.

If you work through the setup batch files in order, from 0-9 then A-Z you should be able to get it working ok.

For CAPICOM, do you have it installed. The setup should install it, but i suspect it's the 32 bit version, you may have to get the 64bit version and replace the one we ship.

One final tip is to make sure you run "elevated" when executing the scripts manually.

Hope this helps

David
Aug 9, 2007 at 2:14 AM
Thanks, David, that was a good summary of the details of what I posted here including what I did. :)