GMoulin


hi,

i based a test developpement on the ASPNETStateMachineWorkflow example found on the WWF web site and i'm having a problem.

I'm doing something wrong in my web.config file and i really don't know what, even after searching on this forum and other places. I also try to solve my problem by looking at web.config files in other examples, no luck.

Here is my web.config file code :

< xml version="1.0" >
<configuration>
<
configSections>
<
section name="WorkflowRuntime" type="System.Workflow.Runtime.Configuration.WorkflowRuntimeSection, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</
configSections>
<
appSettings/>
<
connectionStrings/>
<
system.web>
<compilation debug="true">
<
assemblies>
<
add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Workflow.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="Microsoft.Build.Framework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</
assemblies>
</
compilation>
<authentication mode="Windows" />
</system.web>
<WorkflowRuntime name="WorkflowServiceContainer">
<
Services>
<
add type="System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!--
<add type="System.Workflow.Runtime.Hosting.DefaultWorkflowTransactionService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
<
add type="System.Workflow.Activities.ExternalDataExchangeService, System.Workflow.Activities, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</
Services>
</
WorkflowRuntime>
</
configuration>

And here is the compilation errors :
Message 1 Could not find schema information for the element 'WorkflowRuntime'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 58 4 C:\...\TTS-preview\
Message 2 Could not find schema information for the attribute 'name'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 58 20 C:\...\TTS-preview\
Message 3 Could not find schema information for the element 'Services'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 59 6 C:\...\TTS-preview\
Message 4 Could not find schema information for the element 'add'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 60 8 C:\...\TTS-preview\
Message 5 Could not find schema information for the attribute 'type'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 60 12 C:\...\TTS-preview\
Message 6 Could not find schema information for the element 'add'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 62 8 C:\...\TTS-preview\
Message 7 Could not find schema information for the attribute 'type'. C:\Visual Studio 2005\WebSites\TTS-preview\Web.config 62 12 C:\...\TTS-preview\
...

The exemple has no problem while building

Any idea please



Re: web.config and state machine workflow problem

Matt Milner - Pluralsight


Those look like simple warnings on the schema information to me. If your build fails, it is because you treat warnings as errors.

The thing to check for as a difference between your config and a sample would be the xml namespace on the <configuration> element at the top of the file. I'm guessing one of them has a namespace and the other does not.

Matt







databaseforum