i have a simple (1 form) Winforms VB.net 2003 app and am migrating it to
vb2005
testing both on the same box...
if i run the 2003 version it works correctly, but the 2005 version fails
when attempting to connect to a SQL Server database.
looking at the connection object after the attempt i have an exception
object in the WorkstationID:-
"Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
in the 2003 version i have a valid workstation id
the code to this point is identical
StackTrace " at System.Security.CodeAccessSecurityEngine.Check(Obj ect
demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Environment.get_MachineName()
at System.Data.SqlClient.SqlConnection.get_Workstatio nId()"
any ideas?
*guy* 2 1546
hmmmmm
copied all the code into another solution - no changes, new one works, old
still does not!
grrrrrrrrrr
"guy" wrote: i have a simple (1 form) Winforms VB.net 2003 app and am migrating it to vb2005
testing both on the same box...
if i run the 2003 version it works correctly, but the 2005 version fails when attempting to connect to a SQL Server database. looking at the connection object after the attempt i have an exception object in the WorkstationID:-
"Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
in the 2003 version i have a valid workstation id
the code to this point is identical
StackTrace " at System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Environment.get_MachineName() at System.Data.SqlClient.SqlConnection.get_Workstatio nId()"
any ideas?
*guy*
not strictly true, the converted app was still in cb2003 format ie one file
for the form, whereas the the one that works has a vb2005 styel partial class
setup, can not see wy it should make a difference but?
"guy" wrote: hmmmmm copied all the code into another solution - no changes, new one works, old still does not!
grrrrrrrrrr
"guy" wrote:
i have a simple (1 form) Winforms VB.net 2003 app and am migrating it to vb2005
testing both on the same box...
if i run the 2003 version it works correctly, but the 2005 version fails when attempting to connect to a SQL Server database. looking at the connection object after the attempt i have an exception object in the WorkstationID:-
"Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
in the 2003 version i have a valid workstation id
the code to this point is identical
StackTrace " at System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Environment.get_MachineName() at System.Data.SqlClient.SqlConnection.get_Workstatio nId()"
any ideas?
*guy* This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Joe |
last post by:
Please repost answer message did not make it last time
Hello,
Joe here, wanted to get the 411 on this article. I posted
in the FrontPage forum but there is never an answer. So I
have come...
|
by: Mike Lundell |
last post by:
lemee try this again, for today's date :)...
..............
what's wrong with this, and .. can you not declare "char" variables?
#include <iostream>
int main()
{
|
by: Ohaya |
last post by:
Hi,
We've been having a problem with one particular page that has a button
on it, and a "tall" image (top-to-bottom).
The button calls some simple Javascript to print the frame in which the...
|
by: Fresh Air Rider |
last post by:
Hi Everyone
Scenario
A Webage has two dropdown lists, one for Suppliers and one for
Products.
When a user selects a supplier, it then populates the Products
dropdown list with the relevant...
|
by: rawCoder |
last post by:
Hi All,
This is a repost of 'Disable DataGrid AutoScroll of 3/7/2005'
Its related to "WinForm DataGrid"
HOW can i force the grid NOT to Auto Scroll to the ( newly added item OR
last...
|
by: Anthony |
last post by:
Sorry about the repost but i didn't get any responses....
I am trying to make a simple page display a rss news feed.. I don't want the
web server to connect to remote site because it doesn't...
|
by: John Ortt |
last post by:
I appologise for reposting this but I have been trying to find a solution
all week with no avail and I was hoping a repost might help somebody more
knowledgable than myself to spot the message...
...
|
by: Steve McLellan |
last post by:
Hi,
Sorry to repost, but this is becoming aggravating, and causing me a lot of
wasted time. I've got a reasonably large mixed C++ project, and after a
number of builds (but not a constant...
|
by: Gerry |
last post by:
I have a combo box and I can populate it with my class of dat
(the class allows me to store each userid,username called - see code below
I want the user to select the dropdown and see the...
|
by: Raj |
last post by:
Hi,
I have the following problem. I am displaying and printing a PDF file
that is generated by my Application server. The print dialogs comes up
correctly for the small PDF for the larger PDFs...
|
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...
|
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: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |