+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / moved to iis7: uploading image - .net error - pipeline classic mode issues

moved to iis7: uploading image - .net error - pipeline classic mode issues

7 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    10 Dec 2009
    Link to this post
    Hi

    I've moved all our sites from a win2003 server IIS6, to win2008 server IIS7

    Everything is working fine except when trying to upload an images through the editor
    I get a .net error saying
    Server Error in '/' 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) +162  
       Telerik.Web.UI.RadUploadHttpModule.Context_BeginRequest(Object sender, EventArgs e) +378  
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68  
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75  
     
       
     
     
    --------------------------------------------------------------------------------  
    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3601  

    I edited the application pool settings (managed pipeline mode) from integrated to classic and I was able to upload fine, however, any images on the site that were in the image library (SFLB) were not displaying on the website.

    Is this a known issue?
    is there a workaround?

    if i could get the SFLB files working in classic mode i'd be happy to go this route,
    thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Dec 2009
    Link to this post
    Hi Quade,

    Make sure that you have the following line in your web.config file

    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />

    Running the application in IIS7 with ApplicationPool set to DefaultAppPool which is not supported by the old versions of  RadUpload. The problem resembles an old problem which should be fixed more than an year ago, so most probably you are using an old version of RadUpload.dll or Telerik.Web.UI.

    Also make sure that you have set HandlerMappings for .sflb in IIS >> HandlerMappings.


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    10 Dec 2009
    Link to this post
    thanks Ivan

    as it stands, In order of apperance I've got the following:

    <sys.web>
     <httpmodules>
       <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
    .....
    <sys.webserver>
     <modules>
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" preCondition="managedHandler" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />


    Is this correct?

    In IIS7 / website / handler mappings
    i have *.sflb of type Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine
    I pressume this is also correct?

    any advice appreciated
    thanks
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    10 Dec 2009
    Link to this post
    Hello Quade,

    Thank you for getting back to us.

    The information that you have provided looks correct. One more thing to check though, and that is what is the extension for the Urls of items coming from the libraries. First check this in web.config:
    <handlers>
                       ...
            <add name="SitefinityLibrary" path="*.sflb" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/>
            <add name="SitefinityLibraryAdd" path="*.sflb.ashx" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine"/>
            

     And this:
    <add name="Libraries" allowComments="true" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb.ashx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="False" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.DefaultProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx"/>

     
    Greetings,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    10 Dec 2009
    Link to this post
    Thanks Ivan

    In <Handlers> all i have is
       <add name="SitefinityLibrary" path="*.sflb" verb="*" preCondition="integratedMode" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine" />

    .... i dont seem to have SitefinityLibraryAdd

    also in Librarys i have

    <add name="Libraries" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="True" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.DefaultProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx" />

    Did you need to know anything else?

    thanks
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 Dec 2009
    Link to this post
    Hi Quade,

    Which is the exact Sitefinity version that you use? According to this thread - http://www.telerik.com/community/forums/aspnet-ajax/upload/object-reference-not-set-to-an-instance-of-an-object.aspx - this is a problem which is fixed in the later releases of the RadControls. Please let me know about the specific version that you use, so we could check if this is the same problem. 

    You can also try to upgrade to a later version.

    Thank you in advance. 


    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    10 Dec 2009
    Link to this post
    Hi

    Its 3.2 SP2

    Thanks
Register for webinar
7 posts, 0 answered