NullReferenceException ProgressArea Error

Thread is closed for posting
18 posts, 0 answers
  1. Alec
    Alec avatar
    8 posts
    Member since:
    Jan 2008

    Posted 30 Jan 2008 Link to this post

    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
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 04 Feb 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex Hughes
    Alex Hughes avatar
    5 posts
    Member since:
    Jan 2006

    Posted 26 Feb 2008 Link to this post

    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
  5. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 29 Feb 2008 Link to this post

    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
  6. Mario
    Mario avatar
    3 posts
    Member since:
    Apr 2008

    Posted 16 Apr 2008 Link to this post

    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! :-)
  7. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 18 Apr 2008 Link to this post

    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
  8. Mario
    Mario avatar
    3 posts
    Member since:
    Apr 2008

    Posted 22 Apr 2008 Link to this post

    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.
  9. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 22 Apr 2008 Link to this post

    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
  10. Denny
    Denny avatar
    13 posts
    Member since:
    May 2008

    Posted 15 May 2008 Link to this post

    Hi

    Is there any plan in supporting IIS7 in the future?

    Thanks

    Denny
  11. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 May 2008 Link to this post

    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
  12. Denny
    Denny avatar
    13 posts
    Member since:
    May 2008

    Posted 19 May 2008 Link to this post

    Hi,
    Thanks for the reply, thats a good news to us. we are looking forward to that.

    thanks

    Denny
  13. damien jorgensen
    damien jorgensen avatar
    10 posts
    Member since:
    Oct 2005

    Posted 21 May 2008 Link to this post

    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!
  14. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 22 May 2008 Link to this post

    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
  15. bemara57
    bemara57 avatar
    57 posts
    Member since:
    Mar 2008

    Posted 03 Jul 2008 Link to this post

    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.
  16. Michael
    Michael avatar
    84 posts
    Member since:
    May 2008

    Posted 21 Jul 2008 Link to this post

    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?
  17. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 22 Jul 2008 Link to this post

    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
  18. Jan Mrowca
    Jan Mrowca avatar
    10 posts
    Member since:
    Mar 2006

    Posted 16 Mar 2009 Link to this post

    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.
  19. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 18 Mar 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017