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

Forums / Bugs & Issues / Error 404 on line 27 of Admin.master.cs

Error 404 on line 27 of Admin.master.cs

20 posts, 0 answered
  1. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    20 Feb 2009
    Link to this post

    I am getting the following error immediately after logging into a newly configured, cleanly installed Sitefinity 3.6 admin site.


     

    Server Error in '/' Application.

    The remote server returned an error: (404) Not Found.

    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.Net.WebException: The remote server returned an error: (404) Not Found.

    Source Error:

    Line 25:         this.langList.Visible = LocalizationManager.PersistenceMode != LocConfig.PersistenceMode.None;
    Line 26:         // END EXCLUDE FOR COMMUNITY
    Line 27: this.MainMenu.DataBind();Line 28:     }
    Line 29: 

    Source File: e:\wwwRoot\admissionstest1\Sitefinity\Admin\Admin.master.cs    Line: 27

    Stack Trace:

    [WebException: The remote server returned an error: (404) Not Found.]
       System.Net.HttpWebRequest.GetResponse() +1126
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +336
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +233
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +164
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +330
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +987
       Telerik.Notifications.Services.MailingServiceProxy..ctor() +54
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +121
       Telerik.ManagerBase`1.Initialize() +1297
       Telerik.ManagerBase`1..ctor(String providerName) +71
       Telerik.ManagerBase`1..ctor() +54
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +50
       Telerik.Notifications.Newsletters.DataManager..ctor() +54
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +114
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +117
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +45
       Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm) +215
       Telerik.Cms.Web.UI.Util.CheckMinimalPermissions(IModule module) +51
       Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +7342
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +27
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261
       Admin_Admin.Page_Load(Object sender, EventArgs e) in e:\wwwRoot\admissionstest1\Sitefinity\Admin\Admin.master.cs:27
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
       System.Web.UI.Control.OnLoad(EventArgs e) +132
       System.Web.UI.Control.LoadRecursive() +66
       System.Web.UI.Control.LoadRecursive() +191
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    The error goes away when I refresh the page, but as I am working with the admin site it recurrs occasionally.  Does anyone have any suggestions on how to fix this error?

    Thank you

    -nathan

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Feb 2009
    Link to this post
    Hi Nathan,

    It looks like there is a problem with notification services. Could you check whether you have the following file
    ~/Sitefinity/Admin/Services/MailingWebService.asmx. Probably the file does not exists there.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    23 Feb 2009
    Link to this post
    Ivan, thank you for looking into this.

    I have a 114 byte file by that name in the /Sitefinity/Admin/Services directory.  I checked its file permissions and they are the same as the other files in that directory and other files on the website.

    -nathan
  4. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    23 Feb 2009
    Link to this post
    I finally was able to grab the other 404 error I have been getting periodically.  Here it is:

     

    Server Error in '/' Application.

    The remote server returned an error: (404) Not Found.

    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.Net.WebException: The remote server returned an error: (404) Not Found.

    Source Error:

    Line 267:            foreach (IWebModule module in ModuleManager.GetWebModulesValues())
    Line 268:            {
    Line 269: if (module is SecuredModule && ((SecuredModule)module).CanCreate())Line 270:                    webModules.Add(module);
    Line 271:            }

    Source File: e:\wwwRoot\admissionstest1\Sitefinity\Admin\Default.aspx.cs    Line: 269

    Stack Trace:

    [WebException: The remote server returned an error: (404) Not Found.]
       System.Net.HttpWebRequest.GetResponse() +1126
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +336
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +233
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +164
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +330
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +987
       Telerik.Notifications.Services.MailingServiceProxy..ctor() +54
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +121
       Telerik.ManagerBase`1.Initialize() +1297
       Telerik.ManagerBase`1..ctor(String providerName) +71
       Telerik.ManagerBase`1..ctor() +54
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +50
       Telerik.Notifications.Newsletters.DataManager..ctor() +54
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +114
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +117
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +45
       Telerik.Security.Permissions.SecuredModule.CanCreate() +109
       Admin_Default.Page_Load(Object sender, EventArgs e) in e:\wwwRoot\admissionstest1\Sitefinity\Admin\Default.aspx.cs:269
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
       System.Web.UI.Control.OnLoad(EventArgs e) +132
       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +131
       Telerik.Cms.Web.AdminPage.OnLoad(EventArgs e) +62
       Admin_Default.OnLoad(EventArgs e) in e:\wwwRoot\admissionstest1\Sitefinity\Admin\Default.aspx.cs:69
       System.Web.UI.Control.LoadRecursive() +66
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053



    Does this help provide any additional information?
  5. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    23 Feb 2009
    Link to this post
    These are the lines from the IIS log when the above error occurred, looks like its actually a 500 error?

    2009-02-23 17:21:04 129.93.2.58 GET /Sitefinity/Admin/Default.aspx - 80 admin 129.93.31.46 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 500 0 0 4042
    2009-02-23 17:23:32 129.93.2.58 GET /Sitefinity/Admin/Default.aspx - 80 admin 129.93.31.46 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 500 0 0 3881
  6. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Feb 2009
    Link to this post
    i'm getting an error in the exact same page (same line and everything!) but my error is completely different (but I'm guessing not unrelated?)

     

    Server Error in '/' Application.

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Source Error:

    Line 25:         this.langList.Visible = LocalizationManager.PersistenceMode != LocConfig.PersistenceMode.None;
    Line 26:         // END EXCLUDE FOR COMMUNITY
    Line 27: this.MainMenu.DataBind();Line 28:     }
    Line 29: 

    Source File: c:\inetpub\McAllenNetNew\Sitefinity\Admin\Admin.master.cs    Line: 27

    Stack Trace:

    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
       System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0
       System.Reflection.Assembly.GetTypes() +105
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.CreateInstance(String objTypeName) +126
    
    [ProxyInstantiationException: An error occured while instantiating the proxy type.]
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.CreateInstance(String objTypeName) +444
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +320
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +210
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +573
       Telerik.Notifications.Services.MailingServiceProxy..ctor() +35
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +105
       Telerik.ManagerBase`1.Initialize() +687
       Telerik.ManagerBase`1..ctor(String providerName) +50
       Telerik.ManagerBase`1..ctor() +35
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +40
       Telerik.Notifications.Newsletters.DataManager..ctor() +35
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +76
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +95
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +34
       Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm) +150
       Telerik.Cms.Web.UI.Util.CheckMinimalPermissions(IModule module) +44
       Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +6437
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       Admin_Admin.Page_Load(Object sender, EventArgs e) in c:\inetpub\McAllenNetNew\Sitefinity\Admin\Admin.master.cs:27
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    
  7. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    23 Feb 2009
    Link to this post
    Two more IIS log errors:

    2009-02-23 18:00:17 129.93.2.58 GET /sitefinity/admin/templates.aspx select=c4dd15a9-e727-4e20-a280-bd726f43a538 80 admin 129.93.31.46 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 500 0 0 5445

    2009-02-23 17:48:13 129.93.2.58 GET /Sitefinity/Admin/Default.aspx - 80 admin 129.93.31.46 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 500 0 0 831
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Feb 2009
    Link to this post
    Hello Nathan,

    What I see from the stack trace is that the problem is related to newsletter module, notification services initializing. Try deleting the assemble that is generated under (if generated)
    ~/Sitefinity/ServiceAssemblie/
    Then access the application again. Let us know about the result.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    25 Feb 2009
    Link to this post
    Ivan,

    There was a file there and I was able delete it.  After deleting the file I tried logging into the website and did not encounter the error.  I will continue to check around in the site and see if it pops up again, as it was appearing both on login and also sporadically while moving around the site. 

    Thank you for the tip!  Is that a general toubleshooting thing to try, or something that should only be done in this specific instance?

    -nathan
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Feb 2009
    Link to this post
    Hi Nathan,

    The application generates a new assembly with new types of the current version which you have. By removing it you update the newsletter services which was throwing the error in your case.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  11. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    25 Feb 2009
    Link to this post
    i would just like to add that this fixed my errors as well... and it's in the instructions so I have no excuse :)

    thanks!
  12. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    26 Feb 2009
    Link to this post
    SelArom, I must have missed that section of the instructions, which means there are probably other important things I have missed.  Where did you find the mention of that file?  Sounds like I have some reading to do.

    Thank you

    -nathan
  13. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    26 Feb 2009
    Link to this post
    it is on the Upgrading Instructions link above the downloads list on your Client.net downloads page, Step #7. I glossed over it too. funny thing is that I remembered that it is required without reading the instructions, I just forgot to do it :)

    sitefinity team, might be a good idea to make that Instructions link a big yellow flashing graphic haha
  14. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Feb 2009
    Link to this post
    Hello SelArom,

    Thank you for the feedback.

    If the assemble is not removed the error is thrown, because there are old types- from the previous version. We will bold the number list.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  15. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    26 Feb 2009
    Link to this post
    What was strange to me is that I was getting the error not after an upgrade, but after a full clean install, but still good to know that is a trouble shooting step to check

    Thank you

    -nathan
  16. Dave
    Dave avatar
    37 posts
    Registered:
    26 Dec 2008
    10 Jul 2009
    Link to this post
    Hello!

    After upgrading to Sitefinity 3.6 I have a similar problem, but with different stack trace details.

    Source Error:

    Line 25:         this.langList.Visible = LocalizationManager.PersistenceMode != LocConfig.PersistenceMode.None;
    Line 26:         // END EXCLUDE FOR COMMUNITY
    Line 27:         this.MainMenu.DataBind();
    Line 28:     }
    Line 29: 

    Source File: d:\projects\sitefinity\WebSites\prochrist.org\Sitefinity\Admin\Admin.master.cs    Line: 27

    Stack Trace:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.ThrowHelper.ThrowKeyNotFoundException() +28
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7454012
       Telerik.Libraries.LibraryManager.get_SecurityRoots() +140
       Telerik.Libraries.LibrariesModule.get_SecurityRoots() +5
       Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm) +73
       Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +3305
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       Admin_Admin.Page_Load(Object sender, EventArgs e) in d:\projects\sitefinity\WebSites\prochrist.org\Sitefinity\Admin\Admin.master.cs:27
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    

    I have already deleted the ServiceAssemblies, but without positive result. There's something going wrong with the Libraries, but I don't know where an what to do. Can You give me a hint to solve the problem?

    Thanks in advance!

    Dieter
  17. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 Jul 2009
    Link to this post
    Hello Dieter,

    Do you get this constantly? This error could be sporadic, if for some reasons there are more than one requests at a time, or you do a request before the last one is finished.

    Let us know if this is the case.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  18. Dave
    Dave avatar
    37 posts
    Registered:
    26 Dec 2008
    10 Jul 2009
    Link to this post
    Hello Georgi!

    Thanks for Your reply.

    Unfortunatelly I get this error constantly. I'm not able to view the Backend. The Frontend works fine.

    Greetings, Dieter
  19. Dave
    Dave avatar
    37 posts
    Registered:
    26 Dec 2008
    10 Jul 2009
    Link to this post
    Hello Georgi!

    I found an fixed the problem. I was getting this error because of a LinqCommerce-File. I apologise for any inconvenience a may have caused.

    Thank You for your help!

    Dieter
  20. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jul 2009
    Link to this post
    Hi Dieter,

    We are glad t hear that your project is working now. Let us know if there is anything else that we can do for you.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
20 posts, 0 answered