I encountered strange issues. I have code like this
sqlReader = SqlHelper.ExecuteReader(connString,
System.Data.CommandType.Text,sql);
It calls Microsoft.ApplicationBlocks.Data to execute a sql statement. It
worked fine, but after I did some modifications to my dll, I got error. The
strange thing is the first call to the code runs fine, but the calls after
will return the following error:
Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
I searched on the Internet, several articles point out the error is about
sharepoint and dll on shared folder. But that is not my situation. Any idea?
Thanks! 1 3006
David,
Can you be more clear about the modifications that you made to your
class which might have caused the error?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"davidw" <da****@affinisys.com> wrote in message
news:uC**************@TK2MSFTNGP10.phx.gbl... I encountered strange issues. I have code like this
sqlReader = SqlHelper.ExecuteReader(connString, System.Data.CommandType.Text,sql);
It calls Microsoft.ApplicationBlocks.Data to execute a sql statement. It worked fine, but after I did some modifications to my dll, I got error.
The strange thing is the first call to the code runs fine, but the calls after will return the following error:
Request for the permission of type System.Data.SqlClient.SqlClientPermission, System.Data,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
I searched on the Internet, several articles point out the error is about sharepoint and dll on shared folder. But that is not my situation. Any
idea? Thanks!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Paul Drummond |
last post by:
Hi all,
I am developing software for Linux Redhat9 and I have noticed some very
strange behaviour when throwing exceptions within a shared library.
All our exceptions are derived from...
|
by: Neil Ginsberg |
last post by:
I have a strange situation with my Access 2000 database. I have code in the
database which has worked fine for years, and now all of a sudden doesn't
work fine on one or two of my client's...
|
by: Kris Vanherck |
last post by:
yesterday i started getting this strange error when i try to run my asp.net
project:
Compiler Error Message: CS0006: Metadata file
'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
|
by: Gary |
last post by:
I have an application that has been working just fine for a couple of years.
It queries a SQL database and returns some formatted data back to the client.
I have a new client, who has a larger...
|
by: Martin Joergensen |
last post by:
Hi,
I've encountered a really, *really*, REALLY strange error :-)
I have a for-loop and after 8 runs I get strange results...... I
mean: A really strange result....
I'm calculating...
|
by: Me |
last post by:
Hi,
I ran into a malloc problem but I can't find the solution.
I try to read a file into a variable with malloc like this:
BYTE *lcdata;
lcdata = malloc(fsize*sizeof(BYTE));
|
by: Rolf Wester |
last post by:
Hi,
the code:
from Numeric import *
def my_minimum(a):
n=shape(a)
x = 1.0e20
for i in range(n):
|
by: SpreadTooThin |
last post by:
I have a list and I need to do a custom sort on it...
for example:
a = #Although not necessarily in order
def cmp(i,j): #to be defined in this thread.
a.sort(cmp)
print a
|
by: zacks |
last post by:
I am developing an app in VS2005 (actually in VB.NET but this
question, I believe, would apply to any .NET language) that is used to
design the contents of an XML file. One of potential items that...
|
by: kj |
last post by:
I'm running into a strange seg fault with the module cjson. The
strange part is that it does not occur when I run the code under
Emacs' Pydb.
Here's an example:
import sys, cjson
d1 =...
|
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: 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
|
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...
|
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: 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,...
|
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...
|
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...
| |