Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

How to do local set up for episerver MVC project.

Vote:
 

Hi,

I have a episerver MVC project and i need to do a local set up for the same.

My system configuratio  is:

Windows 8.1

Episerver 7

IIS 8.0

Visual Studio 13

Please provide a detail step on how to set up locally.

Thanks.

#139210
Sep 25, 2015 21:04
Vote:
 

Hello Devendra

I suggest you read the getting started guide: http://world.episerver.com/documentation/cms/get-started-with-cms/

David

#139211
Sep 25, 2015 21:30
Vote:
 

Hi David,

The project set up is already with me but i am not able to set up with the provided system configuration.

Am getting error: "No Connection could be made because the target machine actively refused it"

Thanks

#139212
Edited, Sep 26, 2015 5:51
Vote:
 
  • Is there any more detail in the event log?
  • Are you runing Visual Studio as an administrator
  • Do you have full access rights to the folder that EPiServer is installed in?
#139218
Sep 26, 2015 11:34
Vote:
 

Hi David

I am the administrator to the system.

Yes am running visual studio as an administrator.

below is the complete error from event log

===================================================================================================

Event code: 3005 Event message: An unhandled exception has occurred. Event time: 9/26/2015 2:55:06 PM Event time (UTC): 9/26/2015 9:25:06 AM Event ID: c6764ebc5bc14e3ba33add74b9d8f092 Event sequence: 1 Event occurrence: 1 Event detail code: 0  Application information:     Application domain: /LM/W3SVC/19/ROOT-9-130877329663041442     Trust level: Full     Application Virtual Path: /     Application Path: C:\EPiServer\Sites\Mysite\Mysite.Web\     Machine name: HYDPCM99132L  Process information:     Process ID: 7372     Process name: iisexpress.exe     Account name: domain\username  Exception information:     Exception type: TargetInvocationException     Exception message: Exception has been thrown by the target of an invocation.   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)   at System.Activator.CreateInstance(Type type, Boolean nonPublic)   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)   at System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args)   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
One or more errors occurred.   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)   at EPiServer.Initialization.CmsCoreInitialization.Initialize(InitializationEngine context)   at EPiServer.Framework.Initialization.ModuleNode.<>c__DisplayClass5.<Initialize>b__4()   at EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key)   at EPiServer.Framework.Initialization.ModuleNode.Initialize(InitializationEngine context)   at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()   at EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType)   at EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType)   at EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType)   at EPiServer.Global..ctor()   at Reebok.Web.Global..ctor()   at ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\36d0e4d0\d7d2f3d3\App_global.asax.vrnxvqu3.0.cs:line 0
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: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)   at System.Data.SqlClient.SqlConnection.Open()   at EPiServer.Data.Providers.ConnectionContext.OpenConnection()   at EPiServer.Data.Providers.SqlDatabaseHandler.GetConnection(Boolean requireTransaction)   at EPiServer.Data.Providers.SqlDatabaseHandler.<>c__DisplayClass1`1.<Execute>b__0()   at EPiServer.Data.Providers.SqlDeadlockRetryPolicy.Execute[TResult](Boolean isInTransaction, Func`1 method)   at EPiServer.Data.Providers.SqlDatabaseHandler.Execute[TResult](Func`1 action)   at EPiServer.Data.Providers.SqlDatabaseHandler.Execute(Action action)   at EPiServer.Data.Dynamic.Providers.DbDataStoreProvider.ValidateVersion()   at EPiServer.Data.Dynamic.Providers.DbDataStoreProvider.Initialize(String name, NameValueCollection config)   at EPiServer.Data.Dynamic.Providers.DataStoreProvider.CreateInstance(ProviderSettings providerSettings)   at EPiServer.Data.Dynamic.Providers.DataStoreProvider.CreateInstance()   at EPiServer.Data.Dynamic.StoreDefinition.<>c__DisplayClass1.<InternalGet>b__0()   at EPiServer.Data.Cache.LocalCache`2.Add(TKey key, Boolean cacheNullValues, Boolean overwriteExistingValue, Func`1 action)   at EPiServer.Data.Cache.ReplicatedCache`1.Add(String key, Boolean cacheNullValues, Boolean overwriteExistingValue, Func`1 action, Boolean broadcast)   at EPiServer.Data.Dynamic.StoreDefinition.InternalGet(String storeName)   at EPiServer.Data.Dynamic.EPiServerDynamicDataStoreFactory.CreateStore(String storeName, Type type, StoreDefinitionParameters parameters)   at EPiServer.Data.Dynamic.EPiServerDynamicDataStoreFactory.CreateStore(Type type)   at EPiServer.Initialization.CmsCoreInitialization.InitializeDynamicDataStore()   at EPiServer.Initialization.CmsCoreInitialization.<Initialize>b__2()   at System.Threading.Tasks.Task.InnerInvoke()   at System.Threading.Tasks.Task.Execute()
No connection could be made because the target machine actively refused it
  Request information:     Request URL: http://localhost:38071/     Request path: /     User host address: ::1     User:      Is authenticated: False     Authentication Type:      Thread account name: domain\username  Thread information:     Thread ID: 15     Thread account name: domain\username    Is impersonating: False     Stack trace:    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)   at System.Activator.CreateInstance(Type type, Boolean nonPublic)   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)   at System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args)   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)  Custom event details: 

Thanks.

#139221
Sep 26, 2015 12:46
Vote:
 

In your stack trace there is:

"....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..." 

Is not just a problem with ConnectionString? Are you able to login to SQL with settings from your ConnectionString?

#139222
Sep 26, 2015 20:50
Vote:
 

Yes I am able to run properly without any issue.

Now i have figured out this issue, but now am getting below issue when am running application.

====================================================

Server Error in '/' Application.

EPiServer 7.0.586.24 can only be used with database version 7003, current version is 6201. Make sure both database and assemblies are upgraded correctly. 

================================================

Thanks.

#139223
Edited, Sep 27, 2015 4:47
Vote:
 

The core of episerver require a database with a higher version number ie. you have tried to connect an old database to a newer solution. Not sure if possible but there is an update command in nuget package manager console if you have the correct version of episerver. If not you are able to update a database via the deployment center tool. That tool is available for version of episerver to 7.5 after that they use nuget inside visual studio. But do be able to use episerver nuget you also need to configure VS to use the nuget feed that can be found at http://nuget.episerver.com

#139419
Oct 01, 2015 22:46
Vote:
 

Can you try running the Update-EPiDatabase command in the Nuget package manager console?

#139423
Oct 02, 2015 7:42
Vote:
 

As Eric mentioned you need to use Deployment center to upgdate when you have CMS verison 7.0. Updates using NuGet start from after CMS 7.5. But your database seem to be even older, I'm guessing CMS 6. That can hardly be an MVC site (MVC was first supported in 7.0), are you perhaps connected to the wrong database?

#139425
Oct 02, 2015 8:21
Vote:
 

Ah, good point @Magnus and @Eric.
"Do you remember back in the old days, when we used Deployment center?" Aparently, I do not :) 

#139427
Oct 02, 2015 8:26
Vote:
 

Haha well I had the pleasure to work with the good old tool the other day :) nice to use actually when you need to install db on a sql server directly

#139440
Oct 02, 2015 10:03
Vote:
 

Hi

Thanks for supporting here.

i ran the SQL script for episerver 7.0 database.

Now i am able to run the site.

 

#139481
Oct 03, 2015 9:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.