Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
1.3K+ views

I have all the handlers and modules registered in my web.config. But I still get "Error while uploading, HTTP Error code is: 500" error in RadAsyncUpload method.

 

I have checked all the Telerik Demos and all the demos have all other code samples except Web.config.

 

Here are my four different web.config entries.

 <httpHandlers>
       <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"/>
    </httpHandlers>

    <httpModules>     
      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
       <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>   
    </httpModules>

 

 <handlers>
      <add name="aspnet_isapi" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
      <add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
    </handlers>
    <modules runAllManagedModulesForAllRequests="true">      
     <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler"/>
    </modules>

 

What can be the issue? When I do F12 and try to upload the file, it red errors out on ScriptResource.axd file with "Error while uploading, HTTP Error code is: 500".

Miika
Top achievements
Rank 1
Iron
 answered on 28 Sep 2022
0 answers
172 views

HI,

 

Ho to clear a chart from JS.

 

Regards,

Omar

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 asked on 28 Sep 2022
1 answer
369 views
We have a need for a clear button (a small X icon) in the text input area of an editable RadComboBox. This needs to be in place for all RadComboBoxes used across the project. I've been digging around trying to see how this could be done. I found this post, which showed how to add a button that would clear the input, but the button is in the wrong spot (inside the dropdown list), and would have to be manually copied into each RadComboBox somehow. I found that the RadTextBox component has a clear button, but the RadComboBox seems to use only a regular input element. If I could edit or override the entire template for the component I think it would be possible, but I haven't found any way to do that. Is what I'm trying to accomplish doable with the built-in Telerik functionality?
Valentin Dragnev
Telerik team
 answered on 27 Sep 2022
0 answers
252 views

Hi,

I can get my pdf file from sql svr database to view on browser:

DataRow dr = dsFile.Tables[0].Rows[0];

Byte[] fileBuffer = (byte[])dr["DocumentBinary"];

if (fileBuffer != null)
{
    radviewPdf.PdfjsProcessingSettings.FileSettings.Data = Convert.ToBase64String(fileBuffer);
}

How to view the PDF without saving to a folder (say ..\Download)?

On MS Edge, browser asks to click Open file but it also saved to Download.

On Chrome, browser asks to save file.

Thanks,

DT

 

d-cpt
Top achievements
Rank 2
 asked on 23 Sep 2022
0 answers
221 views

We attempted to update our Telerik libraries from 2022.2.622.45 to 2022.3.913.45

This caused:

System.Web.HttpException (0x80004005): This is an invalid webresource request.
   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Thru trial and error we were able to discover that this is caused by using RenderMode="Lightweight" on specifically RadComboBox. It causes no issue elsewhere. This option continues to be available thru autocomplete on in the aspx file as if it's valid.

We were also able to successfully set a RadComboBox to Lightweight in another empty project on this version for testing purposes.

Any idea what steps can be taken to mitigate this?

To have such a random, valid setting cause the site to break only to be given an obscure error with no information pointing to what's wrong makes me concerned of what else might be broken that we haven't noticed.

This pertains to the Telerik.Web.UI dll.

Caleb
Top achievements
Rank 1
 updated question on 22 Sep 2022
0 answers
125 views

I'm working on a web form where users can import data from an excel sheet. That data gets parsed on postback after submission of the file and then placed in a RadGrid for review and revision and is not stored in the database.

I need to retrieve all of the data initially imported plus all of the changes made to that data which may include additional rows added. 

I'm using a RadGrid in batch edit mode and trying to figure out the best way of submitting the form so that I can retrieve not just the changed rows but every row that was in the grid initially.

What would be the best way to do this? 

Mathew
Top achievements
Rank 1
 asked on 16 Sep 2022
0 answers
103 views

I am trying to data bind a Html Chart as a Bar chart with multiple Range Bar series but I get the error telling me the DataFieldY does not support polar types and use the DataRadiusField. this is my code so far. 

 

List<RangeBarSeries> series = new List<RangeBarSeries>();
            for(int i = 1; i < 11; i++)
            {
                RangeBarChart1.PlotArea.XAxis.Items.Add("Equipment " + i);
                
                
                RangeBarSeries barSeries = new RangeBarSeries();
                barSeries.AxisName = "Equipment " + i;
                barSeries.TooltipsAppearance.ClientTemplate = "Start #= value.from # End #= value.to #";
                barSeries.Name = "Equipment " + i;
                barSeries.Spacing = -1;
                
                series.Add(barSeries);
            }

            for (int i = 0; i < 25; i ++)
            {
                RangeSeriesItem item = new RangeSeriesItem();
                if(i % 2 == 0)
                {
                    item.BackgroundColor = System.Drawing.Color.Green;
                }
                else
                {
                    item.BackgroundColor = System.Drawing.Color.Red;
                }
                decimal f = i;
                decimal t = Convert.ToDecimal(i + 0.01);
                item.From = f;
                item.To = t;
                foreach(RangeBarSeries barSeries in series)
                {
                    barSeries.SeriesItems.Add(item);
                }
            }
            RangeBarChart1.DataSource = series;
            RangeBarChart1.DataBind();
Shahroze
Top achievements
Rank 1
 asked on 16 Sep 2022
1 answer
160 views

 

<rad:RadGrid ID="rgv" runat="server">
    <MasterTableView>
        <Columns>
            ....
        </Columns>
        <DetailItemTemplate>
            <table width="100%">
                <tr>
                    <td>..
                    </td>
                </tr>
            </table>
        </DetailItemTemplate>

So I can see the details for each row, but I want to hide them and see it when I press the expand button. But how ?

Attila Antal
Telerik team
 answered on 14 Sep 2022
1 answer
53 views

I have updated v2022.3.906 but spreadsheet had an error,

Uncaught TypeError: this._applyAriaAttributes is not a function

    at b.RadColorPicker.initialize 
    at b.RadColorPicker.endUpdate
    at Sys.Component.create
    at Array.<anonymous> ...

and same to your demo site. 

https://demos.telerik.com/aspnet-ajax/spreadsheet/examples/overview/defaultcs.aspx

How can I fixed it?

Thank you.

Peter Milchev
Telerik team
 answered on 14 Sep 2022
1 answer
144 views

Is there a way to change the color the grid row selector? not the entire row or a column just the row selector. I would also like to know if a tooltip can be include on the row selector as well. 

Thanks,,

 

 

 

 
Attila Antal
Telerik team
 answered on 12 Sep 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?