This is a migrated thread and some comments may be shown as answers.

IIS7 instructions incorrect?

7 Answers 178 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Dan Strohschein
Top achievements
Rank 1
Dan Strohschein asked on 15 Dec 2008, 04:59 PM
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:

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?



7 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Dec 2008, 06:13 PM
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.
0
Dan Strohschein
Top achievements
Rank 1
answered on 15 Dec 2008, 06:16 PM
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....
0
Atanas Korchev
Telerik team
answered on 15 Dec 2008, 06:19 PM
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.
0
Dan Strohschein
Top achievements
Rank 1
answered on 15 Dec 2008, 06:35 PM
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.
0
Atanas Korchev
Telerik team
answered on 16 Dec 2008, 07:53 AM
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.
0
Dan Strohschein
Top achievements
Rank 1
answered on 22 Dec 2008, 06:18 PM
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.
0
Atanas Korchev
Telerik team
answered on 23 Dec 2008, 08:41 AM
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.
Tags
Upload (Obsolete)
Asked by
Dan Strohschein
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Dan Strohschein
Top achievements
Rank 1
Share this question
or