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

VC++ Release problem

friendjin
I got a problem about Release. I really appericiate if anyone could give me a help.

The problem is when I ran it in another computer. an exception will be displayed "application has generated an exception that could not be handled". Do you know what caused this.

Another strange thing is when I paste it to another PC, then I run it, it worked. But when I share it from the network, it did not work..

any ideas.

Thanks
Feb 20 '07 #1
11 3442
sicarie
4,677 Expert Mod 4TB
I got a problem about Release. I really appericiate if anyone could give me a help.

The problem is when I ran it in another computer. an exception will be displayed "application has generated an exception that could not be handled". Do you know what caused this.

Another strange thing is when I paste it to another PC, then I run it, it worked. But when I share it from the network, it did not work..

any ideas.

Thanks
Check file and resource names - my guess is you've coded something for the local machine and not used a network or absolute pathname.

You are compiling and distributing the executable, correct? Or are you compiling per machine?
Feb 20 '07 #2
Check file and resource names - my guess is you've coded something for the local machine and not used a network or absolute pathname.

You are compiling and distributing the executable, correct? Or are you compiling per machine?
Hi sicarie ;
Thanks for help.
I copied the whole release file to the network(P: ), once I ran the progrmming on my computer,sorry. I ran it from P:, the following exception came up.
"An exception ' System.Security. Policy.PolicyException' has occurred in SolarPanelTest(my little programme's name)
And, there were followinng three Possible debuggers letting me choose:
"GSM-Microsoft VC++[design0]- Form.h:Visual Studio.NET 2003
New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio.NET 2003"
Then, asked me to select one of the debugger.
I am sure it is not the first one, as it is another programing called GSM. But whatever I selected the second or the third, it did not work.
when I chose the second, the following error occured:
Unverifiable assembly"P:\...\SolarCharger\SolarPanelTest.exe"fa iled policy check
when I chose the third, a new windows came out, and let me choose the progrma types that I want to debug(CLR, Native, Script) default is the first two.
but when I click ok, the same error with the first one occured.

additionally, When I copy to other machines, I do not need to compilling again.
I ran directly.
Feb 21 '07 #3
sicarie
4,677 Expert Mod 4TB
Hi sicarie ;
Thanks for help.
I copied the whole release file to the network(P: ), once I ran the progrmming on my computer,sorry. I ran it from P:, the following exception came up.
"An exception ' System.Security. Policy.PolicyException' has occurred in SolarPanelTest(my little programme's name)
And, there were followinng three Possible debuggers letting me choose:
"GSM-Microsoft VC++[design0]- Form.h:Visual Studio.NET 2003
New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio.NET 2003"
Then, asked me to select one of the debugger.
I am sure it is not the first one, as it is another programing called GSM. But whatever I selected the second or the third, it did not work.
when I chose the second, the following error occured:
Unverifiable assembly"P:\...\SolarCharger\SolarPanelTest.exe"fa iled policy check
when I chose the third, a new windows came out, and let me choose the progrma types that I want to debug(CLR, Native, Script) default is the first two.
but when I click ok, the same error with the first one occured.

additionally, When I copy to other machines, I do not need to compilling again.
I ran directly.
Does that user have access to everything it needs - is it a user permitted to run that program, or access whatever it needs to access, on the local machines?
Feb 21 '07 #4
Does that user have access to everything it needs - is it a user permitted to run that program, or access whatever it needs to access, on the local machines?
Sorry, I actually have no idea how I could check those things,only thing I have done is I changed all securities stuff to allow for every user in SolarCharger file property.
I have no idea what else I have to change.
Feb 21 '07 #5
sicarie
4,677 Expert Mod 4TB
Sorry, I actually have no idea how I could check those things,only thing I have done is I changed all securities stuff to allow for every user in SolarCharger file property.
I have no idea what else I have to change.
Well, now that I look at it, that may have been one of those questions I should have stuck with not asking...

Does the program access a file or anything on the local machine, or is everything it needs in a repository on the P drive?
Feb 21 '07 #6
Well, now that I look at it, that may have been one of those questions I should have stuck with not asking...

Does the program access a file or anything on the local machine, or is everything it needs in a repository on the P drive?
My programming actually has to access some text and exe file which all locate on P path.
by the way, my programming have to connect a DAQ, I do not know whether you are familiar with it. anyway, to talk to the DAQ, the UL has to be used which the lib file is cbw.h. I have copied this file to the released file.
Feb 22 '07 #7
sicarie
4,677 Expert Mod 4TB
My programming actually has to access some text and exe file which all locate on P path.
by the way, my programming have to connect a DAQ, I do not know whether you are familiar with it. anyway, to talk to the DAQ, the UL has to be used which the lib file is cbw.h. I have copied this file to the released file.
I'm not familiar with DAQ (I don't think). What is it?
Feb 22 '07 #8
I'm not familiar with DAQ (I don't think). What is it?
which is electronic device.
Feb 22 '07 #9
rajgkk
3
Are you a using Login as a local administrator having enough privileges to run the .exe and do you have all dependent files in the new machine?
Feb 22 '07 #10
Are you a using Login as a local administrator having enough privileges to run the .exe and do you have all dependent files in the new machine?
I have to run it on the whole network, all PCs in the company. So I have to copy all files into the net Path, P, for this reason, I could not to copy all releated files to every machine.
The problem is I copied whole file to another machine, it worked.But when I copy it to the net Path, it did not,So I thought the problem should be come from the network security part, but I am not quite familiar with it. if you could give some idea to check all sercurity things, that would be great.As you mentioned about privileges.
I am not sure what the local admin is, but I do have to log in to access to the PC, and Admin can abselutely log in to every machine. Is that what you asked.


thanks
Feb 22 '07 #11
sicarie
4,677 Expert Mod 4TB
I have to run it on the whole network, all PCs in the company. So I have to copy all files into the net Path, P, for this reason, I could not to copy all releated files to every machine.
The problem is I copied whole file to another machine, it worked.But when I copy it to the net Path, it did not,So I thought the problem should be come from the network security part, but I am not quite familiar with it. if you could give some idea to check all sercurity things, that would be great.As you mentioned about privileges.
I am not sure what the local admin is, but I do have to log in to access to the PC, and Admin can abselutely log in to every machine. Is that what you asked.


thanks
For sanity's sake, I would recommend running this program as the same user (NOT admin) on every machine (hopefully this is on a domain and only involves one user going into AD instead of one user going on to every computer....), and then making sure that user has security priviledges (whatever you need - read, read/write, execute, etc...) to the folders on the drives that the program accesses.

It's best (and by best I mean most secure) to start out with as few privledges as possible, and then gradually add more (though you might want to start by allowing all - seeing if it works, and then if it does, denying all and granding individual and limited priveledges from there).

Your local sysadmin/network person should be able to help you with this.
Feb 22 '07 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Venky | last post by:
We have a strange error here. We have an application that is built in VC++ 6.0 and uses a C library built using the same. Now, we have migrated to .Net and have used the same source code to be...
17
by: PDQBach | last post by:
Hello, im a visual c++ und borland c++builder newbie. i have witten a simple mandelbrot algorithm and compiled it with both vc++ (mfc) and cbuilder (vcl) (same code besides the drawing part)....
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
1
by: Robert Ludewig | last post by:
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 (MFC6.0) into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked...
4
by: jimmy_sayavong | last post by:
I created a simple MFC program using VC++ 6. It generates EXE file and runs fine on one of my computer which has the C++ compiler installed. But when I copy the EXE program to the other...
4
by: nmrcarl | last post by:
I'm trying to upgrade a large project from VS 6.0 to VS 2005. After fixing a lot of things that changed (mostly sloppy coding in the original project that VS2005 didn't allow), I got the release...
2
by: Newsgroups | last post by:
Hi, I found some code from codeproject site using WMI in VC++. I have created a method having the following code in it. It works fine when I am running into "Admin" accound in Windows XP Pro...
1
by: Peter Oliphant | last post by:
I have written a program using VC++ 2008 Express (Beta 2). It uses System::Speech for speech recognition. My program works fine in VS GUI, both Debug and Release. It also works fine in Debug...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.