why exe file doesn't run from outside of IDE?

S

snow

Hello,

I have a VB.Net program which is developed in VS 2005 on VISTA. when I
add the reference of OWC10 and drag a spreadsheet and chart control in
the form, it runs in the IDE, but if run exe file outside IDE, it
failed and got error message: "An error occurred creating the form.See
Exception.InnerException for details. The error is: Attempted to read
or write protected memory. This is often an indication that other
memory is corrupt."

have some poeple got this experience?

Thanks for any suggestions!
 
S

snow

Hello,

I have a VB.Net program which is developed in VS 2005 on VISTA. when I
add the reference of OWC10 and drag a spreadsheet and chart control in
the form, it runs in the IDE, but if run exe file outside IDE, it
failed and got error message: "An error occurred creating the form.See
Exception.InnerException for details. The error is: Attempted to read
or write protected memory. This is often an indication that other
memory is corrupt."

have some poeple got this experience?

Thanks for any suggestions!


Also, If OWC doesn't work for VS 2005 on VISTA, If there some similar
controls can do spreadsheet and radar chart ?

Thanks!
 
O

Ollis

snow said:
Also, If OWC doesn't work for VS 2005 on VISTA, If there some similar
controls can do spreadsheet and radar chart ?

Well, it seems that you're running VS 2005 IDE using Run As Administrator if
you have UAC enabled on Vista, when you started VS 2005. The program's
privilidges are escalted, and it has the privileges to execute within the VS
2005 IDE with the proper permissions.

On the same token it seems, when execuiting the program outside of the VS
2005 IDE, it doean't have the privlidges required to execute, becuase Vista
doesn't know to escalte the program's privileges.

You can look-up how to incorprate the Vista UAC manifest in the program to
give the program the proper privileges it needs to execute, use Google and
look up how to use the Vista UAC manifest with the program.
 
S

snow

Well, it seems that you're running VS 2005 IDE using Run As Administratorif
you have UAC enabled on Vista, when you started VS 2005. The program's
privilidges are escalted, and it has the privileges to execute within theVS
2005 IDE with the proper permissions.

On the same token it seems, when execuiting the program outside of the VS
2005 IDE, it doean't have the privlidges required to execute, becuase Vista
doesn't know to escalte the program's privileges.

You can look-up how to incorprate the Vista UAC manifest in the program to
give the program the proper privileges it needs to execute, use Google and
look up how to use the Vista UAC manifest with the program.- Hide quoted text -

- Show quoted text -

Thank you for the repsonse!

I turn off UAC from control panel and restart the computer, it is
doing the same thing. My program used to work. Recently I installed MS
office 2007, I just figured out MS office 2007 discontinue to use Web
Component, so I uninstall MS office 2007, but it is still not working.

Anybody knows how to fix that?

Thanks for the help!!!
 

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