Microsoft Developer Network > Página Inicial dos Fóruns > Visual Studio Team System - Testing > Test Run deployment issue: The location of the file or directory <assembly path> is not trusted.
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoTest Run deployment issue: The location of the file or directory <assembly path> is not trusted.

Respostas

  • terça-feira, 27 de setembro de 2005 18:02dhopton MSFT Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    For this you need to trust path the assembly is from.

    This can be done through the .net configuration wizard -- Just add that specific path as full trust, and you should be fine.

Todas as Respostas

  • terça-feira, 27 de setembro de 2005 18:02dhopton MSFT Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    For this you need to trust path the assembly is from.

    This can be done through the .net configuration wizard -- Just add that specific path as full trust, and you should be fine.
  • terça-feira, 27 de setembro de 2005 18:22Michael Miller Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Thanks for the reply - but I think it was another problem.  I checked the .NET configuration settings and by default the My_Computer_Zone covers the location of the assembly with the FullTrust permission set.  The problem appears to be that the referenced assembly had a security attribute set and when viewing the properties of the file I saw the following message: This file came from another computer and might be blocked...  I clicked the Unblock button, rebuilt and it worked.  Thanks for the help.
  • sexta-feira, 28 de outubro de 2005 0:20James Fuhr Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Is there a way to prevent Windows from re-blocking an assembly after you unblock and rebuild?

    I unblocked the assembly, rechecked properties, then rebuilt.  After a rebuild, the assembly is once again blocked.

  • sexta-feira, 28 de outubro de 2005 0:26James Fuhr Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Big SmileAh, I figured out what I was doing wrong.

    I was unblocking the copied assembly and not the source assembly.

    Once I unblocked the assembly at the source location, the copied version into the bin directory was fine.
  • sexta-feira, 13 de julho de 2007 12:34soundman32 Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    My system (XP/SP2) doesn't have an unblock button !!

    Is there another way of unblocking this?

    Neil

  • segunda-feira, 8 de dezembro de 2008 17:02Devdumper Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário