473,503 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET migration

I have the C++ exe created with Microsoft Visual Studio 6.0. Now have
ported the code to Microsoft Visual Studio 7.0. to compile with /clr
extension ON; as the exe uses some managed code components.

The project compiles fine in both Debug and Release version. It also
runs perfectly in both versions if I run the exe directly from windows
explorer.

But when I try to run the Release version from the IDE, it gives me
the following error message:
An unhandled exception of type 'System.Security.Policy.PolicyException' occurred in Unknown Module.
Additional information: Unverifiable assembly
's:\AppSrc\Fe\ToolsSimulator\Release\ToolsSimulato r.exe' failed policy
check
If I try to run the Debug version through the IDE the app crashes at: GetClientRect(rect) at void CRichEditView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags).

Any suggestion will be very helpful.

Thanks,
~Saurabh
Nov 16 '05 #1
2 2158
I am guessing s: is a network share. If so, the default security policy
doesn't allow running non verifiable code from the "Intranet" zone which is
where file shares are in. You will need to specifically allow permissions to
the assembly name, share, the entire intranet zone, a strong name key or an
authenticode certificate.

You will need to debug the crash. The specific line you posted doesn't ring
any immediate bells.

Ronald Laeremans
Visual C++ team

"High and dRy" <sa********@yahoo.com> wrote in message
news:49**************************@posting.google.c om...
I have the C++ exe created with Microsoft Visual Studio 6.0. Now have
ported the code to Microsoft Visual Studio 7.0. to compile with /clr
extension ON; as the exe uses some managed code components.

The project compiles fine in both Debug and Release version. It also
runs perfectly in both versions if I run the exe directly from windows
explorer.

But when I try to run the Release version from the IDE, it gives me
the following error message:
An unhandled exception of type 'System.Security.Policy.PolicyException' occurred in Unknown Module.
Additional information: Unverifiable assembly
's:\AppSrc\Fe\ToolsSimulator\Release\ToolsSimulato r.exe' failed policy
check
If I try to run the Debug version through the IDE the app crashes at:
GetClientRect(rect) at void CRichEditView::OnKeyDown(UINT nChar, UINT

nRepCnt, UINT nFlags).

Any suggestion will be very helpful.

Thanks,
~Saurabh

Nov 16 '05 #2
Thanks Ronald. That was a good guess !

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message news:<OV**************@tk2msftngp13.phx.gbl>...
I am guessing s: is a network share. If so, the default security policy
doesn't allow running non verifiable code from the "Intranet" zone which is
where file shares are in. You will need to specifically allow permissions to
the assembly name, share, the entire intranet zone, a strong name key or an
authenticode certificate.

You will need to debug the crash. The specific line you posted doesn't ring
any immediate bells.

Ronald Laeremans
Visual C++ team

"High and dRy" <sa********@yahoo.com> wrote in message
news:49**************************@posting.google.c om...
I have the C++ exe created with Microsoft Visual Studio 6.0. Now have
ported the code to Microsoft Visual Studio 7.0. to compile with /clr
extension ON; as the exe uses some managed code components.

The project compiles fine in both Debug and Release version. It also
runs perfectly in both versions if I run the exe directly from windows
explorer.

But when I try to run the Release version from the IDE, it gives me
the following error message:
An unhandled exception of type

'System.Security.Policy.PolicyException' occurred in Unknown Module.
Additional information: Unverifiable assembly
's:\AppSrc\Fe\ToolsSimulator\Release\ToolsSimulato r.exe' failed policy
check
If I try to run the Debug version through the IDE the app crashes at:
GetClientRect(rect) at void CRichEditView::OnKeyDown(UINT nChar, UINT

nRepCnt, UINT nFlags).


Any suggestion will be very helpful.

Thanks,
~Saurabh

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2110
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
4
19966
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
11
9452
by: Jep | last post by:
Any help or advice appreciated. We have just installed and configured a new DB2 v.8.1 with latest FixPack. Just a few days later it dies and now we have a DB that is totally unusable. - - - -...
4
3959
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
1
2045
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
1
2650
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
1
3841
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
60
4867
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
9
4183
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2...
3
4613
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
7203
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
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7281
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
7334
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
7462
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...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.