This project is read-only.

Dinner 3.0 Build Errors and IIs7

Topics: Kiosk Application, Web site
Aug 10, 2009 at 5:14 AM

DinnerNow in IIs7 does not have any webpages (aspx pages)  IIs fails because there is no default document.

The Kiosk application also fails to run.

Build Log is as follows:

Installing DinnerNow
Processed 272 pages for database 'DinnerNow', file 'DinnerNownew' on file 1.
Processed 3 pages for database 'DinnerNow', file 'DinnerNownew_log' on file 1.
RESTORE DATABASE successfully processed 275 pages in 0.199 seconds (11.292
MB/sec).
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

........

Finished.
Create the CardSpace tables...
Create the CardSpace stored procedures...
Msg 2705, Level 16, State 4, Serverfoobar\SQLEXPRESS, Line 1
Column names in each table must be unique. Column name
'AllowOnlyCardSpaceLogin' in table 'dbo.aspnet_Membership' is specified more
than once.
Msg 1913, Level 16, State 1, Server foobar\SQLEXPRESS, Line 1
The operation failed because an index or statistics with name
'IX_cardspace_InformationCards_UniqueId' already exists on table
'dbo.cardspace_InformationCards'.
Configuring support for SVC files
Microsoft(R) Windows Communication Foundation Installation Utility
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.4037]
Copyright (c) Microsoft Corporation.  All rights reserved.


Installing: Machine.config Section Groups and Handlers

Installing: System.Web Build Provider

Installing: System.Web Compilation Assemblies

Installing: HTTP Handlers

Installing: HTTP Modules

Installing: ListenerAdapter node for protocol net.tcp

Installing: Protocol node for protocol net.tcp

Installing: TransportConfiguration node for protocol net.tcp

Installing: ListenerAdapter node for protocol net.pipe

Installing: Protocol node for protocol net.pipe

Installing: TransportConfiguration node for protocol net.pipe

Installing: ListenerAdapter node for protocol net.msmq

Installing: Protocol node for protocol net.msmq

Installing: TransportConfiguration node for protocol net.msmq

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)
ERROR ( message:Failed to add duplicate collection element "/DinnerNow". )
ERROR ( message:Failed to add duplicate collection element "/DinnerNow/Service"
 )
ERROR ( message:New mimeMap object missing required attributes. Cannot add dupl
cate collection entry of type 'mimeMap' with unique key attribute 'fileExtensio
' set to '.gadget'
. )
processed file: C:\DinnerNow-3.0\solution\DinnerNow - Web\DinnerNow.WebUX
Successfully processed 1 files; Failed processing 0 files
processed file: C:\DinnerNow-3.0\solution\DinnerNow - Web\DinnerNow.WebUX
Successfully processed 1 files; Failed processing 0 files
processed file: C:\DinnerNow-3.0\solution\DinnerNow - Web\DinnerNow.WebUX
Successfully processed 1 files; Failed processing 0 files
processed file: C:\DinnerNow-3.0\solution\DinnerNow - Web\DinnerNow.WebUX
Successfully processed 1 files; Failed processing 0 files
Succeeded
Error: There are more than one matching certificate in the issuer's Root cert s
ore
Failed
processed file: C:\ProgramData\Microsoft\crypto\rsa\machinekeys\990be731b338d6e
b988f373efe3c406_cdeec9c1-34c1-4771-a1a8-91d348045656
Successfully processed 1 files; Failed processing 0 files
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

C:\DinnerNow-3.0\scripts\install\BindSSL.vbs(9, 1) SWbemObjectEx: Cannot create
a file when that file already exists.

Building "IIS7 Handler"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "DinnerNow - ServicePortfolio.sln"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Data\POXOrderItem.cs(33,22): warning CS0169: The field 'DinnerNow.Business.Data
.POXOrderItem.menuItemId' is never used
Data\POXOrderItem.cs(34,22): warning CS0169: The field 'DinnerNow.Business.Data
.POXOrderItem.restaurantId' is never used
Data\POXOrderItem.cs(35,24): warning CS0169: The field 'DinnerNow.Business.Data
.POXOrderItem.name' is never used
Data\POXOrderItem.cs(36,24): warning CS0169: The field 'DinnerNow.Business.Data
.POXOrderItem.imageLocation' is never used
Data\POXOrderItem.cs(37,25): warning CS0169: The field 'DinnerNow.Business.Data
.POXOrderItem.price' is never used
Data\POXOrderItem.cs(38,21): warning CS0169: The field 'DinnerNow.Business.Data
.POXOrderItem.quantity' is never used
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3
245: Could not resolve this reference. Could not locate the assembly "Microsoft
.VisualStudio.QualityTools.LoadTestFramework, Version=9.0.0.0, Culture=neutral,
 PublicKeyToken=b03f5f7f11d50a3a". Check to make sure the assembly exists on di
sk. If this reference is required by your code, you may get compilation errors.
C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Ta
rgets : warning : Activity 'sendActivity1' validation warning: Validation faile
d for parameter 'order'. All parameters for the send activity should have a val
id activity binding or a value specified.
C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Ta
rgets : warning : Activity 'sendActivity1' validation warning: Validation faile
d for parameter 'context'. All parameters for the send activity should have a v
alid activity binding or a value specified.
Build Complete
Building "DinnerNow - SideBar.sln"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "DinnerNow - Web.sln"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "DinnerNow - Kiosk.sln"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "DinnerNow - Management.sln"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Building "DinnerNow - LoadAgent.sln"
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build Complete
Finished
Press any key to continue . . .

 

 


 

Aug 10, 2009 at 5:32 AM

Deleting the (probably 2.5) DinnerNow site in IIs7 and rebuilding resulted in the DinnerNow site being populated with the proper folders and pages.  But now trying to browse default.aspx with IE8 causes infinite hang and "Internet Explorer Connection Problem".

Aug 10, 2009 at 11:00 PM

Did you completely uninstall DinnerNow 2.5 using the Control Panel?

Habib Heydarian.

Aug 11, 2009 at 2:22 AM

Habib,

Yeah, I uninstalled 2.5 in the control panel and I believe I used msizap TPW! {DinnerNow 2.5 guid}.

It is really weird that IE hangs and does not come back with any error message for the default.aspx page.   I tried browsing with Firefox and though it asks for authentication, it hangs as well.  I will have to try running the project in Visual Studio.

I take it that my build log is normal??

 

Phil

Aug 11, 2009 at 5:33 AM

Habib,

I ran DinnerNow.WebUX and got it to browse using Cassini, but when using IIs7, and running the project, Vs2008 hangs and I have to hit CTRL-BREAK to get it to respond and stop.

Aug 11, 2009 at 6:10 AM

Using cassini, and tried to register, get the following error:

 

Server Error in '/' Application.

The state information is invalid for this page and might be corrupted.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.

Source Error:

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7825fe57\ee0bc5a6\App_Web_vx6pbzvy.5.cs    Line: 0

Stack Trace:

[FormatException: Invalid length for a Base-64 char array.]
   System.Convert.FromBase64String(String s) +0
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +113

[ViewStateException: Invalid viewstate. 
	Client IP: 127.0.0.1
	Port: 
	User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30428; FDM; .NET CLR 3.5.30729; WWTClient2; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
	ViewState: /wEPDwUKMTQyNzAzMjM4OA9kFgJmD2QWAgIDD2QWAgIHD2QWAgIJD2QWAgIBDw8WBB4EXyFTQgKAAh4FV2lkdGgcFgQeC2NlbGxwYWRkaW5nBQEwHgtjZWxsc3BhY2luZwUBMGQYAwUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFggFZWN0bDAwJE1haW5Db250ZW50UGxhY2VIb2xkZXIkY3JlYXRlVXNlcldpemFyZCRTdGFydE5hdmlnYXRpb25UZW1wbGF0ZUNvbnRhaW5lcklEJFN0YXJ0TmV4dEltYWdlQnV0dG9uBWJjdGwwMCRNYWluQ29udGVudFBsYWNlSG9sZGVyJGNyZWF0ZVVzZXJXaXphcmQkU3RhcnROYXZpZ2F0aW9uVGVtcGxhdGVDb250YWluZXJJRCRDYW5jZWxJbWFnZUJ1dHRvbgVrY3RsMDAkTWFpbkNvbnRlbnRQbGFjZUhvbGRlciRjcmVhdGVVc2VyV2l6YXJkJEZpbmlzaE5hdmlnYXRpb25UZW1wbGF0ZUNvbnRhaW5lcklEJEZpbmlzaFByZXZpb3VzSW1hZ2VCdXR0b24FY2N0bDAwJE1haW5Db250ZW50UGxhY2VIb2xkZXIkY3JlYXRlVXNlcldp...]

[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
   System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
   System.Web.UI.HiddenFieldPageStatePersister.Load() +217
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.registration_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7825fe57\ee0bc5a6\App_Web_vx6pbzvy.5.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Aug 11, 2009 at 6:13 AM

Also get build exceptions:

A first chance exception of type 'System.ServiceModel.ProtocolException' occurred in mscorlib.dll

A first chance exception of type 'System.ServiceModel.CommunicationObjectFaultedException' occurred in mscorlib.dll

A first chance exception of type 'System.TimeoutException' occurred in mscorlib.dll

A first chance exception of type 'System.ServiceModel.CommunicationObjectFaultedException' occurred in mscorlib.dll

Aug 16, 2009 at 4:39 AM

I found the problem.  IE kept timing out after 15 minutes.  I ran diagnose connection problems and it said that Vista had tcp settings that were incompatible with my router (using Linksys WRT54GL with DD-WRT).  I told it to correct the problem and things work fine now.

In addition, I added "Allow anonymous users to the root of the website in IIs, though I'm not sure if it is necessary. I have anonymous authentication and forms authentication enabled in IIs and everything else disabled.  The default installation does not set things this way.