adding resources to the component

G

Guest

I created component for an application. I found that some files in that need
to be registerd during FBA . I added a resource FBA COM/DLL registration for
one file(here the file is 'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis is the
location of file on target system(same system but on diff partition(D:/)).

On Run-time image i've included this component. While using the application
it is giving an error

System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not registered

Can some on help me..

Regards,
Embedded_msit
 
K

KM

embedded_msit,
I created component for an application. I found that some files in that need
to be registerd during FBA . I added a resource FBA COM/DLL registration for
one file(here the file is 'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis is the
location of file on target system(same system but on diff partition(D:/)).

This is a wierd path. Are you sure the path is the exact same when XPe launched? (especially the DriveE folder makes me think you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that will be at run time (XPe) but not the one you've got on the dev.machine.

On Run-time image i've included this component. While using the application
it is giving an error

System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not registered

Certainly, the class was not registred. Check out FBALog.txt file and you should see the failed registration note there.
The reason - wrong path - see above.
 
G

Guest

My run-time is deployed on D:/( second partition) so i gave that path..

can i place that file on C:/ and give environment path..

regards,
Embedded_msit
 
K

KM

embedded_msit,

How are you sure that your XPe runtime is on D: drive? Hope you checked FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like 'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you obviously
better to use a proper environment variable like %SystemDrive%.

Please also read this to get an understanding on how XP/XPe assigns drive letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx
 
G

Guest

I m manually copying all the files to D:/ . SO i m sure about that D:/ drive.
I have not checked FBAlog.txt . I ll go thru that link .

Could u plz show me how the path should look like in this case( for the
given path).

ThanQ,
Embedded_msit

Here the prob
 
K

KM

embedded_msit,

I don't know how your final path should look like since I don't understand where and how you copy the image and the new files. (why
not through a component?)

But just guessing, it may be something like: '%SystemDrive%\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'.
(I don't know what was DriveE there in your path)
 
G

Guest

KM,
we can ignore that driveE, it is just folder.

so i can specify the path like
'%D%'\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources


Thanq
embedded_msit
 
G

Guest

We can ignore DriveE (it is a folder)

so i can specify the final path as
%d%\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources.

thanq,
Embedded_msit
 
K

KM

embedded_msit,

Please note that I used %SystemDrive% where SystemDrive is a special environment variable that will be expended to the actual system
drive letter at run time.

You can forget about all the environment variable things but just use the actual path you get at run time. In other word, boot to
the XPe find the file you are trying to register and remember its path. When you go back and boot to your development OS, you change
the path in TD to the one you noticed on XPe.

You would eliminate all this mess if you properly componentized the component.
http://msdn.microsoft.com/library/en-us/xpehelp/html/xehowhowtocomponentizeapplications.asp
 
S

Slobodan Brcin \(eMVP\)

Embedded,
I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
Unfortunately this is not true, if you have read my article (that Konstantin
gave you link on) you would know the reason why and how you can preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you have and what
partitions types are on them with their sizes.

Regards,
Slobodan
 
G

Guest

System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit
 
K

KM

embedded_msit,

We should have asked this earlier but what type is the file pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?

KM

PS. You still didn't seem to understand what and how XPe/XPe assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the hardware setup you've got.
System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit










Slobodan Brcin (eMVP) said:
Embedded,

Unfortunately this is not true, if you have read my article (that Konstantin
gave you link on) you would know the reason why and how you can preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you have and what
partitions types are on them with their sizes.

Regards,
Slobodan
 
G

Guest

Hi,

I dont know whether i m going on right path of assigning resources.I will
explain u wat i ve done.
We have an application 'pctvt' runs on .Net Framework. We created a
component for this pctvt aplication. component name - pctvt1.1. This
Component contains all relavant files and dependencies are also added. We
added this component to the target image and deployed it.
It displayed Login screen. when I clicked on submit buttton then
application gave following error..

************** Exception Text **************
System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not registered

Here I thought that 'pctvt_new_ui.pctvtUI' file should be registered by
FBA/DLL com registration.

the above file is added as a resource for the component(resources->FBA
DLL/COM registration--> in the path i ve specifed the path of
'pctvt_new_ui.pctvtUI' file).

This is the whole thing..

Regards,
Nandan.








KM said:
embedded_msit,

We should have asked this earlier but what type is the file pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?

KM

PS. You still didn't seem to understand what and how XPe/XPe assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the hardware setup you've got.
System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit










Slobodan Brcin (eMVP) said:
Embedded,

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
Unfortunately this is not true, if you have read my article (that Konstantin
gave you link on) you would know the reason why and how you can preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you have and what
partitions types are on them with their sizes.

Regards,
Slobodan

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
I have not checked FBAlog.txt . I ll go thru that link .

Could u plz show me how the path should look like in this case( for the
given path).

ThanQ,
Embedded_msit

Here the prob

:

embedded_msit,

How are you sure that your XPe runtime is on D: drive? Hope you checked
FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like
'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you obviously
better to use a proper environment variable like %SystemDrive%.

Please also read this to get an understanding on how XP/XPe assigns drive
letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx

--
Regards,
KM, BSquare Corp.


My run-time is deployed on D:/( second partition) so i gave that path..

can i place that file on C:/ and give environment path..

regards,
Embedded_msit

:

embedded_msit,

I created component for an application. I found that some files in
that need
to be registerd during FBA . I added a resource FBA COM/DLL
registration for
one file(here the file is 'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis
is the
location of file on target system(same system but on diff
partition(D:/)).

This is a wierd path. Are you sure the path is the exact same when
XPe launched? (especially the DriveE folder makes me think
you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that will be at run
time (XPe) but not the one you've got on the dev.machine.


On Run-time image i've included this component. While using the
application
it is giving an error

System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered

Certainly, the class was not registred. Check out FBALog.txt file and
you should see the failed registration note there.
The reason - wrong path - see above.
 
K

KM

embedded_msit,
I dont know whether i m going on right path of assigning resources.

Please read these links first:
http://msdn.microsoft.com/library/en-us/xpehelp/html/xehowhowtocomponentizeapplications.asp
http://msdn.microsoft.com/library/en-us/dnxpembed/html/customxpecomp.asp
We have an application 'pctvt' runs on .Net Framework. We created a
component for this pctvt aplication. component name - pctvt1.1. This
Component contains all relavant files and dependencies are also added. We
added this component to the target image and deployed it.
It displayed Login screen. when I clicked on submit buttton then
application gave following error..

************** Exception Text **************
System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not registered

Please analazy the project settings in VS that you used to build the applicaiton. There should be the whole registration procedure
mentioned (unless you do that manually on the dev machine but then you know what to do on XPe)
Here I thought that 'pctvt_new_ui.pctvtUI' file should be registered by
FBA/DLL com registration.

An interesting conclusion :) You should haven't guessed but rather read about PE/COFF file format.
Also, it would help if you know what COM objects (especially in-process objects).
You can get started here: http://www.gamedev.net/reference/articles/article1313.asp (please note a usual export functions you would
see from a COM object DLL implementation).
the above file is added as a resource for the component(resources->FBA
DLL/COM registration--> in the path i ve specifed the path of
'pctvt_new_ui.pctvtUI' file).

Unfortunately, I know nothing about your application and files that belong to the applicaiton (the files you built) so you would
need to find out all the required applicaiton components/files/registry entries/dependencies by yourself.

--
Regards,
KM, BSquare Corp.

KM said:
embedded_msit,

We should have asked this earlier but what type is the file pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?

KM

PS. You still didn't seem to understand what and how XPe/XPe assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the hardware setup you've got.
System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit










:

Embedded,

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
Unfortunately this is not true, if you have read my article (that Konstantin
gave you link on) you would know the reason why and how you can preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you have and what
partitions types are on them with their sizes.

Regards,
Slobodan

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
I have not checked FBAlog.txt . I ll go thru that link .

Could u plz show me how the path should look like in this case( for the
given path).

ThanQ,
Embedded_msit

Here the prob

:

embedded_msit,

How are you sure that your XPe runtime is on D: drive? Hope you checked
FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like
'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you obviously
better to use a proper environment variable like %SystemDrive%.

Please also read this to get an understanding on how XP/XPe assigns drive
letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx

--
Regards,
KM, BSquare Corp.


My run-time is deployed on D:/( second partition) so i gave that path..

can i place that file on C:/ and give environment path..

regards,
Embedded_msit

:

embedded_msit,

I created component for an application. I found that some files in
that need
to be registerd during FBA . I added a resource FBA COM/DLL
registration for
one file(here the file is 'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis
is the
location of file on target system(same system but on diff
partition(D:/)).

This is a wierd path. Are you sure the path is the exact same when
XPe launched? (especially the DriveE folder makes me think
you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that will be at run
time (XPe) but not the one you've got on the dev.machine.


On Run-time image i've included this component. While using the
application
it is giving an error

System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered

Certainly, the class was not registred. Check out FBALog.txt file and
you should see the failed registration note there.
The reason - wrong path - see above.
 
G

Guest

Here I am assigned a job of building an Embedded os for pctvt application.
Some other team has developed this application at CMU.
Anyways i will try by following the links provided by you.

Thanq KM ,
Embedded_msit

KM said:
embedded_msit,
I dont know whether i m going on right path of assigning resources.

Please read these links first:
http://msdn.microsoft.com/library/en-us/xpehelp/html/xehowhowtocomponentizeapplications.asp
http://msdn.microsoft.com/library/en-us/dnxpembed/html/customxpecomp.asp
We have an application 'pctvt' runs on .Net Framework. We created a
component for this pctvt aplication. component name - pctvt1.1. This
Component contains all relavant files and dependencies are also added. We
added this component to the target image and deployed it.
It displayed Login screen. when I clicked on submit buttton then
application gave following error..

************** Exception Text **************
System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not registered

Please analazy the project settings in VS that you used to build the applicaiton. There should be the whole registration procedure
mentioned (unless you do that manually on the dev machine but then you know what to do on XPe)
Here I thought that 'pctvt_new_ui.pctvtUI' file should be registered by
FBA/DLL com registration.

An interesting conclusion :) You should haven't guessed but rather read about PE/COFF file format.
Also, it would help if you know what COM objects (especially in-process objects).
You can get started here: http://www.gamedev.net/reference/articles/article1313.asp (please note a usual export functions you would
see from a COM object DLL implementation).
the above file is added as a resource for the component(resources->FBA
DLL/COM registration--> in the path i ve specifed the path of
'pctvt_new_ui.pctvtUI' file).

Unfortunately, I know nothing about your application and files that belong to the applicaiton (the files you built) so you would
need to find out all the required applicaiton components/files/registry entries/dependencies by yourself.

--
Regards,
KM, BSquare Corp.

KM said:
embedded_msit,

We should have asked this earlier but what type is the file pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?

KM

PS. You still didn't seem to understand what and how XPe/XPe assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the hardware setup you've got.

System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit










:

Embedded,

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
Unfortunately this is not true, if you have read my article (that Konstantin
gave you link on) you would know the reason why and how you can preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you have and what
partitions types are on them with their sizes.

Regards,
Slobodan

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
I have not checked FBAlog.txt . I ll go thru that link .

Could u plz show me how the path should look like in this case( for the
given path).

ThanQ,
Embedded_msit

Here the prob

:

embedded_msit,

How are you sure that your XPe runtime is on D: drive? Hope you checked
FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like
'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you obviously
better to use a proper environment variable like %SystemDrive%.

Please also read this to get an understanding on how XP/XPe assigns drive
letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx

--
Regards,
KM, BSquare Corp.


My run-time is deployed on D:/( second partition) so i gave that path..

can i place that file on C:/ and give environment path..

regards,
Embedded_msit

:

embedded_msit,

I created component for an application. I found that some files in
that need
to be registerd during FBA . I added a resource FBA COM/DLL
registration for
one file(here the file is 'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis
is the
location of file on target system(same system but on diff
partition(D:/)).

This is a wierd path. Are you sure the path is the exact same when
XPe launched? (especially the DriveE folder makes me think
you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that will be at run
time (XPe) but not the one you've got on the dev.machine.


On Run-time image i've included this component. While using the
application
it is giving an error

System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered

Certainly, the class was not registred. Check out FBALog.txt file and
you should see the failed registration note there.
The reason - wrong path - see above.
 
G

Guest

Hi,

When i tried the same(pctvt) application after installing .netFramework on
the deployed image,I didnt get any exceptions.

But when .NetFramework component was added to configuration i m getting some
unregisterd activex components exception


Regards,
Embedded_msit

embedded_msit said:
Here I am assigned a job of building an Embedded os for pctvt application.
Some other team has developed this application at CMU.
Anyways i will try by following the links provided by you.

Thanq KM ,
Embedded_msit

KM said:
embedded_msit,
I dont know whether i m going on right path of assigning resources.

Please read these links first:
http://msdn.microsoft.com/library/en-us/xpehelp/html/xehowhowtocomponentizeapplications.asp
http://msdn.microsoft.com/library/en-us/dnxpembed/html/customxpecomp.asp
We have an application 'pctvt' runs on .Net Framework. We created a
component for this pctvt aplication. component name - pctvt1.1. This
Component contains all relavant files and dependencies are also added. We
added this component to the target image and deployed it.
It displayed Login screen. when I clicked on submit buttton then
application gave following error..

************** Exception Text **************
System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not registered

Please analazy the project settings in VS that you used to build the applicaiton. There should be the whole registration procedure
mentioned (unless you do that manually on the dev machine but then you know what to do on XPe)
Here I thought that 'pctvt_new_ui.pctvtUI' file should be registered by
FBA/DLL com registration.

An interesting conclusion :) You should haven't guessed but rather read about PE/COFF file format.
Also, it would help if you know what COM objects (especially in-process objects).
You can get started here: http://www.gamedev.net/reference/articles/article1313.asp (please note a usual export functions you would
see from a COM object DLL implementation).
the above file is added as a resource for the component(resources->FBA
DLL/COM registration--> in the path i ve specifed the path of
'pctvt_new_ui.pctvtUI' file).

Unfortunately, I know nothing about your application and files that belong to the applicaiton (the files you built) so you would
need to find out all the required applicaiton components/files/registry entries/dependencies by yourself.

--
Regards,
KM, BSquare Corp.

:

embedded_msit,

We should have asked this earlier but what type is the file pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?

KM

PS. You still didn't seem to understand what and how XPe/XPe assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the hardware setup you've got.

System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit










:

Embedded,

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
Unfortunately this is not true, if you have read my article (that Konstantin
gave you link on) you would know the reason why and how you can preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you have and what
partitions types are on them with their sizes.

Regards,
Slobodan

I m manually copying all the files to D:/ . SO i m sure about that D:/
drive.
I have not checked FBAlog.txt . I ll go thru that link .

Could u plz show me how the path should look like in this case( for the
given path).

ThanQ,
Embedded_msit

Here the prob

:

embedded_msit,

How are you sure that your XPe runtime is on D: drive? Hope you checked
FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like
'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you obviously
better to use a proper environment variable like %SystemDrive%.

Please also read this to get an understanding on how XP/XPe assigns drive
letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx

--
Regards,
KM, BSquare Corp.


My run-time is deployed on D:/( second partition) so i gave that path..

can i place that file on C:/ and give environment path..

regards,
Embedded_msit

:

embedded_msit,

I created component for an application. I found that some files in
that need
to be registerd during FBA . I added a resource FBA COM/DLL
registration for
one file(here the file is 'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis
is the
location of file on target system(same system but on diff
partition(D:/)).

This is a wierd path. Are you sure the path is the exact same when
XPe launched? (especially the DriveE folder makes me think
you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that will be at run
time (XPe) but not the one you've got on the dev.machine.


On Run-time image i've included this component. While using the
application
it is giving an error

System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered

Certainly, the class was not registred. Check out FBALog.txt file and
you should see the failed registration note there.
The reason - wrong path - see above.
 
S

Slobodan Brcin \(eMVP\)

Hi,

If you are on SP2 then send feedback to MS:
http://msdn.microsoft.com/embedded/community/community/feedback/feedxp/default.aspx

Regards,
Slobodan


embedded_msit said:
Hi,

When i tried the same(pctvt) application after installing .netFramework
on
the deployed image,I didnt get any exceptions.

But when .NetFramework component was added to configuration i m getting
some
unregisterd activex components exception


Regards,
Embedded_msit

embedded_msit said:
Here I am assigned a job of building an Embedded os for pctvt
application.
Some other team has developed this application at CMU.
Anyways i will try by following the links provided by you.

Thanq KM ,
Embedded_msit

KM said:
embedded_msit,

I dont know whether i m going on right path of assigning resources.

Please read these links first:
http://msdn.microsoft.com/library/en-us/xpehelp/html/xehowhowtocomponentizeapplications.asp
http://msdn.microsoft.com/library/en-us/dnxpembed/html/customxpecomp.asp

We have an application 'pctvt' runs on .Net Framework. We created
a
component for this pctvt aplication. component name - pctvt1.1. This
Component contains all relavant files and dependencies are also
added. We
added this component to the target image and deployed it.
It displayed Login screen. when I clicked on submit buttton then
application gave following error..

************** Exception Text **************
System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered

Please analazy the project settings in VS that you used to build the
applicaiton. There should be the whole registration procedure
mentioned (unless you do that manually on the dev machine but then you
know what to do on XPe)

Here I thought that 'pctvt_new_ui.pctvtUI' file should be
registered by
FBA/DLL com registration.

An interesting conclusion :) You should haven't guessed but rather
read about PE/COFF file format.
Also, it would help if you know what COM objects (especially in-process
objects).
You can get started here:
http://www.gamedev.net/reference/articles/article1313.asp (please note
a usual export functions you would
see from a COM object DLL implementation).

the above file is added as a resource for the
component(resources->FBA
DLL/COM registration--> in the path i ve specifed the path of
'pctvt_new_ui.pctvtUI' file).

Unfortunately, I know nothing about your application and files that
belong to the applicaiton (the files you built) so you would
need to find out all the required applicaiton components/files/registry
entries/dependencies by yourself.

--
Regards,
KM, BSquare Corp.


:

embedded_msit,

We should have asked this earlier but what type is the file
pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?

KM

PS. You still didn't seem to understand what and how XPe/XPe
assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the
hardware setup you've got.

System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/

No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS

I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'


IN fBA log.txt errors are :

[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)


Regards,
Emedded_msit










:

Embedded,

I m manually copying all the files to D:/ . SO i m sure about
that D:/
drive.
Unfortunately this is not true, if you have read my article
(that Konstantin
gave you link on) you would know the reason why and how you can
preassign
volume letters from TD.

Please give us fba.log or tell us about how many HDD's do you
have and what
partitions types are on them with their sizes.

Regards,
Slobodan

in message
I m manually copying all the files to D:/ . SO i m sure about
that D:/
drive.
I have not checked FBAlog.txt . I ll go thru that link .

Could u plz show me how the path should look like in this
case( for the
given path).

ThanQ,
Embedded_msit

Here the prob

:

embedded_msit,

How are you sure that your XPe runtime is on D: drive? Hope
you checked
FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like
'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you
obviously
better to use a proper environment variable like
%SystemDrive%.

Please also read this to get an understanding on how XP/XPe
assigns drive
letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx

--
Regards,
KM, BSquare Corp.


My run-time is deployed on D:/( second partition) so i gave
that path..

can i place that file on C:/ and give environment path..

regards,
Embedded_msit

:

embedded_msit,

I created component for an application. I found that
some files in
that need
to be registerd during FBA . I added a resource FBA
COM/DLL
registration for
one file(here the file is
'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis
is the
location of file on target system(same system but on
diff
partition(D:/)).

This is a wierd path. Are you sure the path is the exact
same when
XPe launched? (especially the DriveE folder makes me
think
you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that
will be at run
time (XPe) but not the one you've got on the dev.machine.


On Run-time image i've included this component. While
using the
application
it is giving an error

System.TypeInitializationException: The type
initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException
(0x80040154): Class not
registered

Certainly, the class was not registred. Check out
FBALog.txt file and
you should see the failed registration note there.
The reason - wrong path - see above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top