Hi,
I have an atlas related question..
I have a web form that submits the information to a web service
method, and it's done thru Atlas by binding the web methods to client
functions.
It seems to be working fine, except for when the class has a property
with only getter (no setter), it freaks out, and returns the following
error:
new Sys.Net.MethodRequestError("The type \'Project\' does not have a
public property or field named
\'StartDateDisplay\'"," at
Microsoft.Web.Script.Serialization.ObjectConverter .AssignToPropertyOrField
(Object propertyValue, Object o, String memberName)\r\n at
Microsoft.Web.Script.Serialization.ObjectConverter
..ConvertDictionaryToObject(IDictionary`2 dictionary, Type type)\r\n
at Microsoft.Web.Script.Serialization
..ObjectConverter.ConvertObjectToTypeInternal(Obje ct o, Type type)\r
\n at Microsoft.Web.Script.Serialization
..ObjectConverter.ConvertObjectToType(Object o, Type type)\r\n at
Microsoft.Web.Services.WebServiceMethodData
..StrongTypeParameters(IDictionary`2 rawParams)\r\n at
Microsoft.Web.Services.WebServiceMethodData.CallMe thodFromRawParams
(Object target, IDictionary`2 parameters)\r\n at
Microsoft.Web.Services.RestHandler.ProcessRequest
(HttpContext context)","System.ArgumentException")
The Project class has a property called "StartDateDisplay" but it's a
getter. Is Atlas unable to map a client object to a server object if
the server class def contains a property with only getter? Is there a
workaround to this?
I have other classes with getter properties, so I'd like to get it
working as is without removing them.
Thanks in advance,
Amie 2 1386
Amie wrote:
Hi,
I have an atlas related question..
I have a web form that submits the information to a web service
method, and it's done thru Atlas by binding the web methods to client
functions.
It seems to be working fine, except for when the class has a property
with only getter (no setter), it freaks out, and returns the following
error:
new Sys.Net.MethodRequestError("The type \'Project\' does not have a
public property or field named
\'StartDateDisplay\'"," at
Microsoft.Web.Script.Serialization.ObjectConverter .AssignToPropertyOrField
(Object propertyValue, Object o, String memberName)\r\n at
Microsoft.Web.Script.Serialization.ObjectConverter
Hi, I guess a problem is not in Atlas. You trying to serialize an
object of the class which has a property that can not be serialized.
Try to explicitly exclude this property from the serialization.
[Serializable]
public class Project
{
public bool NormalProperty
{
get { ... }
set { ... }
}
[NonSerialized]
public string StartDateDisplay
{
get { ... }
}
}
Thanks for the response!
I couldn't attach the attribute [Nonserialized] for the property as
it's allowed for field declaration only.
I got around by having an empty setter.. Probably not a best solution,
but it works. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Darren L. Weber |
last post by:
The following is a first attempt to almost create a shell script for
installation of ATLAS and LAPACK. It does not work right now and it is
specific to a particular platform. It is posted here to...
|
by: rogersmail |
last post by:
Greetings to all,
Can anyone tell me if Atlas can work directly with C# classes not
defined as a webservice.
sort of like a servlet class.
I would like to create a thin and thick client for...
|
by: sales |
last post by:
Hi
Does ATLAS support the use of external javascript va this syntax
--myPage.aspx--
atlas:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<atlas:ServiceReference...
|
by: Papanii Okai |
last post by:
Hi Guys,
As we wall know Atlas is a fairly new feature everyone is talking
about (atleast at my school). Even though the idea of Ajax has been used in
the past i was wondeing if anyone could...
|
by: Varangian |
last post by:
I'm not sure if there was already a post on this.. if so I apologise
My question is what difference is there between Atlas and ASP.NET
callback and why should people go on Atlas rather than on...
|
by: Ronde |
last post by:
Hi all,
I am in a such situation that requires before Atlas do the
Partical/Atlas postback, a Client-Side JavaScript has to be executed
first, once the JavaScript execute successfully, the...
|
by: Nalaka |
last post by:
Hi,
Is it safe to start developing for future production apps... using current
atlas frame work (June CTP)?
When is the planned production release?
(I cannot find a link on the web)
Thanks...
|
by: Bob |
last post by:
Hi,
I develop aspnet applications (no webservices) often using gridviews with
sorting and dropdownlist ...
I was wondering whether i could use 'ajax' methods for speeding up my
applications...
|
by: Vaidas Gudas |
last post by:
How to update ATLAS AJAX UpdatePanel by using javascript.
|
by: YellowFin Announcements |
last post by:
Yellowfin, Powered by J2EE, Jasper, BIRT, Spring, jfreeChart
Advanta releases ATLAS BI using Yellowfin Business Intelligence
3rd of August, 2007 - Advanta Software, specialist software...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |