Saroj13
asked on
FreeTextBox issue IE11 - Object reference not set to an instance of an object using asp.net, c#, visual studio 2010
Hi, I have freetextbox. On IE11 its giving the error.
I am getting the error on IE11
I have integrated freetext box with website.
It's working well for all browser except recently release IE 11.
It throws error "Object reference not set to an instance of an object."
Following is the error stack trace:
at FreeTextBoxControls.FreeTe xtBox.Rend erTabs(Htm lTextWrite r writer) at
FreeTextBoxControls.FreeTe xtBox.Rend erRichEdit or(HtmlTex tWriter writer) at
FreeTextBoxControls.FreeTe xtBox.Rend er(HtmlTex tWriter writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
ASP.myaspxpage.__Render__c ontrol4(Ht mlTextWrit er __w, Control parameterContainer) in
pathtomyaspxpage:line 505 at System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer,
ICollection children) at System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) at
System.Web.UI.Control.Rend er(HtmlTex tWriter writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) at
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) at
System.Web.UI.UpdatePanel. RenderChil dren(HtmlT extWriter writer) at
System.Web.UI.UpdatePanel. Render(Htm lTextWrite r writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) at
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) at
System.Web.UI.HtmlControls .HtmlConta inerContro l.Render(H tmlTextWri ter writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) at
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) at
System.Web.UI.Control.Rend er(HtmlTex tWriter writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
mymasterpage.__Renderform1 (HtmlTextW riter __w, Control parameterContainer) in
pathtomymasterpage:line 87 at System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri terwriter,
ICollection children) at System.Web.UI.HtmlControls .HtmlForm. RenderChil dren(HtmlT extWriter
writer) at System.Web.UI.HtmlControls .HtmlConta inerContro l.Render(H tmlTextWri ter writer) at
System.Web.UI.HtmlControls .HtmlForm. Render(Htm lTextWrite r output) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.HtmlControls .HtmlForm. RenderCont rol(HtmlTe xtWriter writer) at
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) at
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) at
System.Web.UI.Control.Rend er(HtmlTex tWriter writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) at
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) at
System.Web.UI.Page.Render( HtmlTextWr iter writer) at
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) at
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) at
System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean
includeStagesAfterAsyncPoi nt)
<FTB:FreeTextBox ID="txtDetails" runat="server"
AutoGenerateToolbarsFromString="false"
DesignModeCss="ftb/ftb.css"
BackColor="#cccccc"
EditorBorderColorDark="#cccccc"
EditorBorderColorLight="#cccccc"
ClientSideTextChanged="TextCount"
EnableHtmlMode="false"
JavaScriptLocation="ExternalFile"
RemoveScriptNameFromBookmarks="true"
RemoveServerNameFromUrls="true"
RenderMode="Rich"
StripAllScripting="true"
SupportFolder="ftb"
Focus="false"
TabIndex="9"
ToolbarBackColor="#dddece"
ToolbarBackgroundImage="false"
ToolbarImagesLocation="ExternalFile"
ToolbarStyleConfiguration="NotSet"
Height="100px" Width="100%" ><Toolbars>
<FTB:Toolbar runat="server" ButtonStyle-UseDownBackgroundImage="false">
<FTB:Bold runat="server" />
<FTB:Italic runat="server" />
<FTB:Underline runat="server" />
<FTB:FontSizesMenu runat="server"></FTB:FontSizesMenu><FTB:FontBackColorsMenu runat="server" />
</FTB:Toolbar>
<FTB:Toolbar runat="server" ButtonStyle-UseDownBackgroundImage="false">
<FTB:Cut runat="server" />
<FTB:Copy runat="server" />
<FTB:Paste runat="server" />
</FTB:Toolbar>
<FTB:Toolbar>
<FTB:NetSpell runat="server"></FTB:NetSpell>
</FTB:Toolbar>
</Toolbars>
</FTB:FreeTextBox>
I am getting the error on IE11
I have integrated freetext box with website.
It's working well for all browser except recently release IE 11.
It throws error "Object reference not set to an instance of an object."
Following is the error stack trace:
at FreeTextBoxControls.FreeTe
FreeTextBoxControls.FreeTe
FreeTextBoxControls.FreeTe
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
ASP.myaspxpage.__Render__c
pathtomyaspxpage:line 505 at System.Web.UI.Control.Rend
ICollection children) at System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.UpdatePanel.
System.Web.UI.UpdatePanel.
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.HtmlControls
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
mymasterpage.__Renderform1
pathtomymasterpage:line 87 at System.Web.UI.Control.Rend
ICollection children) at System.Web.UI.HtmlControls
writer) at System.Web.UI.HtmlControls
System.Web.UI.HtmlControls
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.HtmlControls
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Page.Render(
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Page.Process
includeStagesAfterAsyncPoi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
maybe we can adapt the .htaccess here. Be sure to copy your .htaccess before making changes.
if ( strpos($_server['http_user_agent'], 'rv:11.0') !== false && strpos($_server['http_user_agent'], 'trident/7.0;')!== false){ echo "user is on ie11 touch / non-touch";}
ASKER
I have added this in web.config and i am testing it on IE11 browser. IIS is not installed over there. How to add server variable?
<system.webServer>
<rewrite>
<rules>
<rule name="Change IE 11 User Agent to IE 10" enabled="true">
<match url="(.*)" />
<action type="None" />
<conditions>
<add input="{HTTP_USER_AGENT}" pattern=".trident\/[789]" />
</conditions>
<serverVariables>
<set name="HTTP_USER_AGENT" value="Mozilla/5.0 (compatible; MSIE 11.0; Windows NT 6.2; Trident/7.0)" />
</serverVariables>
</rule>
</rules>
</rewrite>
</system.webServer>
Thanks