473,324 Members | 2,268 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,324 software developers and data experts.

.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 2153
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
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.