Vydělávej až 160.000 Kč měsíčně! Akreditované rekvalifikační kurzy s garancí práce od 0 Kč. Více informací.
Hledáme nové posily do ITnetwork týmu. Podívej se na volné pozice a přidej se do nejagilnější firmy na trhu - Více informací.
Avatar
N-nojmi
Člen
Avatar
N-nojmi:7.1.2015 10:48

Zdarvím,

chtěl bych se zeptat, jestli někdo má zkušenosti s nasazováním webu v ASP.NET na internet. Rady na ČESKÉ FREEHOSTINGY, a popis jak na to.

Předem díky;)

Odpovědět
7.1.2015 10:48
Není hloupých lidí, jen lidí co málo používají google...
Avatar
Lako
Člen
Avatar
Odpovídá na N-nojmi
Lako:7.1.2015 12:17

Doporučuji http://aspone.cz
máš tam free variantu, která je na testování dostačující.
30 MB prostoru a stejně velkou databázi.
Přístup přes ftp (takže jednoduchý upload z Visal studia na 2 kliknutí)..

 
Nahoru Odpovědět
7.1.2015 12:17
Avatar
Odpovídá na N-nojmi
Michal Štěpánek:7.1.2015 12:18

Taky používám na testování a zkoušení ASPONE...

Nahoru Odpovědět
7.1.2015 12:18
Nikdy neříkej nahlas, že to nejde. Vždycky se totiž najde blbec, který to neví a udělá to...
Avatar
N-nojmi
Člen
Avatar
N-nojmi:7.1.2015 12:23

Super díky, ještě muže mě zasvětit do toho uploadu na 2 kliknutí ? :D

Nahoru Odpovědět
7.1.2015 12:23
Není hloupých lidí, jen lidí co málo používají google...
Avatar
Odpovídá na N-nojmi
Michal Štěpánek:7.1.2015 13:59

Ve VS si dáš Publikovat a nastavíš si tam cestu a všechny potřebné údaje. Pak už je to jednoduché...

Nahoru Odpovědět
7.1.2015 13:59
Nikdy neříkej nahlas, že to nejde. Vždycky se totiž najde blbec, který to neví a udělá to...
Avatar
N-nojmi
Člen
Avatar
Nahoru Odpovědět
7.1.2015 14:46
Není hloupých lidí, jen lidí co málo používají google...
Avatar
N-nojmi
Člen
Avatar
Odpovídá na Michal Štěpánek
N-nojmi:7.1.2015 16:05

našel jsem nějaké návody které ještě pracují přes IIS, je to ono?

Nahoru Odpovědět
7.1.2015 16:05
Není hloupých lidí, jen lidí co málo používají google...
Avatar
Odpovídá na N-nojmi
Michal Štěpánek:7.1.2015 16:06

Jaké návody?

Nahoru Odpovědět
7.1.2015 16:06
Nikdy neříkej nahlas, že to nejde. Vždycky se totiž najde blbec, který to neví a udělá to...
Avatar
N-nojmi
Člen
Avatar
Odpovídá na Michal Štěpánek
N-nojmi:7.1.2015 16:29

no návody jak publikovat :D

Nahoru Odpovědět
7.1.2015 16:29
Není hloupých lidí, jen lidí co málo používají google...
Avatar
Odpovídá na N-nojmi
Matyáš Černohous:7.1.2015 16:49

Klikneš na solution explorer, pak klikneš na solution projektu pravým a pak v nabídce na publish. Vyskočí ti okno a tam už jen nastavíš fpt.

Akceptované řešení
+20 Zkušeností
+2,50 Kč
Řešení problému
 
Nahoru Odpovědět
7.1.2015 16:49
Avatar
Odpovídá na N-nojmi
Michal Štěpánek:7.1.2015 18:00

Přesně jak píše Matyáš Černohous , není na to třeba žádný návod
Sestavit -> publikovat...

Nahoru Odpovědět
7.1.2015 18:00
Nikdy neříkej nahlas, že to nejde. Vždycky se totiž najde blbec, který to neví a udělá to...
Avatar
Maros2470
Člen
Avatar
Odpovídá na Michal Štěpánek
Maros2470:8.1.2015 10:28

Zdravím tě. Občas tady kouknu na fórum a tak jsem tady narazil na aspone.cz. Zkusil jsem publikovat aplikaci, ale vyhazuje mi to chybové hlášení:
Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirec­t="mycustompa­ge.htm"/>
</system.web>
</configuration>

Mohl bys mi poradit? Díky

 
Nahoru Odpovědět
8.1.2015 10:28
Avatar
Odpovídá na Maros2470
Michal Štěpánek:8.1.2015 10:49

Píše ti, že si musíš ve web.config povolit zobrazení chyb, pak se ti tam zobrazí, kde je problém...

Nahoru Odpovědět
8.1.2015 10:49
Nikdy neříkej nahlas, že to nejde. Vždycky se totiž najde blbec, který to neví a udělá to...
Avatar
Maros2470
Člen
Avatar
Odpovídá na Michal Štěpánek
Maros2470:8.1.2015 10:53

Tak jsem to povolil a vypisuje mi to tohle:

Inheritance security rules violated while overriding member: 'Microsoft.As­pNet.Identity­.TaskExtension­s+CultureAwai­ter`1<T>.Unsa­feOnCompleted(Sys­tem.Action)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

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.TypeLo­adException: Inheritance security rules violated while overriding member: 'Microsoft.As­pNet.Identity­.TaskExtension­s+CultureAwai­ter`1<T>.Unsa­feOnCompleted(Sys­tem.Action)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TypeLoadException: Inheritance security rules violated while overriding member: 'Microsoft.As­pNet.Identity­.TaskExtension­s+CultureAwai­ter`1<T>.Unsa­feOnCompleted(Sys­tem.Action)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.]
Microsoft.AspNet­.Identity.Role­Manager`2.Role­ExistsAsync(String roleName) +0
Microsoft.AspNet­.Identity.<>c__Dis­playClass10`2­.<RoleExists>b__f() +18
Microsoft.AspNet­.Identity.<>c__Dis­playClass1`1.<Run­Sync>b__0() +50
System.Threadin­g.Tasks.Task`1­.InnerInvoke() +60
System.Threadin­g.Tasks.Task.E­xecute() +45
System.Runtime­.CompilerServi­ces.TaskAwaiter­.ThrowForNonSuc­cess(Task task) +93
System.Runtime­.CompilerServi­ces.TaskAwaiter­.HandleNonSuc­cessAndDebugger­Notification(Task task) +52
Microsoft.AspNet­.Identity.Asyn­cHelper.RunSyn­c(Func`1 func) +166
Microsoft.AspNet­.Identity.Role­ManagerExtensi­ons.RoleExists(Ro­leManager`2 manager, String roleName) +104
Spotrebice.Spo­trebice.Spotre­biceRole.crea­teSpotr() +115
Spotrebice.Glo­bal.Applicati­on_Start(Object sender, EventArgs e) +47

[HttpException (0x80004005): Inheritance security rules violated while overriding member: 'Microsoft.As­pNet.Identity­.TaskExtension­s+CultureAwai­ter`1<T>.Unsa­feOnCompleted(Sys­tem.Action)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.]
System.Web.HttpAp­plicationFacto­ry.EnsureAppStar­tCalledForInte­gratedMode(HttpCon­text context, HttpApplication app) +9936761
System.Web.HttpAp­plication.Regis­terEventSubscrip­tionsWithIIS(In­tPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpAp­plication.Init­Special(HttpAp­plicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpAp­plicationFacto­ry.GetSpecialAp­plicationInstan­ce(IntPtr appContext, HttpContext context) +336
System.Web.Hos­ting.Pipeline­Runtime.Initi­alizeApplicati­on(IntPtr appContext) +296

[HttpException (0x80004005): Inheritance security rules violated while overriding member: 'Microsoft.As­pNet.Identity­.TaskExtension­s+CultureAwai­ter`1<T>.Unsa­feOnCompleted(Sys­tem.Action)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.]
System.Web.HttpRun­time.FirstRequ­estInit(HttpCon­text context) +9915300
System.Web.HttpRun­time.EnsureFir­stRequestInit(HttpCon­text context) +101
System.Web.HttpRun­time.ProcessRe­questNotifica­tionPrivate(I­IS7WorkerRequ­est wr, HttpContext context) +254

Když aplikaci spustím přímo z VS tak běží normálně.

 
Nahoru Odpovědět
8.1.2015 10:53
Avatar
Odpovídá na Maros2470
Matyáš Černohous:8.1.2015 10:57

Myslím, že by mohlo pomoci, když do Web.config přidáš trust mode level.

<system.web>
    <customErrors mode="Off"/>

 !!!! <trust level="Full" /> !!!!!


    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
  </system.web>
Editováno 8.1.2015 10:58
 
Nahoru Odpovědět
8.1.2015 10:57
Avatar
Maros2470
Člen
Avatar
Odpovídá na Matyáš Černohous
Maros2470:8.1.2015 11:05

Opět chyba:
Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized element.

Source Error:

Line 20: </connectionStrin­gs>
Line 21: <system.web>
Line 22: <customErrors mode="Off"/>
Line 23:
Line 24: !!!! <trust level="Full" /> !!!!!

Clý config mám takto:

<?xml version="1.0" encoding="utf-8"?>
<!--
  Další informace o konfiguraci aplikace ASP.NET naleznete na webu
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-Spotrebice-20140927072246.mdf;Initial Catalog=aspnet-Spotrebice-20140927072246;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    <add name="SpotrebiceEntities" connectionString="metadata=res://*/MyModel.csdl|res://*/MyModel.ssdl|res://*/MyModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\Spotrebice.mdf;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;"
      providerName="System.Data.EntityClient" />
    <add name="ConnectionString" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Spotrebice.mdf;Integrated Security=True;Connect Timeout=30"
      providerName="System.Data.SqlClient" />
    <add name="ConnectionString2" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\SpravaDat.mdf;Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
     <customErrors mode="Off"/>

  !!!! <trust level="Full" /> !!!!!






    <authentication mode="None" />
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <pages>
      <namespaces>
        <add namespace="System.Web.Optimization" />
        <add namespace="Microsoft.AspNet.Identity" />
      </namespaces>
      <controls>
        <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
      </controls>
    </pages>
    <membership>
      <providers>
        <!--
              V této šabloně je zakázáno členství technologie ASP.NET. Další informace o podpoře členství technologie ASP.NET v této šabloně zobrazíte po kliknutí na následující odkaz: http://go.microsoft.com/fwlink/?LinkId=301889.
        -->
        <clear />
      </providers>
    </membership>
    <profile>
      <providers>
        <!--
              V této šabloně je zakázán profil členství technologie ASP.NET. Další informace o podpoře členství technologie ASP.NET v této šabloně zobrazíte po kliknutí na následující odkaz: http://go.microsoft.com/fwlink/?LinkId=301889.
        -->
        <clear />
      </providers>
    </profile>
    <roleManager>
      <!--
                V této šabloně je zakázána role členství technologie ASP.NET. Další informace o podpoře členství technologie ASP.NET v této šabloně zobrazíte po kliknutí na následující odkaz: http://go.microsoft.com/fwlink/?LinkId=301889.
        -->
      <providers>
        <clear />
      </providers>
    </roleManager>
    <!--
            Pokud provádíte nasazení v prostředí cloudu s několika instancemi webového serveru,
            měli byste změnit režim stavu relace z hodnoty InProc na hodnotu Custom. Dále
            změňte připojovací řetězec nazvaný DefaultConnection pro připojení k instanci
            serveru SQL Server (včetně SQL Azure a SQL Compact), a nikoli k serveru SQL Server Express.
      -->
    <sessionState mode="InProc" customProvider="DefaultSessionProvider">
      <providers>
        <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
      </providers>
    </sessionState>
  </system.web>
  <system.webServer>
    <modules>
      <remove name="FormsAuthentication" />
    </modules>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
</configuration>
 
Nahoru Odpovědět
8.1.2015 11:05
Avatar
Odpovídá na Maros2470
Michal Štěpánek:8.1.2015 11:07

bez těch vykřičníků

Nahoru Odpovědět
8.1.2015 11:07
Nikdy neříkej nahlas, že to nejde. Vždycky se totiž najde blbec, který to neví a udělá to...
Avatar
Maros2470
Člen
Avatar
Odpovídá na Michal Štěpánek
Maros2470:8.1.2015 11:13

Teď to má problém s databází:
Server Error in '/' Application.

The system cannot find the file specified

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.Componen­tModel.Win32Ex­ception: The system cannot find the file specified

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Win32Exception (0x80004005): The system cannot find the file specified]

[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)]
System.Data.SqlCli­ent.SqlInternal­Connection.OnE­rror(SqlExcep­tion exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352431
System.Data.SqlCli­ent.TdsParser­.ThrowExcepti­onAndWarning(TdsPar­serStateObject stateObj, Boolean callerHasConnec­tionLock, Boolean asyncClose) +244
System.Data.SqlCli­ent.TdsParser­.Connect(Serve­rInfo serverInfo, SqlInternalCon­nectionTds connHandler, Boolean ignoreSniOpen­Timeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) +5363103
System.Data.SqlCli­ent.SqlInternal­ConnectionTds­.AttemptOneLo­gin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpen­Timeout, TimeoutTimer timeout, Boolean withFailover) +145
System.Data.SqlCli­ent.SqlInternal­ConnectionTds­.LoginNoFailo­ver(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUse­rInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +922
System.Data.SqlCli­ent.SqlInternal­ConnectionTds­.OpenLoginEnlis­t(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUse­rInstance) +307
System.Data.SqlCli­ent.SqlInternal­ConnectionTds­..ctor(DbConnec­tionPoolIdenti­ty identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUse­rInstance, SqlConnectionString userConnectio­nOptions, SessionData reconnectSessi­onData) +518
System.Data.SqlCli­ent.SqlConnec­tionFactory.Cre­ateConnection(DbCon­nectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProvi­derInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +278
System.Data.Pro­viderBase.DbCon­nectionFactory­.CreatePooled­Connection(DbCon­nectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +38
System.Data.Pro­viderBase.DbCon­nectionPool.Cre­ateObject(DbCon­nection owningObject, DbConnectionOptions userOptions, DbConnectionIn­ternal oldConnection) +732
System.Data.Pro­viderBase.DbCon­nectionPool.U­serCreateRequ­est(DbConnecti­on owningObject, DbConnectionOptions userOptions, DbConnectionIn­ternal oldConnection) +85
System.Data.Pro­viderBase.DbCon­nectionPool.Try­GetConnection(DbCon­nection owningObject, UInt32 waitForMultiple­ObjectsTimeou­t, Boolean allowCreate, Boolean onlyOneCheckCon­nection, DbConnectionOptions userOptions, DbConnectionIn­ternal& connection) +1057
System.Data.Pro­viderBase.DbCon­nectionPool.Try­GetConnection(DbCon­nection owningObject, TaskCompletion­Source`1 retry, DbConnectionOptions userOptions, DbConnectionIn­ternal& connection) +78
System.Data.Pro­viderBase.DbCon­nectionFactory­.TryGetConnec­tion(DbConnec­tion owningConnection, TaskCompletion­Source`1 retry, DbConnectionOptions userOptions, DbConnectionIn­ternal oldConnection, DbConnectionIn­ternal& connection) +196
System.Data.Pro­viderBase.DbCon­nectionInternal­.TryOpenConnec­tionInternal(DbCon­nection outerConnection, DbConnectionFactory connectionFactory, TaskCompletion­Source`1 retry, DbConnectionOptions userOptions) +146
System.Data.Pro­viderBase.DbCon­nectionClosed­.TryOpenConnec­tion(DbConnec­tion outerConnection, DbConnectionFactory connectionFactory, TaskCompletion­Source`1 retry, DbConnectionOptions userOptions) +16
System.Data.SqlCli­ent.SqlConnec­tion.TryOpenIn­ner(TaskComple­tionSource`1 retry) +94
System.Data.SqlCli­ent.SqlConnec­tion.TryOpen(Tas­kCompletionSou­rce`1 retry) +110
System.Data.SqlCli­ent.SqlConnec­tion.Open() +96
System.Data.En­tity.Infrastruc­ture.Intercep­tion.DbConnec­tionDispatcher­.<Open>b__36(Db­Connection t, DbConnectionIn­terceptionCon­text c) +10
System.Data.En­tity.Infrastruc­ture.Intercep­tion.Internal­Dispatcher1.Dispatch(TTarget target, Action2 operation, TInterception­Context interceptionCon­text, Action3 executing, Action3 executed) +72
System.Data.En­tity.Infrastruc­ture.Intercep­tion.DbConnec­tionDispatcher­.Open(DbConnec­tion connection, DbInterception­Context interceptionCon­text) +360
System.Data.En­tity.SqlServer­.<>c__Display­Class34.<Usin­gConnection>b__32() +337
System.Data.En­tity.SqlServer­.<>c__Display­Class1.<Execu­te>b__0() +10
System.Data.En­tity.SqlServer­.DefaultSqlExe­cutionStrategy­.Execute(Func`1 operation) +189
System.Data.En­tity.SqlServer­.DefaultSqlExe­cutionStrategy­.Execute(Acti­on operation) +78
System.Data.En­tity.SqlServer­.SqlProviderSer­vices.UsingCon­nection(DbCon­nection sqlConnection, Action`1 act) +244
System.Data.En­tity.SqlServer­.SqlProviderSer­vices.UsingMas­terConnection(DbCon­nection sqlConnection, Action`1 act) +557
System.Data.En­tity.SqlServer­.SqlProviderSer­vices.CreateDa­tabaseFromScrip­t(Nullable`1 commandTimeout, DbConnection sqlConnection, String createDatabaseS­cript) +86
System.Data.En­tity.SqlServer­.SqlProviderSer­vices.DbCreate­Database(DbCon­nection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollec­tion) +164
System.Data.En­tity.Core.Com­mon.DbProvider­Services.Crea­teDatabase(DbCon­nection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollec­tion) +75
System.Data.En­tity.Core.Objec­ts.ObjectContex­t.CreateDataba­se() +134
System.Data.En­tity.Migration­s.Utilities.Da­tabaseCreator­.Create(DbCon­nection connection) +140
System.Data.En­tity.Migration­s.DbMigrator.En­sureDatabaseE­xists(Action mustSucceedTo­KeepDatabase) +142
System.Data.En­tity.Migration­s.DbMigrator.Up­date(String targetMigration) +78
System.Data.En­tity.Internal­.DatabaseCrea­tor.CreateData­base(Internal­Context internalContext, Func`3 createMigrator, ObjectContext objectContext) +89
System.Data.En­tity.Internal­.InternalContex­t.CreateDataba­se(ObjectContext objectContext, DatabaseExisten­ceState existenceState) +116
System.Data.En­tity.Database­.Create(Databa­seExistenceSta­te existenceState) +218
System.Data.En­tity.CreateDa­tabaseIfNotExis­ts`1.Initiali­zeDatabase(TCon­text context) +197
System.Data.En­tity.Internal­.<>c__Display­Classf`1.<Cre­ateInitializa­tionAction>b__e() +76
System.Data.En­tity.Internal­.InternalContex­t.PerformIniti­alizationActi­on(Action action) +60
System.Data.En­tity.Internal­.InternalContex­t.PerformData­baseInitializa­tion() +357
System.Data.En­tity.Internal­.LazyInternal­Context.<Initi­alizeDatabase>b__4(In­ternalContext c) +7
System.Data.En­tity.Internal­.RetryAction`1­.PerformAction(TIn­put input) +110
System.Data.En­tity.Internal­.LazyInternal­Context.Initi­alizeDatabase­Action(Action`1 action) +198
System.Data.En­tity.Internal­.LazyInternal­Context.Initi­alizeDatabase() +73
System.Data.En­tity.Internal­.InternalContex­t.GetEntitySe­tAndBaseTypeFor­Type(Type entityType) +28
System.Data.En­tity.Internal­.Linq.Internal­Set`1.Initiali­ze() +53
System.Data.En­tity.Internal­.Linq.Internal­Set`1.get_Inter­nalContext() +15
System.Data.En­tity.Infrastruc­ture.DbQuery`1­.System.Linq.I­Queryable.get_Pro­vider() +38
System.Data.En­tity.Queryable­Extensions.Fir­stOrDefaultAsyn­c(IQueryable1 source, Expression1 predicate, CancellationToken cancellationToken) +138
System.Data.En­tity.Queryable­Extensions.Fir­stOrDefaultAsyn­c(IQueryable1 source, Expression1 predicate) +133
Microsoft.AspNet­.Identity.Enti­tyFramework.Ro­leStore`3.Fin­dByNameAsync(String roleName) +655
Microsoft.AspNet­.Identity.<Fin­dByNameAsync>d__13­.MoveNext() +118
System.Runtime­.CompilerServi­ces.TaskAwaiter­.ThrowForNonSuc­cess(Task task) +93
System.Runtime­.CompilerServi­ces.TaskAwaiter­.HandleNonSuc­cessAndDebugger­Notification(Task task) +52
Microsoft.AspNet­.Identity.Cul­tureAwaiter`1­.GetResult() +59
Microsoft.AspNet­.Identity.<Ro­leExistsAsync>d__d­.MoveNext() +289
System.Runtime­.CompilerServi­ces.TaskAwaiter­.ThrowForNonSuc­cess(Task task) +93
System.Runtime­.CompilerServi­ces.TaskAwaiter­.HandleNonSuc­cessAndDebugger­Notification(Task task) +52
Microsoft.AspNet­.Identity.Asyn­cHelper.RunSyn­c(Func`1 func) +166
Microsoft.AspNet­.Identity.Role­ManagerExtensi­ons.RoleExists(Ro­leManager`2 manager, String roleName) +104
Spotrebice.Spo­trebice.Spotre­biceRole.crea­teSpotr() +115
Spotrebice.Glo­bal.Applicati­on_Start(Object sender, EventArgs e) +47

[HttpException (0x80004005): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)]
System.Web.HttpAp­plicationFacto­ry.EnsureAppStar­tCalledForInte­gratedMode(HttpCon­text context, HttpApplication app) +9936761
System.Web.HttpAp­plication.Regis­terEventSubscrip­tionsWithIIS(In­tPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpAp­plication.Init­Special(HttpAp­plicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpAp­plicationFacto­ry.GetSpecialAp­plicationInstan­ce(IntPtr appContext, HttpContext context) +336
System.Web.Hos­ting.Pipeline­Runtime.Initi­alizeApplicati­on(IntPtr appContext) +296

[HttpException (0x80004005): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)]
System.Web.HttpRun­time.FirstRequ­estInit(HttpCon­text context) +9915300
System.Web.HttpRun­time.EnsureFir­stRequestInit(HttpCon­text context) +101
System.Web.HttpRun­time.ProcessRe­questNotifica­tionPrivate(I­IS7WorkerRequ­est wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319­.18449

 
Nahoru Odpovědět
8.1.2015 11:13
Avatar
Odpovídá na Maros2470
Matyáš Černohous:8.1.2015 11:19

Stačí si zadat kód chyby a hned zjistíš co se stalo...
Tahle chyba je chyba připojení k SQL serveru. Máš správně Connection String ? Je server dostupný ?

Editováno 8.1.2015 11:20
 
Nahoru Odpovědět
8.1.2015 11:19
Avatar
Maros2470
Člen
Avatar
Maros2470:8.1.2015 11:23

Už to šlape. Díky za rady.

 
Nahoru Odpovědět
8.1.2015 11:23
Děláme co je v našich silách, aby byly zdejší diskuze co nejkvalitnější. Proto do nich také mohou přispívat pouze registrovaní členové. Pro zapojení do diskuze se přihlas. Pokud ještě nemáš účet, zaregistruj se, je to zdarma.

Zobrazeno 20 zpráv z 20.