andrewds17

Hey,

I am using .net Framework 3.0 at home, and my program works successfully, no problems to launch.

However at my school where they are using .net Framework 2.0 it fails to launch

Here is a screenshot:

Here is my Program.cs

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace FilmScript
{
static class Program
{
public static Form1 form = null;
public static newProject newProj = null;

public static String ProjectTitle = String.Empty;
public static String ProjectAlreadyLoaded = "NO";
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

form = new Form1();
newProj = new newProject();
Application.Run(form);
}
}
}

I do not know why this is happening, as I have no code that could trigger a system exception, I use System.IO and XML read and saving, but do not know if that is also causing the error.

If you believe this might be the cause I will be happen to share that code with you.

Many Thanks

Andrew Swallow



Re: Visual C# General Error code: 0xe0434f4d

Matthew Watson

You're not running it from a file on the network are you, by any chance

If so, try copying it to a local drive and run it from there.




Re: Visual C# General Error code: 0xe0434f4d

andrewds17

It runs off a drive called H:\

So yes it is a Network Drive as the letter is H on whatever logon you are on, but shows files depending on your logon.

With my current logon I cannot access a Local Drive. I may talk to the network adminstrators to see if they can test for me.

Thanks

Anderw





Re: Visual C# General Error code: 0xe0434f4d

Matthew Watson

Default .Net security does not allow you to run .Net programs directly from a network share (this is a Good Thing).

Normally, you have to copy a .Net program to a local drive before you can run it. However, in your case this looks like it is not possible.

One way around it is to change the local machines security policy to allow .Net programs to run from a network drive.

(From Control Panel|Administrative Tools -> .Net Framework 2.0 Configuration, and it's somewhere in there...)




Re: Visual C# General Error code: 0xe0434f4d

andrewds17

Thank you Matthew for this information.

In the documentary I will have to state this in case my customers are running off a Network Drive.

Andrew





Re: Visual C# General Error code: 0xe0434f4d

James Curran

The answer the question of the message title:

In ASCII, 43 4F 4D translates to "COM". So, E0434F4D was chosen as the error for for "Exception from a COM object"






Re: Visual C# General Error code: 0xe0434f4d

andrewds17

Hello

I have just remembered that another of my programs, has successfully launched from the network drive I am running off, and still does.

I am sure I have compiled the same as before, however on my new project, "Scripter Plus", it pops up before asking if I want to run the program due to an "Unknown Publisher".

Also, running the program again, I noticed that on my previous screenshot it mentions P9 : System.Security.Security

However now it states P9 : n3ctrye2kn3c34sgl4zqyrbfte4m13nb but still the same error code.

So knowing this other information about a previous problem, I have doubts that is is because it is running off the internet.

Thanks

Andrew





Re: Visual C# General Error code: 0xe0434f4d

Matthew Watson

Here's some more info about .Net security and running from a network drive:

http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx