469,579 Members | 1,188 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

"error CS1577: Assembly generation failed -- Unexpected exception processing attribute -- System.ArgumentException: Invalid directory on URL."

Some time ago I installed VC# 2003, made a small generic project, compile
with the allow unsafe flag and I get the error below:
"error CS1577: Assembly generation failed -- Unexpected exception
processing attribute -- System.ArgumentException: Invalid directory on URL."

(If I do not compile with the unsafe flag compiler setting all compiles
perfect)

After long tracing, I ended up discovering that it is csc.exe installed by
the .NET framweork 1.1 that generates this error.
When I compile this with the C# 2002 (and csc.exe from .NET 1.0) then I do
not get this message, with or without unsafe compiler option..

I still have no fix for this and I need it because I have to move to vc#
2003.
So can anyone give some tips in order to trace back WHAT attribute is giving
me problems and where I can find it?

I am using Windows 2000 professional with all the critical updates and
service packs installed.
Propably some stupid setting that are missing, but which one????


Jul 21 '05 #1
4 5647
> Some time ago I installed VC# 2003, made a small generic project, compile
with the allow unsafe flag and I get the error below:
"error CS1577: Assembly generation failed -- Unexpected exception
processing attribute -- System.ArgumentException: Invalid directory on URL."
(If I do not compile with the unsafe flag compiler setting all compiles
perfect)

I just uninstalled the .NET framework and reinstalled it, and it got worse.
I also get this error when I do ot use the /unsafe switch from csc.exe. :-(

The big question now: Is there any chance that the csc.exe itself or some
used dll's by it, that gets into conflict with the .NET security?
Anyone knows what to check?
Jul 21 '05 #2
> > Some time ago I installed VC# 2003, made a small generic project,
compile
with the allow unsafe flag and I get the error below:
"error CS1577: Assembly generation failed -- Unexpected exception
processing attribute -- System.ArgumentException: Invalid directory on URL."

(If I do not compile with the unsafe flag compiler setting all compiles
perfect)

I just uninstalled the .NET framework and reinstalled it, and it got

worse. I also get this error when I do ot use the /unsafe switch from csc.exe.

:-(

Only one machine has this problem and it happens to be my development
machine (tested with the same code).
All other computers have no problems, with this csc.exe. This is clearly
some crash in the .NET v1.1 csc.exe, but I have no idea what causes it.
It is related to the unsafe compiler option, maybe it is deeper and at the
level of the CLR?

I reinstalled VC# many times, also uninstalled+reinstalled, repaired,
installed .NET 1.1, uninstallerd+reinstalled....
Probably some silly path or environment variable that is incorrect, if only
I know how to find which one? Any tips are welcome.
Any tips how to debug this csc.exe to trace the problem would also be
welcom.

Here is an example of what I get.

-----------
D:\Source\Scratch\DICOM\Managed\WindowsApplication 1>csc form1.cs /unsafe+
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

error CS1577: Assembly generation failed -- Unexpected exception processing
attribute -- System.ArgumentException: Invalid directory on URL..

D:\Source\Scratch\DICOM\Managed\WindowsApplication 1>

------------
D:\Source\Scratch\DICOM\Managed\WindowsApplication 1>csc form1.cs /unsafe-
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
D:\Source\Scratch\DICOM\Managed\WindowsApplication 1>


Jul 21 '05 #3

<Ol**********@skyscan.be> wrote in message
news:3f***********************@reader3.news.skynet .be...
Some time ago I installed VC# 2003, made a small generic project, compile with the allow unsafe flag and I get the error below:
"error CS1577: Assembly generation failed -- Unexpected exception
processing attribute -- System.ArgumentException: Invalid directory on

URL."

(If I do not compile with the unsafe flag compiler setting all compiles
perfect)


We have a break through in this problem:

I removed every Microsoft compiler, and only reinstalled VC# 2003 and I have
a completely new error.
Maybe this is the real cause, the big question what does it mean? I do not
have a XML input file or so.
The new error:

error CS1577: Assembly generation failed -- Unexpected exception processing
attribute -- System.ArgumentException: Unable to generate permission set;
input XML may be malformed..
Jul 21 '05 #4
YES!!!!! I got it!!!!
It was the WINDIR environment variable, all is functioning perfect now!

Some time ago I installed VC# 2003, made a small generic project, compile with the allow unsafe flag and I get the error below:
"error CS1577: Assembly generation failed -- Unexpected exception
processing attribute -- System.ArgumentException: Invalid directory on URL."

(If I do not compile with the unsafe flag compiler setting all compiles perfect)


We have a break through in this problem:

I removed every Microsoft compiler, and only reinstalled VC# 2003 and I

have a completely new error.
Maybe this is the real cause, the big question what does it mean? I do not
have a XML input file or so.
The new error:

error CS1577: Assembly generation failed -- Unexpected exception processing attribute -- System.ArgumentException: Unable to generate permission set;
input XML may be malformed..

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Don Wash | last post: by
1 post views Thread by Jonas Auken | last post: by
13 posts views Thread by Jim in Arizona | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.