473,320 Members | 1,950 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,320 software developers and data experts.

Assembly generation failed

Jim

I am trying to compile a demo from the XNA site and I get this error

Error 1 Assembly generation failed -- Error emitting
'System.Runtime.InteropServices.GuidAttribute' attribute --'Incorrect
UUID format.' MarbletsWindows

The only place I can see this assemble being used is here:

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("$guid1$")]

I am a Delphi guy and just starting to learn C#. What does this line
mean? I can't find guid1 defined anywhere else in the project.

Using Visual C# 2008

Any thoughts?

Thanks.
Jim
--
www.mustangpeak.net
Nov 12 '08 #1
5 7833
On Nov 12, 8:24*am, "Jim" <j...@mustangpeak00.comwrote:
I am trying to compile a demo from the XNA site and I get this error

Error * 1 * * * Assembly generation failed -- Error emitting
'System.Runtime.InteropServices.GuidAttribute' attribute --'Incorrect
UUID format.' * MarbletsWindows

The only place I can see this assemble being used is here:

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("$guid1$")]

I am a Delphi guy and just starting to learn C#. *What does this line
mean? *I can't find guid1 defined anywhere else in the project.

Using Visual C# 2008

Any thoughts?

Thanks.
Jim
--www.mustangpeak.net
Is the $guid1$ replaced with a valid GUID during build? GUIDs have a
specific format. You can generate on one the fly, but not sure what
your app is using it for.

Guid guid = Guid.NewGuid();

http://msdn.microsoft.com/en-us/libr...te(VS.80).aspx
http://msdn.microsoft.com/en-us/libr...d.newguid.aspx

Thanks,
-tom
Nov 12 '08 #2
Jim
thomasnguyencom wrote:
Guid.NewGuid();
How do I convert the GUID to a string in C#?

Jim
--
www.mustangpeak.net
Nov 12 '08 #3
Jim wrote:
thomasnguyencom wrote:
>Guid.NewGuid();

How do I convert the GUID to a string in C#?

Jim
With ToString, of course:

string str = Guid.NewGuid().ToString();

The overloads provide different format options.

Regards.
Nov 12 '08 #4
It really looks like you have a preprocessor item in the code. The []
brackets look like a method or class attribute, so going down the line of
generating a guid an converting to a string in C# does not really apply.
"Jim" <ji*@mustangpeak00.comwrote in message
news:OD**************@TK2MSFTNGP02.phx.gbl...
thomasnguyencom wrote:
>Guid.NewGuid();

How do I convert the GUID to a string in C#?

Jim
--
www.mustangpeak.net
Nov 12 '08 #5
Jim
Family Tree Mike wrote:
It really looks like you have a preprocessor item in the code. The
[] brackets look like a method or class attribute, so going down the
line of generating a guid an converting to a string in C# does not
really apply.
I'm an idiot. The XNA was a TEMPLATE not a compilable app. Once I
created a new project USING the template the new project contained this:

// The following GUID is for the ID of the typelib if this project is
exposed to COM
[assembly: Guid("478674fe-a18a-4c57-b8ba-a0cb73ff6fdd")]

Thanks,
Jim
--
www.mustangpeak.net
Nov 13 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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: Sascha A. Koenig | last post by:
How do I strong name an assembly that uses the MS Browser Control? I added the control to my forms (references axSHDocVw and SHDocVw got added), but I get the error message, that the assembly...
3
by: Tony Jones | last post by:
I have a third party assembly that I need to strong name because the C# project I'm referencing it in will be strong named. Every time I compile my project I'm getting "Assembly generation failed...
2
by: Vishal - Auh | last post by:
Hi, I'm creating a Strong named assembly which has a reference to a third-party Assembly. When I try to compile my assembly, I receive the following error "Assembly generation Failed --...
8
by: | last post by:
Wel, I am rebuilding the VC# 2002 project that I have deployment problems with the 2003 version, hoping this solves the problems, but now I encounter this wierd bug??? If I have the project, and...
1
by: Nadav | last post by:
Hi, Introduction: **************** I have created a .NET COM interop Assembly, this assembly references another COM object. The Problem: ***************** To enable registration of the...
3
by: Richard | last post by:
Hi, We would like our application to be signed and have a strong name. However our application references a 3rd party .dll that does not have a strong name and so when we compile we get the...
7
by: Alan T | last post by:
I have create a class library and add it to the reference list in one of the projects. However, when I compile the project and got the error: Assembly generation failed -- Referenced assembly...
3
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello Gurus, I wrote a .NET application using C# and exported some interface for COM usage. I did register my application COM interface using the REGASM.exe and some more code in application....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.