Deploying orchard.web to host iis web server

Topics: Administration, Core, General, Installing Orchard, Troubleshooting
Nov 7, 2014 at 11:59 AM
Hello guys,

i have problems with publishing my project to host server i had create new domain on my iis manager and i copied Orchard.Web folder to is after that i had set user IIS_USER permissions Modify READ WRITE to the four folders "App_Data,Media,Modules,Themes"

when i open my website i get
Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
and here is my log file can some help me please to solve this problem
2014-11-07 13:40:58,324 [12] Orchard.Environment.DefaultOrchardHost - (null) - A tenant could not be started: Default
http://sys.smg.com.tr/
NHibernate.Exceptions.GenericADOException: could not execute query
[ select shelldescr0_.Id as Id9_, shelldescr0_.SerialNumber as SerialNu2_9_ from Settings_ShellDescriptorRecord shelldescr0_ where shelldescr0_.Id is not null ]
[SQL: select shelldescr0_.Id as Id9_, shelldescr0_.SerialNumber as SerialNu2_9_ from Settings_ShellDescriptorRecord shelldescr0_ where shelldescr0_.Id is not null] ---> System.Data.SqlClient.SqlException: Invalid object name 'Settings_ShellDescriptorRecord'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource
1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\AdoNet\AbstractBatcher.cs:line 247
at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1226
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 421
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 251
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1564
--- End of inner exception stack trace ---
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1581
at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Loader\Loader.cs:line 1472
at NHibernate.Hql.Ast.ANTLR.Loader.QueryLoader.List(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Hql\Ast\ANTLR\Loader\QueryLoader.cs:line 288
at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.List(ISessionImplementor session, QueryParameters queryParameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Hql\Ast\ANTLR\QueryTranslatorImpl.cs:line 112
at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 116
at NHibernate.Impl.SessionImpl.List(IQueryExpression queryExpression, QueryParameters queryParameters, IList results) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\SessionImpl.cs:line 668
at NHibernate.Impl.AbstractSessionImpl.List(IQueryExpression queryExpression, QueryParameters parameters) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\AbstractSessionImpl.cs:line 93
at NHibernate.Impl.ExpressionQueryImpl.List() in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Impl\ExpressionQueryImpl.cs:line 61
at NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Linq\DefaultQueryProvider.cs:line 103
at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Linq\DefaultQueryProvider.cs:line 35
at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression) in c:\Users\sebros\Documents\My Projects\nhibernate-core\src\NHibernate\Linq\DefaultQueryProvider.cs:line 40
at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable1 source)
at Orchard.Data.Repository
1.Get(Expression1 predicate) in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard\Data\Repository.cs:line 91
at Orchard.Data.Repository
1.Orchard.Data.IRepository<T>.Get(Expression`1 predicate) in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard\Data\Repository.cs:line 60
at Orchard.Core.Settings.Descriptor.ShellDescriptorManager.GetDescriptorRecord() in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard.Web\Core\Settings\Descriptor\ShellDescriptorManager.cs:line 57
at Orchard.Core.Settings.Descriptor.ShellDescriptorManager.GetShellDescriptor() in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard.Web\Core\Settings\Descriptor\ShellDescriptorManager.cs:line 30
at Orchard.Environment.ShellBuilders.ShellContextFactory.CreateShellContext(ShellSettings settings) in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:line 66
at Orchard.Environment.DefaultOrchardHost.CreateShellContext(ShellSettings settings) in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard\Environment\DefaultOrchardHost.cs:line 185
at Orchard.Environment.DefaultOrchardHost.<CreateAndActivateShells>b__7(ShellSettings settings) in c:\Users\Ahmad.Kabakibi\Desktop\My Projects SMG\Web Application\Orchard\SMG.CMS\src\Orchard\Environment\DefaultOrchardHost.cs:line 135
Nov 7, 2014 at 3:16 PM
Edited Nov 7, 2014 at 4:14 PM
You could try the following:
1) Make sure the database specified in your App_Data\Sites\Default\Settings.txt can be accessed from the server hosting the site using the specified credentials
2) Delete the App_Data\Sites\Default\mappings.bin file
3) In IIS, Stop/Start your application pool (if possible) and stop/start your site

It's a long shot though, I'm not sure your bug is related to any of those step but it's usually where I start.
Nov 7, 2014 at 4:02 PM
Thank you for your reply,
actually after i was trying to debug my problem in my project i think i have problem with connection to SQL Server host even i connect to my exisit database i still get some errors related to my modules with it's tables i'm spit it step by step to detect the main error
Dec 4, 2014 at 6:52 AM
Make sure the physical folder have Network Service permission. (give everyone if it does not work)