473,378 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

"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 5926
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eugene | last post by:
Hello all, I've been trying to figure this out for a few days now, and still have no clue what's going on... I have a few related tables in MS Access (Clients, Cars, Sales), and a datagrid,...
2
by: Vinod I | last post by:
Hi Team, When I tryed following code, I am getting the Runtime Error as "The View State is invalid for this page and might be corrupted." Exception Details: System.Web.HttpException: The View...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
1
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall)...
5
by: | last post by:
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...
0
by: dbuchanan | last post by:
Hello, Why am I getting this error? I don't know how to isolate it. It occurs intermittently. Has anyone seen this before? Here is the full text \\ System.IO.FileLoadException was...
13
by: Jim in Arizona | last post by:
I made a page with a gridview that has rows show a different color if a number in a column is greater than or equal to 45. I also did this conditional formatting for the column next to it. Here's...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
3
by: GazK | last post by:
I have been using an xml parsing script to parse a number of rss feeds and return relevant results to a database. The script has worked well for a couple of years, despite having very crude...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.