Sequence has no elements |
Exception message: Sequence has no elements
Mostly when starting the application. The exception message "Sequence has no elements" is displayed.
If you use SOWI App Standard to access a database, the SOWI APP configuration file could not exist or is not copied to the corresponding directory.
The application has no attribute EntryAssembly (file \Properties\AssemblyInfo.cs), so the configuration can not be read (Debug, Test, Release).
Requirement: existing App_Data\SOWIApp.sconfig at project directory and set the following settings. Project file setting (SOWIApp.sconfig and his *.xsd files): "Includ In Project" (Solution Explorer). File property "Copy to output Directory" set on "Copy always"
See also Environment
Requirement: set the attribute EntryAssembly in file \Properties\AssemblyInfo.cs in the application project.
See also SICEntryAssemblyAttribute