1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / 404 Error when browing to domain.com/sitefinity

404 Error when browing to domain.com/sitefinity

12 posts, 0 answered
  1. Richard
    Richard avatar
    164 posts
    Registered:
    21 Nov 2009
    24 Jan 2011
    Link to this post
    Hi... Have got site to work in IIS7 by adding Network Service, etc, but I'm getting a 404 error when trying to browse to the domain.com/sitefinity admin screen... any ideas? thanks...
  2. Richard
    Richard avatar
    164 posts
    Registered:
    21 Nov 2009
    24 Jan 2011
    Link to this post
    I've now gone back and opened the admin screen from the project screen locally which opens, but when I go back to the live site, I'm getting this:

    Server Error in '/' Application.

     


     

    Cannot open user default database. Login failed.
    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

    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: Telerik.OpenAccess.RT.sql.SQLException: Cannot open user default database. Login failed.
    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

    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:

    [SQLException: Cannot open user default database. Login failed.
    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
       Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps) +613
       OpenAccessRuntime.Relational.conn.RelationalConnectionPool.createRealCon() +219
    
    [DataStoreException: Unable to connect to Backend=mssql;Driver=genericADO2;Server=.;Instance=SQLEXPRESS;Database=-;Integrated Security=true;AttachDBFilename=C:\Sitefinity\Projects\test\App_Data\Sitefinity.mdf;:
    Telerik.OpenAccess.RT.sql.SQLException: Cannot open user default database. Login failed.
    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
       at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps)
       at OpenAccessRuntime.Relational.conn.RelationalConnectionPool.createRealCon()
    DBDriver: Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver
    LOCK_TIMEOUT=5000
    useUTCForReads=1 Telerik.OpenAccess.RT.sql.SQLException: Cannot open user default database. Login failed.
    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
       at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps)
       at OpenAccessRuntime.Relational.conn.RelationalConnectionPool.createRealCon()]
       DynamicModule.ns.Wrapped_OpenAccessPageProvider_2327afd725604f8086720095cd061ebd.Initialize(String providerName, NameValueCollection config, Type managerType) +195
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +1477
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +63
       Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +161
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +131
       Telerik.Sitefinity.Modules.Pages.PageManager..ctor() +35
       Telerik.Sitefinity.Modules.Pages.PageManager..cctor() +35
    
    [TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Modules.Pages.PageManager' threw an exception.]
       Telerik.Sitefinity.Modules.Pages.PageManager.GetManager(String providerName) +0
       Telerik.Sitefinity.Web.SiteMapBase.Initialize(String name, NameValueCollection attributes) +583
       Telerik.Sitefinity.Web.SiteMapBase.GetSiteMapProvider(String rootName) +248
       Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase httpContext) +68
       System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +285
       System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
       System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

     


     

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 Jan 2011
    Link to this post
    Hi Richard Cross,

    Please make sure that Network Service account has a login in your SQL manager and is added to the db_owner for role for your database.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    22 Jun 2011
    Link to this post
    --Disregard-- error solved
  5. genesis
    genesis avatar
    2 posts
    Registered:
    02 Aug 2011
    03 Aug 2011
    Link to this post
    Hi i have got the same error when i trying to view my site domain.com/sitefinity...

    Server Error in '/' Application.

    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

    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: Telerik.OpenAccess.RT.sql.SQLException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

    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:

    [SQLException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
       Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps) +610
       OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, Driver& driver, Connection& conn) +239
    
    [AuthorizationException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
       DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_d8a9f496a4c34353a29a570264c0d8a5.Initialize(String providerName, NameValueCollection config, Type managerType) +197
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +1250
       Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +63
       Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +297
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +131
       Telerik.Sitefinity.Data.Metadata.MetadataManager..ctor() +12
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
       System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
       System.Activator.CreateInstance() +103
       Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +80
       Telerik.Sitefinity.Services.SystemManager.Initialize() +171
       Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +261
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +238
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +115
       System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
       System.Web.HttpApplication.InitModulesCommon() +172
       System.Web.HttpApplication.InitModules() +43
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


    I found some solution that "Please make sure that Network Service account has a login in your SQL manager and is added to the db_owner for role for your database." in this forum.. but how can i do this ? any ideas ?
    Thanks and Regards
    Maharajan
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 May 2017
    03 Aug 2011
    Link to this post
    Hello Genesis,

    1.Take a look at this post.
    2. You can assign the login to your database when you expand Users node of the database you want to modify and add NETWORK SERVICE account as a login. Please check attached screenshot.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. genesis
    genesis avatar
    2 posts
    Registered:
    02 Aug 2011
    05 Aug 2011
    Link to this post
    Hi
    This works great.

    There is another problem i got.

     Im using Sitefinity 4.1 SP3 version on my server. when i trying to create and publish my new template with custom master file (which is developed by me) in my server using IIS  it works fine.

    But if i suppose to publish my new template or page from another PC or remote computer using domain.com it does not allow me to publish or create page or templates. it shows "undefined" popup message while create the custom templete. pls see the attached file for undefined error.

    Pls help on this. how to fix this. its very urgent.

    Regards
    Genesis

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 May 2017
    05 Aug 2011
    Link to this post
    Hi Genesis,

    Check for js errors using FireBug and also enable Service Tracer log that will provide some more info about the error.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Roopesh
    Roopesh avatar
    39 posts
    Registered:
    29 Oct 2010
    15 Aug 2011
    Link to this post
    Hello Ivan ,

    Please help me to solve this . I created a sitefinity application for my client. I am using 4.1 version .It working fine in my local machine . When I upload to my client server I am getting few errors. Mainly I am not getting the titles edit window screen properly. You can see it in the attached image. And also when i save new title its giving my 'undefined' java script  error. I used Error console to track the error . But  I could not see any issue in the javascript error console. Could you please help me

    Thank you
    Roopesh
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 May 2017
    16 Aug 2011
    Link to this post
    Hello Roopesh,

    Most probably you have added some styles and customs scripts on the page or template and this causes the issue.Could you try using one of the built-in templates without adding your custom styles and scripts and see whether the issue will appear?

    Also make sure that you have followed all installation and  deployment steps.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. Roopesh
    Roopesh avatar
    39 posts
    Registered:
    29 Oct 2010
    16 Aug 2011
    Link to this post
    Hello Ivan,
    I followed all your instructions . and it worked great.

    Thank you so much for your great help

    Kind Regards
    Roopesh
  12. CRanaboldo
    CRanaboldo avatar
    18 posts
    Registered:
    09 Jul 2007
    03 Sep 2011
    Link to this post

    After a couple of happy hours frustration, following 4.1 to 4.2 upgrade,  where I could see and edits site through Sitefinity Project Manager but kept getting Cannot open user default database. Login failed.
    Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. when browsing live site I finally found that closing and exiting the project manager made the issue disappear, very frustrating saturday.

     



    Hope that this helps someone else

    Charles
12 posts, 0 answered