+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24

Thread: web.config <handlers>

  1. #1
    Barn Newbie willids is on a distinguished road willids's Avatar
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    3

    web.config <handlers>

    I am hosting a site at the moment and for it to work I need to comment/remove the part of the web.config which shows <handlers>. The server is iis7/windows server 2008. Anyone got any isdeas how to get around this or why I have to do this to make the site work.

    Thanks

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    I presume you mean the <handlers> section under <web.server>?

    What happens when you leave the <handlers> section in? Do you get any error messages?

    Could you post the <handlers> section that you remove?

  3. #3
    Barn Newbie willids is on a distinguished road willids's Avatar
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    3

    Here is the handler section from teh web config
    Code:
    <handlers>
    <remove name="WebServiceHandlerFactory-Integrated" />
    <remove name="ScriptHandlerFactory" />
    <remove name="ScriptHandlerFactoryAppServices" />
    <remove name="ScriptResource" />
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>
    
    I am trying to sort out what error it is as it is just a blank screen at the moment, but I think it is a 500 internal error reply. I am new to all this as I am just moving from classic asp to .net so I will apologise if I sound thick.
    Last edited by willids; January 12th, 2010 at 09:23 AM.

  4. #4
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    The handlers section looks identical to the one I use.

    Check you have .NET Framework 3.5 SP1 installed on the server.

    Also try checking in the Handler Mappings in IIS to see if you have the following entries:-
    Code:
    PageHandlerFactory-Integrated | *.aspx | Enabled | Unspecified | System.Web.UI.PageHandlerFactory | Local
    PageHandlerFactory-ISAPI-2.0 | *.aspx | Enabled | Unspecified | IsapiModule
    
    WebServiceHandlerFactory-Integrated  | *.asmx | Enabled | Unspecified | System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    WebServiceHandlerFactory-ISAPI-2.0 | *.asmx | Enabled | Unspecified | IsapiModule
    
    There may also be one for .axd files as well
    I think I had to alter something in the Handler Mapping with 3.5.

    Hope that helps.

  5. #5
    Barn Newbie willids is on a distinguished road willids's Avatar
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    3

    I have 3.5 Sp1 installed, and all the bits you mentioned are in there and the .axd in handler mappings in iis.

    Still not working.

  6. #6
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Is there anything in the eventlog to suggest what the error might be?

    You could also try having a look at this article. Specifically the bit about the application pool setting.

  7. #7
    Barn Newbie willids is on a distinguished road willids's Avatar
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    3

    you mean the site event log or iis event log?

  8. #8
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Have a look in
    Code:
    Server Manager -> Diagnostics -> Event Viewer -> Custom Views -> Server Roles -> Web Server
    
    And
    Code:
    Server Manager -> Diagnostics -> Event Viewer -> Custom Views -> Administrative Events
    
    If you double click on the event it'll give a full description of the problem.

  9. #9
    Barn Newbie willids is on a distinguished road willids's Avatar
    Join Date
    Jan 2010
    Posts
    14
    Rep Power
    3

    Here is the log, but it means nothing to me, maybe it does to you.
    Code:
    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 12/01/2010 10:59:45 
    Event time (UTC): 12/01/2010 10:59:45 
    Event ID: 0d72315540914cfe939ea22985476da8 
    Event sequence: 35 
    Event occurrence: 2 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/5/ROOT-8-129077668346255460 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: C:\Domains\DOMAINNAME.co.uk\wwwroot\ 
        Machine name: CL-ACCOUNTNAME
     
    Process information: 
        Process ID: 4032 
        Process name: w3wp.exe 
        Account name: CL-ACCOUNTNAME\DOMAINNAME.co._web 
     
    Exception information: 
        Exception type: InvalidOperationException 
        Exception message: RegisterDataItem can only be called during an async postback. 
     
    Request information: 
        Request URL: http://www.DOMAINNAME.co.uk/Management/EditNews.aspx 
        Request path: /Management/EditNews.aspx 
        User host address: IP-ADDRESS 
        User: Administrator 
        Is authenticated: True 
        Authentication Type: Forms 
        Thread account name: CL-ACCOUNTNAME\DOMAINNAME.co._web 
     
    Thread information: 
        Thread ID: 7 
        Thread account name: CL-ACCOUNTNAME\DOMAINNAME.co._web 
        Is impersonating: False 
        Stack trace:    at System.Web.UI.PageRequestManager.RegisterDataItem(Control control, String dataItem, Boolean isJsonSerialized)
       at System.Web.UI.ScriptManager.RegisterDataItem(Control control, String dataItem)
       at AjaxControlToolkit.PopupControlExtender.Close(String result) in C:\Users\mani\Desktop\Lets Know\AJAX\Removable Disk\AjaxControlToolkit\AjaxControlToolkit\PopupControl\PopupControlExtender.cs:line 136
       at AjaxControlToolkit.PopupControlExtender.Page_PreRender(Object sender, EventArgs e) in C:\Users\mani\Desktop\Lets Know\AJAX\Removable Disk\AjaxControlToolkit\AjaxControlToolkit\PopupControl\PopupControlExtender.cs:line 115
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
     
    Custom event details:
    
    A friend has just sent this http://technet.microsoft.com/en-us/l.../cc627314.aspx but it is totally over my head.

    Thanks
    Last edited by willids; January 12th, 2010 at 12:18 PM.

  10. #10
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Can you please post your entire web.config? Also, are you by any chance using AJAX on the EditNews.aspx page?
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Retrieving ConnectionString from web.config
    By richyrich in forum .NET Development
    Replies: 3
    Last Post: November 13th, 2009, 10:27 AM
  2. Is web.config cached?
    By Wolffy in forum .NET Development
    Replies: 3
    Last Post: September 9th, 2008, 05:04 PM
  3. IIS7 Error from web.config
    By Shem in forum Microsoft IIS
    Replies: 7
    Last Post: August 21st, 2008, 10:30 PM
  4. Update sql connection string in web config
    By peebman2000 in forum .NET Development
    Replies: 5
    Last Post: April 18th, 2008, 01:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO