473,473 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Upgrading Windows Application to VS2008

I have a Windows application that was developed in VB in VS2003. It
accesses data from a SQL Server 2000 database.

I have recently upgraded it to VS2008. It runs perfectly on my pc, but it
will not run on the users pcs, though the old version does.

The error is: System.Security.SecurityException-Request for the permission
of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version
2.0.0.0. Unable to connect to the database.

Any ideas what the problem is and how I can solve it?

Thanks,
Helen
Oct 13 '08 #1
3 1587
On Oct 13, 10:55*am, Helen Trim <HelenT...@discussions.microsoft.com>
wrote:
I have a Windows application that was developed in VB in VS2003. * It
accesses data from a SQL Server 2000 database.

I have recently upgraded it to VS2008. *It runs perfectly on my pc, butit
will not run on the users pcs, though the old version does.

The error is: System.Security.SecurityException-Request for the permission
of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version
2.0.0.0. *Unable to connect to the database.

Any ideas what the problem is and how I can solve it?

Thanks,
Helen
Did you modify the code access privileges for the .NET 1.1
application? If you you will (most likely) need to set up the same
for .NET 2.0. Also, if you have the application deployed on a network
drive, having the users download and install .NET 3.5 SP1 should fix
the problem. Code Access Security was changed in the service pack to
remove the need to modify the configuration files for allowing apps to
run off a local network.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Oct 13 '08 #2
Hello Seth

Thanks. I downloaded the service pack and it worked. Hooray!

Cheers
Helen

"rowe_newsgroups" wrote:
On Oct 13, 10:55 am, Helen Trim <HelenT...@discussions.microsoft.com>
wrote:
I have a Windows application that was developed in VB in VS2003. It
accesses data from a SQL Server 2000 database.

I have recently upgraded it to VS2008. It runs perfectly on my pc, but it
will not run on the users pcs, though the old version does.

The error is: System.Security.SecurityException-Request for the permission
of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version
2.0.0.0. Unable to connect to the database.

Any ideas what the problem is and how I can solve it?

Thanks,
Helen

Did you modify the code access privileges for the .NET 1.1
application? If you you will (most likely) need to set up the same
for .NET 2.0. Also, if you have the application deployed on a network
drive, having the users download and install .NET 3.5 SP1 should fix
the problem. Code Access Security was changed in the service pack to
remove the need to modify the configuration files for allowing apps to
run off a local network.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Oct 14 '08 #3
On Oct 14, 10:39*am, Helen Trim <HelenT...@discussions.microsoft.com>
wrote:
Hello Seth

Thanks. *I downloaded the service pack and it worked. *Hooray!

Cheers
Helen

"rowe_newsgroups" wrote:
On Oct 13, 10:55 am, Helen Trim <HelenT...@discussions.microsoft.com>
wrote:
I have a Windows application that was developed in VB in VS2003. * It
accesses data from a SQL Server 2000 database.
I have recently upgraded it to VS2008. *It runs perfectly on my pc,but it
will not run on the users pcs, though the old version does.
The error is: System.Security.SecurityException-Request for the permission
of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version
2.0.0.0. *Unable to connect to the database.
Any ideas what the problem is and how I can solve it?
Thanks,
Helen
Did you modify the code access privileges for the .NET 1.1
application? If you you will (most likely) need to set up the same
for .NET 2.0. Also, if you have the application deployed on a network
drive, having the users download and install .NET 3.5 SP1 should fix
the problem. Code Access Security was changed in the service pack to
remove the need to modify the configuration files for allowing apps to
run off a local network.
Thanks,
Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Glad it worked - having the users download the service pack is much
easier than trying to push out the msi that change the security
settings.

At some point the service pack will become available through Window's
Update, which will make our lives even easier.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Oct 14 '08 #4

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

Similar topics

5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
8
by: lacanela | last post by:
Please bear with this old dino here, who never upgraded to vs2005, the reason being that I am soooooo comfortable working with that rock- solid vs2003 and my development time so far has mainly been...
5
by: Just D | last post by:
Is there any way to get .NET 3.5 in the drop-down list in the Windows XP IIS Virtual Directory Settings? I'm seeng only 1.1 and 2.0 and that's it. VS2008 is able to use the built-in IIS, but I...
6
by: John | last post by:
Hi If I have a choice of WPF or Windows Form versions of a control which one should I purchase? Thanks Regards
3
by: Andy B | last post by:
Is there anything special you have to do to upgrade or transfer a vs2005 solution to a vs2008 solution? Or do you just open it in vs2008 and follow some directions?
1
by: jersey | last post by:
I have VS2005 Professional. I am unable to install it on my new Vista 64- bit computer. The only reason I wanted to install it was to be able to purchase and install VS2008 Upgrade version. If I...
0
by: ker_01 | last post by:
I've looked online (including windows marketplace) but all the VS2008.pro packages appear to be standalone, or upgrade packages for 2005 (or earlier) VS.pro installations. I have VS2008.standard...
1
by: BillE | last post by:
<extreme frustration> I have googled and read about this, but can't seem to get a grip on it. Apparently I am being coerced into digitally signing applications. Is this true? What if I don't...
1
by: BobLewiston | last post by:
I tried to compile a Windows Forms Application in Visual C# 2008 Express with this source code from the CSharpSchool tutorial at Programmer's Heaven:using System; using System.Windows.Forms; using...
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
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
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
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.