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

NullReferenceException ProgressArea Error

17 Answers 226 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Alec
Top achievements
Rank 1
Alec asked on 31 Jan 2008, 03:48 AM
Dear Rad Users,

I am getting an error when I use the radprogressarea.  I can use the radupload tag but as soon as I add the radprogressarea tag I get the following error (on submit).

I would love some help.

Thanks,
Alec

******
Code Snippet 1
******

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="radSubmitDesign.aspx.cs" Inherits="RadSubmitDesign"

MasterPageFile="~/JuniorMarketplaceMasterPage.master" Debug="true" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


******
Code Snippet 2
******

<telerik:RadUpload ID="RadUpload1" runat="server" />

<telerik:radprogressmanager id="Radprogressmanager1" skin="Default2006" runat="server" SuppressMissingHttpModuleError="true" />

<telerik:radprogressarea id="RadProgressArea1" Visible=true skin="Default2006" runat="server"></telerik:radprogressarea>

******
Error 
******
 

Server Error in '/WebTier' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.RadUploadHttpModule.SetTextContent(Type workerRequestType, HttpWorkerRequest workerRequest, Byte[] textContent) +773
   Telerik.Web.UI.RadUploadHttpModule.Context_BeginRequest(Object sender, EventArgs e) +573
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +175
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +176


Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.833

17 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 04 Feb 2008, 01:19 PM
Hello Alec,

Thank you for contacting us.

Do you run your application in Integrated IIS7 mode? The code you have sent us seems to be fine. However,
the exception which you experience most often appears as a result of running the application in IIS7 with ApplicationPool set to DefaultAppPool which is not supported by RadUpload. You can solve this problem if you change the ApplicationPool setting of your application to Classic .NET AppPool. To do this you should right click on you application in IIS7 choose Advanced Settings and change the ApplicationTool option to Classic .NET AppPool.

For your convenience I have attached screenshots demonstrating the above mentioned settings.

Please, let us know how it goes.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Alex Hughes
Top achievements
Rank 1
answered on 26 Feb 2008, 05:01 PM
Hi

I have been experiencing the same errors on iis7

I have set the app pool to classic as you indicated but i still get the same error as experience by Alec

Thanks

Alex
0
Sophy
Telerik team
answered on 29 Feb 2008, 02:58 PM
Hi,

There should not be a problem with RadUpload working in Classic IIS7 mode. I am not sure what may be the reason for experiencing the problem. It may be due to a configuration setting. Could you please make sure that you have registered the RadUploadProgressHandler and the RadUploadHttpModule in the Web.config file. If the problem still persists, please, send us more details about your scenario and the circumstances in which the error occurs. Any information you find relevant may be helpful.

Best wishes,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mario
Top achievements
Rank 1
answered on 16 Apr 2008, 05:20 PM
I have the same problem. Using IIS 7 and Windows server 2008.

The Web uses Classic .ASP AppPool.

The AppPool itself uses pipelining mode integrated (as in your screenshot).
Identity is network Service. Uploading with progress monitor works great, but as soon as it reloads the page, the following error appears:



Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Quellfehler:

Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte Ausnahme generiert. Informationen über den Ursprung und die Position der Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.

Stapelüberwachung:

[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
   Telerik.WebControls.RadUploadHttpModule.SetTextContent(Type workerRequestType, HttpWorkerRequest workerRequest, Byte[] textContent) +563
   Telerik.WebControls.RadUploadHttpModule.Context_BeginRequest(Object sender, EventArgs e) +503
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +176


All Handlers and Modules are correct (the same setup worked great on a win 2003 server).

Tried the recently released 2008 hotfix dlls.

EDIT: I use the classic RadControls, not the Rad AJAX Controls! :-)
0
Sophy
Telerik team
answered on 18 Apr 2008, 10:54 AM
Hello Mario,

I created a sample application in IIS7 on Windows server 2008. The application was set to use the same configuration settings you mention. However, I was not able to reproduce the problem you describe. For your convenience I have attached my test page and the Web.config file I used. I would like to ask you test whether you will experience the problem using the attached page and Web.config file.

Please, also note that by default requestFiltering is enabled in IIS7 that has MaxAllowedContentLength property. The default value of this property is 30000000 (which is approximately 30 MB). If you want to upload larger files you will need to set a larger value to this property, e. g.:

<configuration> 
   <system.webServer> 
         ....  
      <security> 
         <requestFiltering> 
            <requestLimits maxAllowedContentLength="200000000"/>    
         </requestFiltering> 
      </security> 
   </system.webServer> 
 
</configuration> 

 I suggest you take a look at the following links for more information about the issue:

 1. http://www.element-it.com/RequestFilteringModule-maxAllowedContentLength.aspx
 2. http://forums.iis.net/t/1066272.aspx

In case the suggested above cannot help you solve the problem, please, send us your test page and Web.config file and a list of steps for reproducing the problem as well as more details about the size and the type of the files which you upload.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mario
Top achievements
Rank 1
answered on 22 Apr 2008, 12:33 PM
Hello,

thank you for your example!

But we only have the classic Rad Controls, not the "Prometheus" ones. Is it possible check the classic Rad Upload with ASP.NET 2.5 and send another working example?

Bye,
Mario.
0
Sophy
Telerik team
answered on 22 Apr 2008, 03:22 PM
Hello Mario,

The settings concerning requestFiltering which I have described in my previous reply are valid for using  RadUpload for ASP.NET in IIS7 as well. Please, find attached the requested example.

If you need further assistance, do contact us again.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Denny
Top achievements
Rank 2
answered on 15 May 2008, 03:23 PM
Hi

Is there any plan in supporting IIS7 in the future?

Thanks

Denny
0
Veselin Vasilev
Telerik team
answered on 17 May 2008, 08:31 AM
Hi Denny,

We are in a process of investigating how to support IIS7 and we will do our best to find a solution as soon as possible.

Sincerely yours,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Denny
Top achievements
Rank 2
answered on 19 May 2008, 09:55 AM
Hi,
Thanks for the reply, thats a good news to us. we are looking forward to that.

thanks

Denny
0
damien jorgensen
Top achievements
Rank 1
answered on 21 May 2008, 03:58 PM
Why oh why do you stick things like support VS2008 which implies it fully supports ASP.NET and IIS 7 and yet it doesnt support intergrated mode.

You build a project and you except things that you've out sourced to telerik to work, like the Upload tools and yet they dont!

Ive wasted a day trying to figure out why we cannot upload on a new website we;re building so now its a toss up between URL rewriting and RadUploads!
I love how the RAD but makes it sound quick when infact its anything but when you get rubbish code like this!

Completly Unacceptable!
0
Erjan Gavalji
Telerik team
answered on 22 May 2008, 11:44 AM
Hi Damien,

I'm really sorry for your frustration.

Although RadUpload still doesn't support IIS7 Integrated mode, we are researching the possibilities to do that and I hope we will be able to have IIS7 Integrated mode support for the RadControls for ASP.NET Ajax Q2 2008 release.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
bemara57
Top achievements
Rank 1
answered on 04 Jul 2008, 12:12 AM
Just chiming in hopes that IIS7 will be supported in Q2. I came to this thread which put me at a dead end. This project is deployed at an IIS7 web shared hosting. I can't change the application pool because it's not in my hands. Please, oh please, fix this for IIS7.
0
Michael
Top achievements
Rank 1
answered on 22 Jul 2008, 03:24 AM
Hi Erjan

Any ETA on when the RadUpload issue will get fixed? My app requires integrated mode and at the moment I can not implement RadUpload until it works in integrated mode.

Are there any betas that have got this working or anything?
0
Atanas Korchev
Telerik team
answered on 22 Jul 2008, 06:32 AM
Hi Michael,

Our Q2 2008 release is due this week. It will incorporate Integrated mode support for RadUpload.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jan Mrowca
Top achievements
Rank 1
answered on 17 Mar 2009, 02:25 AM
Hi,
I have installed the newest version of controls and the described problem occures in my case. I have to use default application pool.
I read and configured IIS7 following this article:
http://www.telerik.com/help/aspnet-ajax/upload-configuration.html

Please, tell me how I can resolve this problem.
0
Veselin Vasilev
Telerik team
answered on 18 Mar 2009, 05:15 PM
Hi Jan Mrowca,

I believe the best way to proceed is to open a support ticket and send us a sample running project. We will check the configuration and test it under IIS 7 Integrated mode.

Kind regards,
Veselin Vasilev
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.
Tags
Upload (Obsolete)
Asked by
Alec
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Alex Hughes
Top achievements
Rank 1
Mario
Top achievements
Rank 1
Denny
Top achievements
Rank 2
Veselin Vasilev
Telerik team
damien jorgensen
Top achievements
Rank 1
Erjan Gavalji
Telerik team
bemara57
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Atanas Korchev
Telerik team
Jan Mrowca
Top achievements
Rank 1
Share this question
or