Click here to Skip to main content
15,887,446 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everybody.

I need to install a service on my computer with installutil.

When I install it from my local drive, it is OK but when I reference installutil to a network path I get this error:

C#
Installing assembly '\\XXXXX\XXXXX\XXXXXX\XXXXX\XXXXXX.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = \\XXXXX\XXXXX\XXXXXX\XXXXX\XXXXXX.exe
   logfile = \\XXXXX\XXXXX\XXXXXX\XXXXX\XXXXXX.InstallLog
Unable to create an instance of the XXXXX.ProjectInstaller installer type.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
The inner exception System.Security.SecurityException was thrown with the following error message: That assembly does not allow partially trusted callers..
Rolling back assembly '\\XXXXX\XXXXX\XXXXXX\XXXXX\XXXXXX.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = \\XXXXX\XXXXX\XXXXXX\XXXXX\XXXXXX.exe
   logfile = \\XXXXX\XXXXX\XXXXXX\XXXXX\XXXXXX.InstallLog
Unable to create an instance of the XXXX.ProjectInstaller installer type.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
The inner exception System.Security.SecurityException was thrown with the following error message: That assembly does not allow partially trusted callers..


Recently I changed to Win7 and VS2010.

Before I was working with XP and VS2005. I could solve this changing .NET 2.0 configuration but now I cant't install .NET framework SDK and get the configuration tool.

Is there any way to solve this
Posted
Updated 26-Apr-12 22:53pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900