Our new Outlook Inspired Application Template helps you turn a basic, starter project template to into a fully working application in minutes. Learn how to incorporate scheduling into your application and how to add the data layers to complete the application.
-
I've attached the database to SQLServer Express 11.0.2100 and changed:
public const string ConnectionString = @"XpoProvider=MSSqlServer;data source=(local);User ID=sa;Password=###;integrated security=SSPI;initial catalog=TaskDatabase"; (### is my password)Got an error in:
XpoDefault.DataLayer = XpoDefault.GetDataLayer(ConnectionString, autoCreateOption);Fehler beim Öffnen der Datenbank. Verbindungs Zeichenfolge: 'data source=(local);User ID=sa;Password=kohnle;integrated security=SSPI;initial catalog=TaskDatabase;'; Fehler: 'System.Data.SqlClient.SqlException: Netzwerkbezogener oder instanzspezifischer Fehler beim Herstellen einer Verbindung mit SQL Server. Der Server wurde nicht gefunden, oder auf ihn kann nicht zugegriffen werden. Überprüfen Sie, ob der Instanzname richtig ist und ob SQL Server Remoteverbindungen zulässt. (provider: Named Pipes-Provider, error: 40 - Verbindung mit SQL Server konnte nicht geöffnet werden)
bei System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
bei System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
bei System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
bei System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
bei System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars.Helpers;
namespace TaskManager
{
public partial class Form1 : RibbonForm
{
public Form1()
{
InitializeComponent();
InitSkinGallery();
schedulerControl.Start = System.DateTime.Now;
}
void InitSkinGallery()
{
SkinHelper.InitSkinGallery(rgbiSkins, true);
}
}
}
Facebook
Twitter
Google+