ASP.NET Rich Edit

Asked

Viewed 62 times

0

I am recently working with Visual Studio 2015 and the following error arose when I inserted a component in the HTML code. I believe it’s a silly mistake for lack of knowledge, but I have no idea how to fix it.

inserir a descrição da imagem aqui

  • Managed to solve?

  • The following error appeared and I am trying to fix it: To work properly, Devexpress Components require Aspxhttphandlermodule Registered in the web.config file.

1 answer

0


Missing you register tag prefix

Example:

<%@ Register assembly="DevExpress.Web.ASPxRichEdit.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRichEdit" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web" tagprefix="dx" %>

Sources:

MSDN @Register

Devexpress : How to: Insert RTF text to a Document

Addendum:

The following error appeared and I’m trying to tidy up: To work properly, Devexpress Components require Aspxhttphandlermodule Registered in the web.config file

According to the reference of the document follows the instructions of how

IIS (Classical Mode)

<system.web>
    <httpHandlers>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET"
      path="DX.ashx" validate="false" />
    </httpHandlers>
    <httpModules>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>
    </httpModules>
</system.web>

IIS (Integrated Mode)

<system.web>
    <httpHandlers>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET"
      path="DX.ashx" validate="false" />
    </httpHandlers>
    <httpModules>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>
    </httpModules>
</system.web>

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET" name="ASPxHttpHandlerModule"
      path="DX.ashx" preCondition="integratedMode" />
    </handlers>
    <modules>
      <add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>
    </modules>
</system.webServer>

Source: How to: Manually Register Aspxhttphandlermodule

  • Yes, I was able to solve this web.config problem, but now I’m trying to solve another one: Could not load file or Assembly 'Devexpress.Web.v17. 2, Version=17.2.5.0, Culture=neutral, Publickeytoken=b88d1754d700e49a' or one of its dependencies. System cannot find specified file.

  • How did you install the component? You are aware that it is a paid product, right?

  • I did not... I am new (intern) in the company... and in the area.

  • You chose or asked you to use it?... you need the support of someone more experienced, you better ask there in the company than here. But check out this link https://documentation.devexpress.com/GeneralInformation/15661/Installation

  • They asked me to use this component. I copied the tag from it and pasted where I would have put an HTML textarea.

  • 1

    You need to add the references first, ask a colleague how to make the setting for you to use it

  • Now this error... 'Aspxrichedit1' control of type 'Aspxrichedit' should be inserted in a format tag with runat=server. I found on the Internet that I should put 'runat="server"' in the tag in Rich Edit, but already have this in it...

  • Here is another question, how you managed to install and fix the prefix record, mark this as answered with my answer or one of yours describing how you solved the problem. Then create a new question.

  • Got it. Failed to put the component inside a form with runat="server" too. <form runat="server">

Show 4 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.