IIS7 instructions incorrect?

Thread is closed for posting
8 posts, 0 answers
  1. Dan Strohschein
    Dan Strohschein avatar
    8 posts
    Member since:
    Jul 2008

    Posted 15 Dec 2008 Link to this post

    For the DNN RadUpload, on this page of the support site http://www.telerik.com/help/aspnet-ajax/upload_troubleshootingerrormessages.html

    it says to for IIS 7 in integrated mode (which we are) to do add :

    <system.webServer>
     
    <modules>
    . . .
         
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler"/>
     
    </modules>
     
    <handlers>
    . . .
         
    <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/>
     
    </handlers>
    </
    system.webServer>


    When added the RadUploadModule line in the Modules section there, the application fails disasterously and gives me this run time:

    Collection is read-only.

    Server Error in '/' Application.

    Collection is read-only.

    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.NotSupportedException: Collection is read-only.

    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:

    [NotSupportedException: Collection is read-only.]
       System.Collections.Specialized.NameValueCollection.Set(String name, String value) +2241650
       System.Web.HttpHeaderCollection.SynchronizeHeader(String name, String value) +26
       System.Web.HttpRequest.SynchronizeHeader(String name, String value) +44
       System.Web.Hosting.IIS7WorkerRequest.GetHeaderChanges(HttpContext ctx, Boolean forRequest) +2506819
       System.Web.Hosting.IIS7WorkerRequest.SynchronizeVariables(HttpContext context) +2505508
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +818
    


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


    What is the cause of this problem? Are these instructions incorrect?



  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 15 Dec 2008 Link to this post

    Hi Dan Strohschein,

    The documentation for using RadUpload in IIS7 should be accurate as it is well tested and lots of our customers are using the same approach. In your case it seams that it is not allowed to register custom HTTP modules. Are you using shared hosting? If yes please ask your hosting provider is registering custom http modules is allowed.

    Kind regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Dan Strohschein
    Dan Strohschein avatar
    8 posts
    Member since:
    Jul 2008

    Posted 15 Dec 2008 Link to this post

    Hi Albert,

    No, we are not using shared hosting - this is our local development server. Going through IIS 7 management console, I can add the value there, but it creates the same error. Apparently I have a use case going on that you guys didn't see :)

    I'm assuming there must be some application setting somewhere to change this, but I am unable to find it....
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 15 Dec 2008 Link to this post

    Hello Dan Strohschein,

    We have never encountered such a problem before. Have you tried adding some other HTTP module? Does it work?

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Dan Strohschein
    Dan Strohschein avatar
    8 posts
    Member since:
    Jul 2008

    Posted 15 Dec 2008 Link to this post

    The DNN Custom additions to this area work. Of course, these are added by DNN, I don't have anything else I can try testing in there. I've never seen this before either - totally new error to me.
  6. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 16 Dec 2008 Link to this post

    Hello Dan Strohschein,

    You can try with some public http module such as this one. Let me know if it is registered as expected and does not give you this error. Also does this exception occur on initial load of the application or when starting an upload?

    Regards,
    Atanas Korchev,
    the Telerik dev team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Dan Strohschein
    Dan Strohschein avatar
    8 posts
    Member since:
    Jul 2008

    Posted 22 Dec 2008 Link to this post

    Hi Antas,

    This fails on the initial Application load. Which module would you like me to try?? I didn't see a link.

    Thank you
    Dan

    P.s. I leave on holiday in 2 days so I might be out of contact for a bit.
  8. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 23 Dec 2008 Link to this post

    Hi Dan Strohschein,

    Indeed I forgot to send you the link. Here it is: http://blowery.org/httpcompress/
    Let me know how it went.

    Greetings,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top