Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

gregorio

ASP no Nt Server 2003

Recommended Posts

O Servidor onde hospedo um site está utilizando agora o Nt Server 2003, e desde então os includes feitos da maneira abaixo deixou de funcionar:

 

<!--#include file="..\cabecalho.asp"-->

 

Ocorre o seguinte erro:

Active Server Pages error 'ASP 0131'

 

Disallowed Parent Path

 

/unidev/artigos/criptografiavbcode000.asp, line 46

 

The Include file '../cabecalho.asp' cannot contain '..' to indicate the parent directory.

 

Eu tentei colocar o path absoluto do arquivo, mas aí dá uma mensagem dizendo que o arquivo não foi encontrado.

O Administrador já tentou de tudo, e não conseguiu nada.

 

Alguém sabe o que é necessário fazer??

Compartilhar este post


Link para o post
Compartilhar em outros sites

Descobri o que é... tem uma opção no IIS chamada Enable Parent Directory... O que acontece é o seguinte: O windows 2003 server vem com a maioria das configurações de IIS travada ou desabilitada, por isso você nao conseguia fazer isso..

 

Segue as instruções abaixo:

Error "...'ASP 0131' Disallowed Parent Path..." When Viewing a GoLive 5.0 Dynamic Link ASP Page

 

Issue

When you try to view an Adobe GoLive 5.0 Dynamic Link ASP page, GoLive or the Web browser returns the error "Active Server Pages error 'ASP 0131' Disallowed Parent Path...the [include] file '../[path]/[filename].asp' cannot contain '..' to indicate the parent directory."

 

 

Detail

The Web server runs Microsoft IIS (Internet Information Server) 4.0 or later.

 

 

Solutions

 

Do one of the following:

 

 

Solution 1

Enable parent paths in IIS:

 

 

Note: Enabling parent paths in IIS is a potential security risk. (See Microsoft Knowledge Base article Q184717 at http://support.microsoft.com/support/kb/ar...Q184/7/17.ASP.) Therefore, Adobe doesn't recommend enabling parent paths on a publicly accessible server. Enabling them on a staging server with restricted access, however, may be appropriate.

 

 

1. Open the Internet Service Manager:

 

 

In Windows 2000:

a. Choose Start > Settings > Control Panel.

b. Double-click Administrative Tools

c. Double-click Internet Service Manager.

 

 

In Windows NT 4.0:

-- If your Web server wasn't installed using the Windows NT 4.0 Option Pack, choose Start > Programs > Administrative Tools > Internet Service Manager.

-- If your Web server was installed using the Windows NT 4.0 Option Pack, choose one of the following:

-- Start > Programs > Windows NT 4.0 Option Pack > Microsoft Personal Web Server > Internet Service Manager.

-- Start > Programs > Windows NT 4.0 Option Pack > Internet Information Server > Internet Service Manager.

 

 

2. In your Web site, right-click the folder or virtual folder containing the Dynamic Link config folder.

3. Choose Properties from the pop-up menu, and then click the Directory or Virtual Directory tab.

4. Click Configuration, and then click the App Options tab.

5. Select Enable Parent Paths, and then click OK.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.