We're just porting over to IIS7 from 6 and having problems with our postbacks. Client fires but no server-side response just reloads the page - not even the click handler executes its code. Seems intermittent, but the following error is common:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Object.GetType() +0
Telerik.Web.UI.RadCompression.Compress(HttpApplication application) +820
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
Now when I remove RadCompression entries from web.config it all springs back to life, with no problems.
So I'm doing something wrong with IIS7. I have the Registration code in both System.Web\HttpModules and system.webserver\modules.
Any ideas?
thanks
6 Answers, 1 is accepted
I suspect that the problem is caused by a breaking change in .NET 4.0 described here. To workaround it one can set preCondition="managedHandler" for the RadCompression module. You will also need to remove the runAllManagedModulesForAllRequests setting from your web.config if you have it (or set it to false).
I hope this helps.
All the best,
Martin
the Telerik team
- Removed the runAllManagedModulesForAllRequests
- Added the preCondition="managedHandler"
After the changes above I still receive the error.
Telerik version: v.2012.3.1016.40 Dev
Error:
NullReferenceException
Object reference not set to an instance of an object. at System.Object.GetType() at Telerik.Web.UI.RadCompression.Compress(HttpApplication application) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Tue, 29 Jan 2013 15:11:59 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 6
Char: 84093
Code: 0
URI: http://192.168.52.88/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afabb1efa-938f-494c-a9c4-f313dccf73fa%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3aeedc0a8d-48b8-46b8-a699-de66b4bdef1e%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc
I am afraid that the provided information is not sufficient in order to replicate the issue in my side. I would suggest that you open a formal support ticket and send a stripped runnable project that replicates the issue. Please also specify the server settings (IIS version and mode, app pool etc) and .NET version you use. The exact steps that I need to perform to replicate the problem would also be quite helpful.
Greetings,
Martin
the Telerik team
Hi Everyone,
I am facing exactly the same problem, we have migrated from IIS 6 classic mode to IIS 7.0 Integrated mode. When I run the application login page shows up but as soon as we enter credentials and hit submit we get error page. when we checked event viewer logs we found following error.
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="ASP.NET 4.0.30319.0"
/>
<EventID
Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-04-25T10:57:53.000Z" />
<EventRecordID>11101</EventRecordID>
<Channel>Application</Channel>
<Computer>LOKI2.rrdfin.com</Computer>
<Security />
</System>
- <EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>4/25/2016 6:57:53 AM</Data>
<Data>4/25/2016 10:57:53 AM</Data>
<Data>1af8b3184f44421aa993a61f090afb02</Data>
<Data>14</Data>
<Data>1</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1/ROOT/ArcExchange-8-131060554587203701</Data>
<Data>Full</Data>
<Data>/ArcExchange</Data>
<Data>E:\webapps\ArcExchange\</Data>
<Data>LOKI2</Data>
<Data />
<Data>8592</Data>
<Data>w3wp.exe</Data>
<Data>NT AUTHORITY\NETWORK SERVICE</Data>
<Data>NullReferenceException</Data>
<Data>Object reference not set to an instance of an object. at
Telerik.Web.UI.RadCompression.Compress(HttpApplication application) at
Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs
e) at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)</Data>
<Data>https://uat.rrdiml.com:443/ArcExchange/login.aspx</Data>
<Data>/ArcExchange/login.aspx</Data>
<Data>10.176.168.33</Data>
<Data />
<Data>False</Data>
<Data />
<Data>LOKI2\sendddev1</Data>
<Data>30</Data>
<Data>LOKI2\sendddev1</Data>
<Data>False</Data>
<Data>at Telerik.Web.UI.RadCompression.Compress(HttpApplication application)
at Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender,
EventArgs e) at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)</Data>
</EventData>
</Event>
We are using RadCompression in our application which was working absolutely fine on IIS 7 classic mode but the moment we moved to Integrated mode application has stopped working. Also this happens when we move from dev to UAT or production enviornment and is is working fine on dev and local enviornment.
.Net framework Version : 4.5.1
IIS : 7.0
Managed pipeline mode : Integrated.
UAT Machine : 32 bit machine.
Local Machine : 64 bit machine.
Following is my web config file.
<?xml version="1.0"?>
<configuration>
<!-- ADFS START -->
<configSections>
<section name="system.identityModel" type="System.IdentityModel.Configuration.SystemIdentityModelSection, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<section name="system.identityModel.services" type="System.IdentityModel.Services.Configuration.SystemIdentityModelServicesSection, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</configSections>
<!-- ADFS END -->
<appSettings>
<add key="FullPath" value="http://uat.rrdiml.com/"/>
<add key="FullPath_SENDD" value="http://uat.rrdiml.com/"/>
<add key="webdrop_digital" value="~UAT/senddclean_link/digital/"/>
<add key="webdrop_arcexchange" value="~UAT/senddclean_link/ArcExchangeFile/"/>
<add key="DesPath" value="\\Dump1\Share1\windsor\uat\senddclean_link\ArcExchangeFile\"/>
<add key="DesPathDistro" value="\\Dump1\Share1\windsor\uat\senddclean_link\ArcExchangeDistro\"/>
<add key="EmailAddressCC" value="arcexchange@rrd.com"/>
<add key="ArcProspectusUrl" value="https://scp.rrd.com/"/>
<add key="ArcReportingUrl" value="https://fundsuitearc.com/"/>
<add key="ArcMarketingUrl" value="https://factnet.rrd.com/Framework/LoginPage.aspx"/>
<add key="ErrorLogFile" value="C:\ArcExchangeLogs\LogFile.txt"/>
<add key="ErrorHelpDeskEmail" value="varun.sawhney@rrd.com;shruthi.x.nagaraghavendra@rrd.com;marianne.cormier@rrd.com;rupali.chowdhary@rrd.com"/>
<add key ="EventLogSource" value="ArcExchangeApplication"/>
<add key ="EventLogName" value="ArcExchangeLogs"/>
<add key="DesPathWebDrop" value="\\Dump1\Share1\windsor\uat\senddclean_link\donnelley2\"/>
<add key="Webdrop" value="~UAT/senddclean_link/donnelley2/"/>
<add key="DesPathWorkSpace" value="\\dump1\share1\Windsor\uat\intellifolders\"/>
<add key="DesPathWorkSpaceTrash" value="\\dump1\share1\Windsor\uat\Trash\"/>
<add key="DesPathWorkSpaceWebDrop" value="\\dump1\share1\Windsor\uat\intellifolders\webdropped\"/>
<add key="DesPathWorkSpaceEmail" value="\\dump1\share1\Windsor\uat\customerfiles_folder1\"/>
<add key="DesPathWorkSpaceMessage" value="\\dump1\share1\Windsor\uat\customerfiles\"/>
<add key="EnvironmentId" value="uat"/>
<add key="FeedBackDeskEmailTo" value="arcexchange@rrd.com"/>
<add key="FeedBackDeskEmailCC" value="varun.sawhney@rrd.com;naxin.yang@rrd.com"/>
<add key="ArcExchangeUrl" value="http://uat.rrdiml.com/ArcExchange/Login.aspx"/>
<add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
<add key="Telerik.AllowedFileTypes" value="7z,ai,bmp,book,csv,dat,dmg,doc,docm,docx,eps,fm,gif,htm,html,ind,indd,iso,jpeg,jpg,mif,pdf,png,pps,ppt,pptm,pptx,ps,psd,psp,qxp6,qxp7,qxp8,rar,rtf,sit,sitx,svg,tif,tiff,toc,ttf,txt,xls,xlsm,xlsx,xltx,xml,zip,zipx,fil,wmv"/>
<add key="Telerik.TempFolder" value="\\Dump1\Share1\windsor\uat\senddclean_link\TelerikTemp"/>
<add key="CommandTimeOut" value="36000"/>
<add key="ArcProspectus.AllowedMetaDataTags" value="customername,customerusername,filename,oneplacejobnumber,foldername"/>
<add key="ArcProspectus.Files.TempPath" value="\\Dump1\Share1\windsor\uat\senddclean_link\ArcExchangeFile\ArcProspectusFiles\TempFiles\"/>
<add key="ArcProspectus.Files.Invalid" value="\\Dump1\Share1\windsor\uat\senddclean_link\ArcExchangeFile\ArcProspectusFiles\InvalidFiles\"/>
<add key="ArcProspectus.Files.VirtualDirectory" value="~UAT/senddclean_link/ArcExchangeFile/ArcProspectusFiles/InvalidFiles/"/>
<add key="ArcProspectus.Files.Path" value="ftp://indiatest1.rrdiml.com/ArcProspectusDocuments"/>
<add key="ArcProspectus.Files.UserName" value="ArcEx_ArcPro_UAT"/>
<add key="ArcProspectus.Files.Password" value="arcUatV1"/>
<add key="ArcExchangeReplyEmailServer" value="replyArcExchangeUAT@rrdfin.com"/>
<add key="ArcExchangeSmtpEmailServer" value="RRDArcExchange@sendd.com"/>
<add key="ArcExchangeExternalEmailMessage" value="ArcExchange Discussion threads will capture and log Replies to this notice as long as the box in the email is not altered."/>
<add key="Telerik.Web.UI.StyleSheetFolders" value="~/App_Themes/Default;~/Styles/Mobile" />
<add key="GridPageSize" value="10" />
<add key="NumberofReordstoFetch" value="20"></add>
<!--ADFS AppSetting Start-->
<add key="WebFarmServers" value="https://uat.rrdiml.com/ArcExchange/"/>
<add key="ArcProWebServiceJOB" value="https://scpstage.rrd.com/admin/profile/EdgarService.svc"/>
<add key="ArcProWebServiceDOC" value="https://scpstage.rrd.com/Admin/APService/APService.svc"/>
<add key="ExaminerServiceLOGIN" value="https://examinerqa.rrd.com/XbrlWcf/Authentication.svc"/>
<add key="ExaminerServiceDOC" value="https://examinerqa.rrd.com/XbrlWcf/Documents.svc"/>
<!--currently the values is as per DEV servers -->
<add key="ServerTimeOffsetFromEST" value="0"/>
<!--ADFS AppSetting END-->
</appSettings>
<connectionStrings>
<add name="SenddConectionString" connectionString="Data Source=sendd-mwe-db50.fincoad.com,2700;Initial Catalog=sendd_it_loki;Persist Security Info=True;User ID=IML_Admin;Password=frucuXu5en" providerName="System.Data.SqlClient"/>
<add name="SenddLINKConectionString" connectionString="Data Source=sendd-mwe-db50.fincoad.com,2700;Initial Catalog=sendd_link_linkit;Persist Security Info=True;User ID=IML_Admin;Password=frucuXu5en" providerName="System.Data.SqlClient"/>
<add name="sendd3_live_dev8iConnectionString" connectionString="Data Source=sendd-mwe-db50.fincoad.com,2700;Initial Catalog=sendd_it_loki;Persist Security Info=True;User ID=IML_Admin;Password=frucuXu5en" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<httpModules>
<!--<add name="RadCompression" type="Telerik.Web.UI.RadCompression" />-->
</httpModules>
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
</httpHandlers>
<httpRuntime executionTimeout="86400" maxRequestLength="1048576" requestValidationMode="2.0"/>
<sessionState timeout="240" cookieless="UseCookies"></sessionState>
<compilation debug="true" targetFramework="4.5.1">
<assemblies>
<!-- ADFS START -->
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<!-- ADFS END -->
</assemblies>
</compilation>
<customErrors defaultRedirect="~/ErrorPage.aspx" mode="On">
</customErrors>
<authentication mode="Forms">
<forms defaultUrl="Login.aspx" loginUrl="~/Login.aspx" cookieless="UseCookies" timeout="240" />
</authentication>
<authorization>
<!-- ADFS START set deny users="?" in line below to force ADFS login. ? means deny un-authenticated users. ALLOW_ALL is just a dummy user -->
<deny users="ALLOW_ALL"/>
<!-- ADFS END -->
</authorization>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<pages styleSheetTheme="Default" controlRenderingCompatibilityVersion="4.0">
<controls>
<add tagPrefix="rrd" namespace="RRD.Framework.WebUI.Controls" assembly="RRD.Framework.WebUI"/>
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
</controls>
<namespaces>
<add namespace="RRD.Framework.WebUI"/>
</namespaces>
</pages>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</providers>
</roleManager>
</system.web>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="RRDArcExchange@sendd.com">
<network host="mail.rrdfin.com" />
</smtp>
</mailSettings>
</system.net>
<system.webServer>
<modules>
<clear/>
<add name="RadCompression" type="Telerik.Web.UI.RadCompression, Telerik.Web.UI, Version=2015.1.401.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="managedHandler"/>
<!-- ADFS START -->
<add name="WSFederationAuthenticationModule" type="System.IdentityModel.Services.WSFederationAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler"/>
<add name="SessionAuthenticationModule" type="System.IdentityModel.Services.SessionAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler"/>
<!-- ADFS END -->
</modules>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="ChartImage_axd"/>
<remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
<remove name="Telerik_Web_UI_DialogHandler_aspx"/>
<remove name="Telerik_RadUploadProgressHandler_ashx"/>
<remove name="Telerik_Web_UI_WebResource_axd"/>
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824"/>
</requestFiltering>
</security>
<defaultDocument>
<files>
<remove value="Login.aspx" />
<add value="Login.aspx" />
</files>
</defaultDocument>
</system.webServer>
<!-- ADFS START -->
<system.identityModel>
<identityConfiguration>
<audienceUris>
<add value="https://uat.rrdiml.com/ArcExchange/"/>
</audienceUris>
<securityTokenHandlers>
<add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</securityTokenHandlers>
<certificateValidation certificateValidationMode="None"/>
<issuerNameRegistry type="System.IdentityModel.Tokens.ValidatingIssuerNameRegistry, System.IdentityModel.Tokens.ValidatingIssuerNameRegistry">
<authority name="http://RRWIN-SPDD20.dom01.rrdsecure.dev/adfs/services/trust">
<keys>
<add thumbprint="559c55af87a1ff9b32fbc9561a7324a36aaeb701"/>
</keys>
<validIssuers>
<add name="http://RRWIN-SPDD20.dom01.rrdsecure.dev/adfs/services/trust"/>
</validIssuers>
</authority>
</issuerNameRegistry>
</identityConfiguration>
</system.identityModel>
<system.identityModel.services>
<federationConfiguration>
<cookieHandler requireSsl="false"/>
<wsFederation passiveRedirectEnabled="true" issuer="https://rrwin-spdd20.dom01.rrdsecure.dev/adfs/ls/" realm="https://uat.rrdiml.com/ArcExchange/" requireHttps="true"/>
</federationConfiguration>
</system.identityModel.services>
<!-- ADFS END -->
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IDealJobService" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://webit.rrd.com/LinkWCF/DealJobService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDealJobService"
contract="DealJobService.IDealJobService" name="BasicHttpBinding_IDealJobService" />
</client>
</system.serviceModel>
</configuration>
Any help to fix this issue is greatly appreciated. Thanks in Advance.
Regards,
Atif Subzwari
Wipro Technologies, India
Please check out the following article that describes the configuration in web.config for integrated mode. Try to use similar settings and see how the behavior changes.
Regards,
Viktor Tachev
Telerik