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

How are we supposed to remote debug our mixed application?

We have a mixed application that includes managed and unmanaged code. Until
recently we've been able to remote debug by disabling the security policy to
get the MFC managed dlls to load properly over the network. However, we are
now using classes in the system.data.dll assembly which according to
connect.microsoft.com is not allowed to run with the security policy
disabled. Here is the quote from them:

In the 2.0 version of .NET, you can no longer turn off CAS policy checking
on assemblies with code that can't be verified. This includes
System.Data.dll. Please note that the performance gain in turning off policy
checking is much smaller in 2.0 than in 1.1, so if you are using caspol to
increase compiler performance, that should no longer be needed.

Our only option is to now copy the mfc debug dlls manually or create a
script to install them and disregard the non-redistributable licence. Please
help us overcome this issue.

Brandon
Oct 29 '07 #1
4 1521

"BWB" <BW*@discussions.microsoft.comwrote in message
news:E9**********************************@microsof t.com...
We have a mixed application that includes managed and unmanaged code.
Until
recently we've been able to remote debug by disabling the security policy
to
get the MFC managed dlls to load properly over the network. However, we
are
now using classes in the system.data.dll assembly which according to
connect.microsoft.com is not allowed to run with the security policy
disabled. Here is the quote from them:

In the 2.0 version of .NET, you can no longer turn off CAS policy checking
on assemblies with code that can't be verified. This includes
System.Data.dll. Please note that the performance gain in turning off
policy
checking is much smaller in 2.0 than in 1.1, so if you are using caspol to
increase compiler performance, that should no longer be needed.

Our only option is to now copy the mfc debug dlls manually or create a
script to install them and disregard the non-redistributable licence.
Please
help us overcome this issue.
IANAL, but I think the license doesn't present a problem.

You cannot redistribute the debug dlls, but Visual Studio (and therefore the
debug MFC dlls) are licensed per-developer, not per-machine. So you can
install Visual Studio or any portion thereof on multiple machines, as long
as they are only used by developers who already have a license.
>
Brandon

Oct 29 '07 #2
That's fine for our lab environment but what if we want to remote debug a
problem on a field machine.

We develop an embedded application that runs on dedicated hardware. Our
users are all internal but it would be very painful to be forced to insall
Visual Studio on over 120 target systems just so we can debug a failure.

"Ben Voigt [C++ MVP]" wrote:
>
"BWB" <BW*@discussions.microsoft.comwrote in message
news:E9**********************************@microsof t.com...
We have a mixed application that includes managed and unmanaged code.
Until
recently we've been able to remote debug by disabling the security policy
to
get the MFC managed dlls to load properly over the network. However, we
are
now using classes in the system.data.dll assembly which according to
connect.microsoft.com is not allowed to run with the security policy
disabled. Here is the quote from them:

In the 2.0 version of .NET, you can no longer turn off CAS policy checking
on assemblies with code that can't be verified. This includes
System.Data.dll. Please note that the performance gain in turning off
policy
checking is much smaller in 2.0 than in 1.1, so if you are using caspol to
increase compiler performance, that should no longer be needed.

Our only option is to now copy the mfc debug dlls manually or create a
script to install them and disregard the non-redistributable licence.
Please
help us overcome this issue.

IANAL, but I think the license doesn't present a problem.

You cannot redistribute the debug dlls, but Visual Studio (and therefore the
debug MFC dlls) are licensed per-developer, not per-machine. So you can
install Visual Studio or any portion thereof on multiple machines, as long
as they are only used by developers who already have a license.

Brandon


Oct 29 '07 #3

"BWB" <BW*@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
That's fine for our lab environment but what if we want to remote debug a
problem on a field machine.

We develop an embedded application that runs on dedicated hardware. Our
users are all internal but it would be very painful to be forced to insall
Visual Studio on over 120 target systems just so we can debug a failure.
If you have a license for Visual Studio, I don't see why you can't install
just the pieces you need, in this case the DLLs.

You can also debug without the MFC debug DLLs. There are three independent
settings:

MFC DLLs are debug or release
compiler optimizations are off or on
debug symbols are generated or not

The default project settings use all the first alternatives for Debug and
all the second alternatives for Release, but for example generating debug
symbols for an optimized build using the release MFC DLLs is very possible.

>
"Ben Voigt [C++ MVP]" wrote:
>>
"BWB" <BW*@discussions.microsoft.comwrote in message
news:E9**********************************@microso ft.com...
We have a mixed application that includes managed and unmanaged code.
Until
recently we've been able to remote debug by disabling the security
policy
to
get the MFC managed dlls to load properly over the network. However,
we
are
now using classes in the system.data.dll assembly which according to
connect.microsoft.com is not allowed to run with the security policy
disabled. Here is the quote from them:

In the 2.0 version of .NET, you can no longer turn off CAS policy
checking
on assemblies with code that can't be verified. This includes
System.Data.dll. Please note that the performance gain in turning off
policy
checking is much smaller in 2.0 than in 1.1, so if you are using caspol
to
increase compiler performance, that should no longer be needed.

Our only option is to now copy the mfc debug dlls manually or create a
script to install them and disregard the non-redistributable licence.
Please
help us overcome this issue.

IANAL, but I think the license doesn't present a problem.

You cannot redistribute the debug dlls, but Visual Studio (and therefore
the
debug MFC dlls) are licensed per-developer, not per-machine. So you can
install Visual Studio or any portion thereof on multiple machines, as
long
as they are only used by developers who already have a license.
>
Brandon



Oct 29 '07 #4
Ben,

Thanks for your response. I guess we could just install the dlls on the
target machines. Do you have any tips on how to install them into the SxS
folder? Can they just be copied there? Do they need a special manifest?

Brandon

"Ben Voigt [C++ MVP]" wrote:
>
"BWB" <BW*@discussions.microsoft.comwrote in message
news:9B**********************************@microsof t.com...
That's fine for our lab environment but what if we want to remote debug a
problem on a field machine.

We develop an embedded application that runs on dedicated hardware. Our
users are all internal but it would be very painful to be forced to insall
Visual Studio on over 120 target systems just so we can debug a failure.

If you have a license for Visual Studio, I don't see why you can't install
just the pieces you need, in this case the DLLs.

You can also debug without the MFC debug DLLs. There are three independent
settings:

MFC DLLs are debug or release
compiler optimizations are off or on
debug symbols are generated or not

The default project settings use all the first alternatives for Debug and
all the second alternatives for Release, but for example generating debug
symbols for an optimized build using the release MFC DLLs is very possible.


"Ben Voigt [C++ MVP]" wrote:
>
"BWB" <BW*@discussions.microsoft.comwrote in message
news:E9**********************************@microsof t.com...
We have a mixed application that includes managed and unmanaged code.
Until
recently we've been able to remote debug by disabling the security
policy
to
get the MFC managed dlls to load properly over the network. However,
we
are
now using classes in the system.data.dll assembly which according to
connect.microsoft.com is not allowed to run with the security policy
disabled. Here is the quote from them:

In the 2.0 version of .NET, you can no longer turn off CAS policy
checking
on assemblies with code that can't be verified. This includes
System.Data.dll. Please note that the performance gain in turning off
policy
checking is much smaller in 2.0 than in 1.1, so if you are using caspol
to
increase compiler performance, that should no longer be needed.

Our only option is to now copy the mfc debug dlls manually or create a
script to install them and disregard the non-redistributable licence.
Please
help us overcome this issue.

IANAL, but I think the license doesn't present a problem.

You cannot redistribute the debug dlls, but Visual Studio (and therefore
the
debug MFC dlls) are licensed per-developer, not per-machine. So you can
install Visual Studio or any portion thereof on multiple machines, as
long
as they are only used by developers who already have a license.


Brandon


Oct 29 '07 #5

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

Similar topics

3
by: Steve Wark | last post by:
I have a Windows 2003 Web server on which I was debugging remotely with no problems. I then moved this server to a different domain and now remote debugging will not work, the error is; ...
1
by: eholz1 | last post by:
Hello MSDN Group, I am trying to do remote debugging with an ASP.NET application. It flat will not let me debug, I always get "unable to start debugging on remote server, access denied". I have...
1
by: shekhartgs | last post by:
Please tell me how to debug an ASP.NET web application residing on a remote server? Can you pls tell me point by point as I am a new bie to a lil extent. Also please alert me where errors...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
1
by: Ken Allen | last post by:
I have encountered a problem with remote debugging under VS 2005 and ..Net 2.0 -- it seems that the framework installation does not include the "Microsoft .Net Framework 2.0 Configuration" tool! ...
7
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I'm new to working with mixed assemblies. All of my previous experience has been with VC++/MFC in native, unmanaged applications. When I create a mixed assembly in which one or more of the files...
3
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.