ASP.NET - NO puedo cargar archivos de tipo .dwg con Ajax Tool Kit File Upload

 
Vista:
sin imagen de perfil
Val: 6
Ha aumentado su posición en 2 puestos en ASP.NET (en relación al último mes)
Gráfica de ASP.NET

NO puedo cargar archivos de tipo .dwg con Ajax Tool Kit File Upload

Publicado por Halcón Divino (4 intervenciones) el 18/05/2019 00:10:35
Hola

Estoy usando el Ajax Tool Kit File Upload

Me trabaja muy bien para cargar archivos xls,zip,xml,jpj,bmp,txt etc...

Puedo cargar estos tipos de archivos ..... incluso hasta de 20 MB

El problema es que cuando quiero cargar archivos tipo dwg que son de AUTOCAD no me deja.
Me marca ERROR ... no dice que tipo de error ni nada de información adicional

Asi es cuando le doy click al botón UPLOAD inmediatamente marca ERROR.

También con archivos con extensión ipt o stp .

Y son archivos de 150 KB o 300 KB son archivos chicos

Por que no puedo cargar archivos de tipo dwg con Ajax Tool Kit File Upload


Este es mi código HTML


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
 
<!DOCTYPE html>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="styles.css" rel="stylesheet" type="text/css" media="screen"/>
</head>
 
<body>
        <form id="form1" runat="server">
        <asp:scriptmanager runat="server"></asp:scriptmanager>
    <div>
                    <ajaxToolkit:AjaxFileUpload
                        ID="AjaxFileUpload1"
                        runat="server"
                        OnUploadComplete="AjaxFileUpload1_UploadComplete"
                        OnUploadCompleteAll="AjaxFileUpload1_UploadCompleteAll"
                        Mode="Auto"
                        ChunkSize="4096"
                        MaxFileSize="21000000" />
    </div>
    </form>
</body>
</html>



Este es mi código web.config


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" targetFramework="4.5">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
    <httpRuntime maxRequestLength="20480" targetFramework="4.5" />
    <httpHandlers>
      <add verb="*"
           path="AjaxFileUploadHandler.axd"
           type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit, Version=4.5.7.725, Culture=neutral, PublicKeyToken=28F01B0E84B6D53E"
           />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="AjaxFileUploadHandler"
           verb="*"
           path="AjaxFileUploadHandler.axd"
           type="AjaxControlToolkit.AjaxFileUploadHandler,AjaxControlToolkit"/>
    </handlers>
    <defaultDocument>
      <files>
                <clear />
                <add value="Default.aspx" />
                <add value="LoginP.aspx" />
                <add value="LoginA.aspx" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder