473,385 Members | 1,396 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.

The property .. cannot be serialized because it is decorated with declarative security permission attributes?

Sorry about the cross-posting but I need to get attention from the ADO.Net and Web Service Gurus!

I really need to use the System.Data.OleDb.OleDbParameter Class but I am getting following error when trying to compile the Web Service. This is however NOT a problem in the case of Remoting.

The property 'DbType' on type 'System.Data.OleDb.OleDbParameter' cannot be serialized because it is decorated with declarative security permission attributes. Consider using imperative asserts or demands in the property accessors.

The message is nice but how do I intercept the property accessors DbType from with in OleDbParameter? How do I intercept the enum DbType without having to customize the System.Data.OleDb.OleDbParameter?

Can someone shed some lights on this?

Thanks,
Prodip
Nov 23 '05 #1
0 1078

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

Similar topics

2
by: Grzegorz ¦lusarek | last post by:
hello. I've code like this: var x =window.open('http://localhost/canvas.html','myokno') var w =x.width Permission denied to get property Window.width var w =x.innerWidth Permission denied to...
3
by: Chua Wen Ching | last post by:
Hi there, I had applied this security permissions in my class library based on fxcop standards. Before namespace: using System.Runtime.InteropServices; using System.Security.Permissions;
12
by: Mark | last post by:
Hello, in a simple console application I try to create a file with some code like: FileStream file = new FileStream("test.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new...
10
by: Tony Abate | last post by:
I am working on an ASP.NET app that is going well except for one thing. I build my application and then move the .aspx file to a different directory. I can point the Codebehind property back to the...
0
by: Prodip Saha | last post by:
Sorry about the cross-posting but I need to get attention from the ADO.Net and Web Service Gurus! I really need to use the System.Data.OleDb.OleDbParameter Class but I am getting following error...
13
by: Bevan Arps | last post by:
I have a simple question, but one to which I haven't (after a whole bunch of Googling) been able to find an answer: Are there any guarantees to the order of PropertyInfo objects returned by a...
8
by: Richard Collette | last post by:
When attempting to debug a webservice, I get the error: Cannot serialize member System.Exception.Data of type System.Collections.IDictionary, because it implements IDictionary. In reading...
2
by: Nick | last post by:
Is there a way to do declarative security on abstract classes? I am working on a data access layer and would like to place all permission requirements on the base class so all inherited classes...
4
by: ianyian | last post by:
hi experts, im doing some staff bween th the aspx + MS Word.chellcheck, and and which running on my ypc is no problem ( windows xp , activation by ASPNET ), buts someshow when i try to deploy to...
0
by: sandervandragt | last post by:
I'm using one of the custom attributes to hold a user's secondary email address and have written some Classic ASP code to write this into the user object and read it out etcetera. This all works...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.