This project is read-only.

I get this error when i click on "Permission, Groups, Users, Settings"

Jan 18, 2013 at 10:53 AM

I get below error when i click on :

Permission, Groups, Users, Settings

Server Error in '/' Application.

Sequence contains no elements

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.InvalidOperationException: Sequence contains no elements

Source Error: 

Line 33:     public static style Get(dbDataContext db, int theme)
Line 34:     {
Line 35:         return db.styles.First(t => t.id == theme);
Line 36:     }
Line 37: 


Source File: c:\Inetpub\it-ticket\App_Code\Themes.cs    Line: 35 

Stack Trace: 

[InvalidOperationException: Sequence contains no elements]
   System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +847
   System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +113
   System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +344
   System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute(Expression expression) +49
   System.Linq.Queryable.First(IQueryable`1 source, Expression`1 predicate) +301
   Themes.Get(dbDataContext db, Int32 theme) in c:\Inetpub\it-ticket\App_Code\Themes.cs:35
   admin_settings.setThemeColorsToCurrent(Int32 theme) in c:\Inetpub\it-ticket\admin\settings.aspx.cs:55
   admin_settings.resetTheme() in c:\Inetpub\it-ticket\admin\settings.aspx.cs:45
   admin_settings.Page_Load(Object sender, EventArgs e) in c:\Inetpub\it-ticket\admin\settings.aspx.cs:33
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Jan 18, 2013 at 3:11 PM

Looks like for some reason your styles were not loaded.  Try going through the setup again - they should have been loaded from the xml file.

Jan 21, 2013 at 7:10 AM
Edited Jan 21, 2013 at 7:10 AM

you right ... reinstall solved it