.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

basic error

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
623 Views, 6 Replies

basic error

Hi I am creating a new project in VB using the wizard and get a warning that "Load of property 'RootNamespace' failed. The string for the root namespace must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an "Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

The two are unrelated. I don't know how to fix the warning, I just started
getting
it myself and haven't figured it out. Look at the post below "Problem
debuging Lab1"
to solve the command line error.
wrote in message news:5324637@discussion.autodesk.com...
Hi I am creating a new project in VB using the wizard and get a warning that
"Load of property 'RootNamespace' failed. The string for the root namespace
must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an
"Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..
Message 3 of 7
Anonymous
in reply to: Anonymous

You problem most likely is caused by different version of .NET version you
use to develop your .NET API program and Acad uses.

By default, Acad uses latest version of .NET, regardless the version .NET
API itself is based on.

If you tell which version of ACAD and which version of VS (or other .NET
development tool, for which version of .NET) you use, it might be help to
solve your problem.

wrote in message news:5324637@discussion.autodesk.com...
Hi I am creating a new project in VB using the wizard and get a warning that
"Load of property 'RootNamespace' failed. The string for the root namespace
must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an
"Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..
Message 4 of 7
Anonymous
in reply to: Anonymous

>"Load of property 'RootNamespace' failed. The string for the root
>namespace must be a valid identifier.

As far as the error goes: The only things that recently changed were
uninstalling
Visual Assist X and Ref++. Warning started right after that. Also one of
them was
locking up my machine when starting VS2005 if any other app was running.
I uninstalled them both at the same time so I don't know which it was.
Problem
was gone after the uninstalls.

"Paul Richardson" wrote in message
news:5326543@discussion.autodesk.com...
The two are unrelated. I don't know how to fix the warning, I just started
getting
it myself and haven't figured it out. Look at the post below "Problem
debuging Lab1"
to solve the command line error.
wrote in message news:5324637@discussion.autodesk.com...
Hi I am creating a new project in VB using the wizard and get a warning that
"Load of property 'RootNamespace' failed. The string for the root namespace
must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an
"Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..
Message 5 of 7
Anonymous
in reply to: Anonymous

I only currently have 2.0 installed. I even tried explictily adding it to
startup
in 'acad.exe.config' no help.

"Norman Yuan" wrote in message
news:5326519@discussion.autodesk.com...
You problem most likely is caused by different version of .NET version you
use to develop your .NET API program and Acad uses.

By default, Acad uses latest version of .NET, regardless the version .NET
API itself is based on.

If you tell which version of ACAD and which version of VS (or other .NET
development tool, for which version of .NET) you use, it might be help to
solve your problem.

wrote in message news:5324637@discussion.autodesk.com...
Hi I am creating a new project in VB using the wizard and get a warning that
"Load of property 'RootNamespace' failed. The string for the root namespace
must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an
"Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..
Message 6 of 7
Anonymous
in reply to: Anonymous


As far as the WARNING goes: ... oops.
"Paul Richardson" wrote in message
news:5326574@discussion.autodesk.com...
>"Load of property 'RootNamespace' failed. The string for the root
>namespace must be a valid identifier.

As far as the error goes: The only things that recently changed were
uninstalling
Visual Assist X and Ref++. Warning started right after that. Also one of
them was
locking up my machine when starting VS2005 if any other app was running.
I uninstalled them both at the same time so I don't know which it was.
Problem
was gone after the uninstalls.

"Paul Richardson" wrote in message
news:5326543@discussion.autodesk.com...
The two are unrelated. I don't know how to fix the warning, I just started
getting
it myself and haven't figured it out. Look at the post below "Problem
debuging Lab1"
to solve the command line error.
wrote in message news:5324637@discussion.autodesk.com...
Hi I am creating a new project in VB using the wizard and get a warning that
"Load of property 'RootNamespace' failed. The string for the root namespace
must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an
"Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..
Message 7 of 7
Anonymous
in reply to: Anonymous

Also, as soon as I close and reopen the project the warning is gone.

"Paul Richardson" wrote in message
news:5326585@discussion.autodesk.com...
I only currently have 2.0 installed. I even tried explictily adding it to
startup
in 'acad.exe.config' no help.

"Norman Yuan" wrote in message
news:5326519@discussion.autodesk.com...
You problem most likely is caused by different version of .NET version you
use to develop your .NET API program and Acad uses.

By default, Acad uses latest version of .NET, regardless the version .NET
API itself is based on.

If you tell which version of ACAD and which version of VS (or other .NET
development tool, for which version of .NET) you use, it might be help to
solve your problem.

wrote in message news:5324637@discussion.autodesk.com...
Hi I am creating a new project in VB using the wizard and get a warning that
"Load of property 'RootNamespace' failed. The string for the root namespace
must be a valid identifier.

When I complie the code, and try to run the command in AutoCAD I get an
"Unknow command" error..

The code is

Imports Autodesk.AutoCAD.Runtime

Public Class EvolveClass

' Define command 'Asdkcmd1'
_
Public Sub Asdkcmd1()
' Type your code here
MsgBox("load please load!!")

End Sub

End Class

Can anyone help..

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost