473,756 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"error CS1577: Assembly generation failed -- Unexpected exception processing attribute -- System.Argument Exception: 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.Argument Exception: 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 5988
> 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.Argument Exception: 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.Argument Exception: 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+rei nstalled, repaired,
installed .NET 1.1, uninstallerd+re installed....
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\Scrat ch\DICOM\Manage d\WindowsApplic ation1>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.Argument Exception: Invalid directory on URL..

D:\Source\Scrat ch\DICOM\Manage d\WindowsApplic ation1>

------------
D:\Source\Scrat ch\DICOM\Manage d\WindowsApplic ation1>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\Scrat ch\DICOM\Manage d\WindowsApplic ation1>


Jul 21 '05 #3

<Ol**********@s kyscan.be> wrote in message
news:3f******** *************** @reader3.news.s kynet.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.Argument Exception: 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.Argument Exception: 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.Argument Exception: 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.Argument Exception: 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
2761
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, binded to dataview. Here's a catch - whenever I select a client, and then find a car which belongs to this client, and click on empty space in datagrid (that is in gray area below rows) - I get "Index was outside the bounds of the array" error......
2
3218
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 State is invalid for this page and might be corrupted. Stack Trace: System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150 System.Web.UI.Page.LoadPageViewState() +16
4
2719
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 source of the files...
1
4245
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) LoadControl("ViewSmall.ascx");
5
1004
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 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...
0
1944
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 unhandled
13
1554
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 my code. in the aspx file =============================== <asp:GridView ID="gvData" runat="server" OnRowDataBound="doColor"> =============================== in the aspx.vb file
23
5133
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 solution, and was greeted with the following error: ======================================================================== It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error...
3
4514
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 error-trapping (if it finds an error in one of the xml files, the script stops). Recently, the script has stopped working because one of the xml files is badly formed. So I decided to rewrite the script with better error trapping; the script should...
0
9844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9689
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8688
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3780
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.