Ir para conteúdo
Fórum Script Brasil
  • 0

Request.totalbytes E Request.binaryread


Miqui

Pergunta

Pessoal, alguém tem alguma dica ?

Estou usando aquele código para fazer upload de arquivos sem componentes e estou recebendo o erro ASP 0104 80004005 - Operation not Allowed nas seguintes linhas.

byteCount     = Request.TotalBytes
RequestBin    = Request.BinaryRead(byteCount)

Obrigado

abraço

Miqui

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

bom... se você ta fazendo upload de arquivos com mais de 450 kb... esquece.. esse negocio de sem componentes é so para quebrar a cabeça com muitas linhas.... utilizar um componente é bem melhor... existem gratis muito bons como o dundas upload... que irá dar-lhe muito mais opçoes...

Link para o comentário
Compartilhar em outros sites

  • 0

Fala ae bareta, beleza ?

Então, eu tive problemas com arquivos grandes e resolvi aumentando o tempo limite para rodar o script no servidor de 90s (default) para 3600s por exemplo.

A merda aqui no meu ambiente é que não posso instalar componentes. Sabe como é... tem nego que vive só pra ferra a vida dos outros e esse erro de Operation not Allowed começou a aparecer depois que migraram o site de servidor, ai to tentando correr atrás do prejuízo afinal de contas é fácil para um administrador dizer que o problema esta na aplicação.

Num sei, mas to achando que á algum tipo de configuração pois no ambiente de testes esta rodando normalmente.

abraço

Miqui

Link para o comentário
Compartilhar em outros sites

  • 0

Não sei se alguém teve, tem ou terá problemas com isso mas fica ai a dica.

Server settings

Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 (Windows Server 2003) has a limit of 200 KB for ASP requests in general and file uploads in particular. To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.

Follow these steps: go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"; if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice; check whether the same variable shows up in other places in the file.

abraço

Miqui

Link para o comentário
Compartilhar em outros sites

  • 0

FUNCIONOU COMIGO, VALEU.....

Não sei se alguém teve, tem ou terá problemas com isso mas fica ai a dica.

Server settings

Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 (Windows Server 2003) has a limit of 200 KB for ASP requests in general and file uploads in particular. To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.

Follow these steps: go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"; if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice; check whether the same variable shows up in other places in the file.

abraço

Miqui

Link para o comentário
Compartilhar em outros sites

  • 0
Guest Cristiano Lagame

Deve ser problema de permissão, vai lá no servidor e dá permissão total que vai funcionar com certeza, pois como você explicou, foi mudado de servidor.

Link para o comentário
Compartilhar em outros sites

  • 0
Guest Ahton Qobi

A solução é ESTA!

Não precisa testar outros. Não esqueçam de fazer uma cópia de segurança do arquivo MetaBase.xml.

Abração

Não sei se alguém teve, tem ou terá problemas com isso mas fica ai a dica.

Server settings

Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 (Windows Server 2003) has a limit of 200 KB for ASP requests in general and file uploads in particular. To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.

Follow these steps: go to IIS and right click the server, select properties, and check the box "Allow changes to MetaBase configuration while IIS is running"; if after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode; open the file in an editor; the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice; check whether the same variable shows up in other places in the file.

abraço

Miqui

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...