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.MethodR equestError("Th e type \'Project\' does not have a
public property or field named
\'StartDateDisp lay\'"," at
Microsoft.Web.S cript.Serializa tion.ObjectConv erter.AssignToP ropertyOrField
(Object propertyValue, Object o, String memberName)\r\n at
Microsoft.Web.S cript.Serializa tion.ObjectConv erter
..ConvertDictio naryToObject(ID ictionary`2 dictionary, Type type)\r\n
at Microsoft.Web.S cript.Serializa tion
..ObjectConvert er.ConvertObjec tToTypeInternal (Object o, Type type)\r
\n at Microsoft.Web.S cript.Serializa tion
..ObjectConvert er.ConvertObjec tToType(Object o, Type type)\r\n at
Microsoft.Web.S ervices.WebServ iceMethodData
..StrongTypePar ameters(IDictio nary`2 rawParams)\r\n at
Microsoft.Web.S ervices.WebServ iceMethodData.C allMethodFromRa wParams
(Object target, IDictionary`2 parameters)\r\n at
Microsoft.Web.S ervices.RestHan dler.ProcessReq uest
(HttpContext context)","Syst em.ArgumentExce ption")
The Project class has a property called "StartDateDispl ay" 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 1409
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.MethodR equestError("Th e type \'Project\' does not have a
public property or field named
\'StartDateDisp lay\'"," at
Microsoft.Web.S cript.Serializa tion.ObjectConv erter.AssignToP ropertyOrField
(Object propertyValue, Object o, String memberName)\r\n at
Microsoft.Web.S cript.Serializa tion.ObjectConv erter
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 StartDateDispla y
{
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 archive it and
throw into the public domain, maybe others will find it useful. It is
at least a documentation of some relevant notes on the procedure.
Corrections and updates would be really appreciated. Alternatives to
automate this process...
|
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 my app. If I need
to use webservices to talk to my system for both cases, then that seems
to me to be a waste of resources. It would seem easier to create a
|
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
Path="webServices/securityService.asmx" />
|
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 explain a few things to me.
Comparing the performance of both asp.net client call backs and Atlas which
is faster? Do they necessarily do the same things? Are there things Atlas
can do that client callbacks can't? Secondly, even though there is a Atlas...
|
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 the ASP.NET
2.0 Callback?
I used both of them:-
Atlas was easy to use, just put the controls you wish in an UpdatePanel
and all that, however the update panel still flickers if you put lots
| |
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 Partical/Atlas
postback should be fired.
I try to do like this in code behind,
protected void Page_Load(object sender, EventArgs e)
|
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
Nalaka
|
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 (e.g. when sorting, the whole page is refreshed) .
Now i read about client callback and atlas and i have some questions about
that.
1) what's the best i can use (atlas or client callback)?
|
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 solutions
provider to the 3PL and logistics markets, announced the release of
ATLAS BI, a state of the art business intelligence module as an
addition to Advanta's ATLAS logistics suite.
ATLAS BI comes as a result of a partnership with local business...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |