2005 Beta 2 compile error

  • Thread starter Thread starter Wayne
  • Start date Start date
W

Wayne

This may not be the best group to ask in as the question is about the beta,
if there is a better place please point me to it.

I've had beta 1 installed, after a re-install of the OS this weekend I
installed beta 2. I opened a project that I had written with beta 1 and
tried to compile it, when I compile it I get the error below. I am not sure
what the error means nor do I know how to fix it. Is the
Microsoft.Common.targets file new to beta 2? Where can I find some info on
the file, it's contents, and what it's for? I've tried Google but wasn't
able to find anything (though it was late when I was working on this)


Error 60 The "GenerateTrustInfo" task failed unexpectedly.
System.ArgumentException:
Parameter name: targetZone
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.GetName
dPermissionSetFromZone(String targetZone)
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.Compute
ZonePermissionSet(String targetZone, PermissionSet includedPermissionSet,
String[] excludedPermissions)
at Microsoft.Build.Tasks.GenerateTrustInfo.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup
projectPropertiesAvailableToTask)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets
2171 9


The GenerateTrustInfo is set up as the following (this is where the cursor
is placed when I double click the error):

<GenerateTrustInfo
BaseManifest="@(BaseManifestWithTargetPath)"
ExcludedPermissions="$(ExcludedPermissions)"
TargetZone="$(TargetZone)"
TrustInfoFile="@(IntermediateTrustInfoFile)">
<Output TaskParameter="TrustInfoFile" ItemName="FileWrites"/>
</GenerateTrustInfo>

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein
 
Wayne said:
This may not be the best group to ask in as the question is about the
beta,
if there is a better place please point me to it.

I've had beta 1 installed, after a re-install of the OS this weekend I
installed beta 2. I opened a project that I had written with beta 1 and
tried to compile it, when I compile it I get the error below. I am not
sure
what the error means nor do I know how to fix it. Is the
Microsoft.Common.targets file new to beta 2? Where can I find some info on
the file, it's contents, and what it's for? I've tried Google but wasn't
able to find anything (though it was late when I was working on this)


Error 60 The "GenerateTrustInfo" task failed unexpectedly.
System.ArgumentException:
Parameter name: targetZone
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.GetName
dPermissionSetFromZone(String targetZone)
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.Compute
ZonePermissionSet(String targetZone, PermissionSet includedPermissionSet,
String[] excludedPermissions)
at Microsoft.Build.Tasks.GenerateTrustInfo.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup
projectPropertiesAvailableToTask)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets
2171 9


The GenerateTrustInfo is set up as the following (this is where the cursor
is placed when I double click the error):

<GenerateTrustInfo
BaseManifest="@(BaseManifestWithTargetPath)"
ExcludedPermissions="$(ExcludedPermissions)"
TargetZone="$(TargetZone)"
TrustInfoFile="@(IntermediateTrustInfoFile)">
<Output TaskParameter="TrustInfoFile" ItemName="FileWrites"/>
</GenerateTrustInfo>

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Are your Beta1 projects loaded from a file share? Did you grant fulltrust
CAS to this location?

I would suggest you to post VS2005 Beta2 issues to the public Beta2 Forum
at http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=6


Willy.
 
Everything is on the local drive, same place it was when Beta 1 was
installed.

Not sure what CAS is. Thanks for the link, I've posted the original question
there.
Wayne


Willy Denoyette said:
Wayne said:
This may not be the best group to ask in as the question is about the
beta,
if there is a better place please point me to it.

I've had beta 1 installed, after a re-install of the OS this weekend I
installed beta 2. I opened a project that I had written with beta 1 and
tried to compile it, when I compile it I get the error below. I am not
sure
what the error means nor do I know how to fix it. Is the
Microsoft.Common.targets file new to beta 2? Where can I find some info on
the file, it's contents, and what it's for? I've tried Google but wasn't
able to find anything (though it was late when I was working on this)


Error 60 The "GenerateTrustInfo" task failed unexpectedly.
System.ArgumentException:
Parameter name: targetZone
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.GetName
dPermissionSetFromZone(String targetZone)
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.Compute
ZonePermissionSet(String targetZone, PermissionSet includedPermissionSet,
String[] excludedPermissions)
at Microsoft.Build.Tasks.GenerateTrustInfo.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup
projectPropertiesAvailableToTask)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets
2171 9


The GenerateTrustInfo is set up as the following (this is where the cursor
is placed when I double click the error):

<GenerateTrustInfo
BaseManifest="@(BaseManifestWithTargetPath)"
ExcludedPermissions="$(ExcludedPermissions)"
TargetZone="$(TargetZone)"
TrustInfoFile="@(IntermediateTrustInfoFile)">
<Output TaskParameter="TrustInfoFile" ItemName="FileWrites"/>
</GenerateTrustInfo>

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Are your Beta1 projects loaded from a file share? Did you grant fulltrust
CAS to this location?

I would suggest you to post VS2005 Beta2 issues to the public Beta2 Forum
at http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=6


Willy.
 
Wayne said:
Everything is on the local drive, same place it was when Beta 1 was
installed.

Not sure what CAS is. Thanks for the link, I've posted the original
question
there.
Wayne

CAS = Code Acces Security, the error relates to an issue with trust
generation (now inclded with VS2005) see: "GenerateTrustInfo" in the stack
dump.
This...:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets
2171 9
.... indicates the failing line/pos in the Microsoft.Common.targets file when
building the project file.
I suggest you try to create a new project and move your existing code item
to it.

Willy.
 
Ok, thought about creating the new project. Will try that tonight. I've
looked at the file in question, not really sure what the file is and haven't
been able to find anything about it in the help or on the web to help fix
the issue.

I'll let you know Monday how creating the new project goes.
Wayne
 
Back
Top