Unable to access Web Method after deploying into the server

Hi,
I'm Unable to access Web method after deploying into the server.
My Web method is 
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json )]
public object getOwners()
DataTable dt = _qbObj.returnDDLData("employeedetails", "EmpID", "EmpFirstName");
if (dt == null)
return new { Result = "Error", Options = "Error getting data" };
string[] strAttributes = { "ID", "Name" };
string[] strColName = { "EmpID", "EmpFirstName" };
List<SolOwners> lstObject = convertToList(dt, strAttributes, strColName, new SolOwners());
var owners = lstObject.Select(c => new { DisplayText = c.Name, Value = c.ID });
return new { Result = "OK", Options = owners };
When I.m accessing that method after deploying into server, I got following error.
System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: &lt;&gt;f__AnonymousType9`2[System.String,System.Collections.Generic.IEnumerable`1[&lt;&gt;f__AnonymousTypea`2[System.String,System.String]]] cannot be serialized because it does not have a parameterless constructor.
at System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo source, Boolean directReference, Boolean throwOnError)
at System.Xml.Serialization.XmlSerializationWriter.CreateUnknownTypeException(Type type)
at System.Xml.Serialization.XmlSerializationWriter.WriteTypedPrimitive(String name, String ns, Object o, Boolean xsiType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write1_Object(String n, String ns, Object o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write71_anyType(Object o)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Web.Services.Protocols.XmlReturnWriter.Write(HttpResponse response, Stream outputStream, Object returnValue)
at System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object[] returnValues)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()Please help me to solve that issue.Thank you.

Hi Vani,
What project are you developing? According to your code looks like an Asp.Net application? Am i right?
If so , please repost in  ASP.Net Forum
http://forums.asp.net for more efficient responses.
This forum is discuss problems of C# development.
Have a nice day!
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Unable to load the web site after deploying into the windows azure.Internal Server 500

    Hello everyone,
    Currently we are having one cloude service running into window azure.We are weekly deployeing that from local visual studio 2010.Yesterday when i published from visuual studio after that i am getting 500-Internal server error while opening my URL.So i had
    thought of enabling the Remote Access for my cloude service ,but when i am trying to do that i am geting different differnt errors.
    Details are like..
    3:14:39 PM - Warning: There are package validation warnings.
    3:14:39 PM - Checking for Remote Desktop certificate...
    3:14:40 PM - Preparing deployment for ScrumApplication.Azure - 2/11/2015 3:13:26 PM with Subscription ID 'b7a6057b-c401-46d7-a18d-7e0a4d6d1863' using Service Management URL 'https://management.core.windows.net/'...
    3:14:40 PM - Connecting...
    3:14:40 PM - Verifying storage account 'leanzy'...
    3:14:41 PM - Uploading Package...
    3:35:24 PM - Updating...
    3:36:13 PM - Legacy plugin RemoteAccess is found in role ScrumApplication. Please remove the import from Service Definition file to use the Extension.
    and some time i am getting another issue like
    1:58:36 AM - Warning: There are package validation warnings.
    11:58:36 AM - Checking for Remote Desktop certificate...
    11:58:41 AM - Uploading Certificates...
    11:59:01 AM - Preparing deployment for ScrumApplication.Azure - 2/11/2015 11:57:47 AM with Subscription ID 'b7a6057b-c401-46d7-a18d-7e0a4d6d1863' using Service Management URL 'https://management.core.windows.net/'...
    11:59:01 AM - Connecting...
    11:59:01 AM - Verifying storage account 'leanzy'...
    11:59:03 AM - Uploading Package...
    12:10:41 PM - Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
    so please help me to resolve the problem in urgent basis. 
    Please mail me if anything we can do on urgent basis.
    My email id is- [email protected]
    Thanks in advance.

    hi Madhusudan,
    According to your description, It is very hard to reproduce your issue. But from my experience, I suggest you can try those steps:
    1.Please try to create a new cloud service and try to deploy on Azure. I wanted to check whether the environment  issue.
    2.Please try to redeploy your project and disable RemoteAccess feature in your deployment process.
    Any results, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • After deploy into weblogic server while running the application-404 Error

    Hi All,
    Created an ADF application and Deployed this application to Weblogic server.
    I am getting the below error After deploy into weblogic server while running the application
    I am able to run this application well in JDeveloper using the IntegratedWebLogicServer.
    The Application is successfully deployed to the Web Logic server.
    While creating the domain, I have extended the Oracle JRF classes.
    Error
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    JDeveloper Version : 11.1.1.3.0
    Weblogic Version : 10.3.3.0
    Thanks
    Satish

    On the Deployments look for the Testing tab.. you will see your test link to check your deployment ..
    Some times.. for some reasons( which i dontKnow :( it doesnt identify with m/c name.. repalce it with IP address..and give a try.. if its on local /c u can try 127.0.0.1 /(or local host too)

  • Server Hangs when I tried to Access web Application that deployed in Managed Server

              Hai All!
              Here is my problem ! I started Admin Server and Managed server in a same machine.
              I deployed HttpClusterServlet in web.xml of Managed server. When i started servers
              they start fine and says Clustering started.... But when i tried to Access index.jsp
              that is in Managed Server default web application ..Nothing happens. It neither
              throws exception nor shows the desired page.. Seems to be Browser hang and server
              hang. At this stage i am unable to access Admin console also.(I can access before
              i tried index.jsp of managed server).. It seems to be Hang Allover..
              Pls suggest me how to come out of this hanging...
              Rgds
              Manohar
              

    See my answer to your last post. The short answer is that the HttpClusterServlet is
              likely to be the problem and not the cluster. You can try one of the web server plugins
              or a hardware load balancer as a temporary workaround. You should file a case with
              support too...
              Manu Kar wrote:
              > Hai All!
              >
              > Here is my problem ! I started Admin Server and Managed server in a same machine.
              > I deployed HttpClusterServlet in web.xml of Managed server. When i started servers
              > they start fine and says Clustering started.... But when i tried to Access index.jsp
              > that is in Managed Server default web application ..Nothing happens. It neither
              > throws exception nor shows the desired page.. Seems to be Browser hang and server
              > hang. At this stage i am unable to access Admin console also.(I can access before
              > i tried index.jsp of managed server).. It seems to be Hang Allover..
              >
              > Pls suggest me how to come out of this hanging...
              >
              > Rgds
              > Manohar
              

  • Unable to access web pages by typing in the IP address in the address bar?

    I hooked up a HP 7520.  HP was walking me through some set up options and they asked me to type in the IP address 10.0.1.3 into the addrss bar to bring up the web page.  Page remains blank or I get the Safari can't connect to the server.  HP stated it was an issue with the setting on the Airport Express.  What should the setting be in order for the IP address to load?

    10.0.1.3 is a local network IP address. I am assuming that is the IP address of your HP 7520. Since this is a local address there is no additional settings on the AirPort Express that you can make.
    I am assuming that you have your Express in its default mode. That is, it is acting as in wireless router and that it is connected directly to your Internet modem ... correct?
    If so, your Express will hand out local IP addresses in the 10.0.1.2 to 10.0.1.200 range. Note that this is a dynamic address. The provided IP addresses may change over time which is what I think has happened in your case. By that I mean, you HP received a new IP address and why you can find it in the web browser at 10.0.1.3.
    What I would recommend that you do is assign a "static" local IP address to the HP. You can do this using the AirPort Utility. Specifically, you want to set up a DHCP Reservation for this device.
    To do so:
    Run the AirPort Utility.
    Select the AirPort Express, and then, select Edit.
    Select the Network tab.
    Under DHCP Reservations, click on the plus button.
    For Description, enter: HP 7520 or anything else you like.
    Reserve Address By: MAC Address
    MAC Address: Enter the MAC Address of the HP. This would either be the HP's Ethernet or wireless address whichever is appropriate on how you have it connected to the network.
    IPv4 Address: Choose an IP address between 10.0.1.2 & 10.0.1.200. This will be the IP address that you will reserve for the HP.
    Select Save.
    Select Update and allow the Express to restart.

  • How can I run a vi after deploying into a PXI Machine

    Hi;
    I am wondering if there is anyone out there who knows how to run a vi after deploying into a PXI machine from my host machine. In my application, I have some vi's that are deployed into my PXI machine. My problem is that when I would like to start these vi's simultaneously after deploying them. My current approach is to call vi reference and then invoke-> run. However, since there vi's are being deployed from a host machine and they are running in the PXI machine, I don't know how to create vi reference with the path constant. In other words, how can I find out the path of my vi after being deployed into my PXI machine from the host.
    Best Regards,
    Solved!
    Go to Solution.

    When VIs are deployed onto a PXI Real-Time controller they are generally copied to a C:\ni-rt\startup directory on the controller.
    Helpfully, this KnowledgeBase article talks about how specify and programmatically launch VIs on an Real-Time controller.
    I hope this helps,
    Fred V -- Product Support Engineer -- LabVIEW R&D -- National Instruments

  • I am unable to access my account after the start up of my pc

    I am unable to access my account after the pc start up even as an administrator. Other account users are able to.

    Passwords are case sensitive and an numeric 0 is often mistaken for an alpha O.  Please verify your entry.
    If unable see here, click the down arrow on the right hand side and select Windows 7
    We are aware that there is a problem with this update concerning the Memphis S motherboard.
     http://windows.microsoft.com/en-us/windows/what-do-forget-windows-password#1TC=windows-7
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • I am from India using my iphone4 with Vodafone and  firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????

    I am from India using my iphone4 with Vodafone and  firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????

    I am from India using my iphone4 with Vodafone and  firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????

  • I m unable to access apple os after windows 7 instalation and its not giving the boot option

    i m unable to access apple os after windows 7 instalation and its not giving the boot option. plz any one help me out ..  how to fix it or how to delete windows 7 on my macbook

    Reboot, as soon as you hear the chime press and hold the option key, when the Boot Manager appears select OSX.

  • TS3899 Unable to access E-mail after new update

    Unable to access ER-mail after new update.  Most recomendations delete the account with contacts---any other solutions??

    Contact the email provider to troubleshooting.
    Delete and re-add the account.
    Without any details about the issue there is little to nothing that we fellow users can suggest.

  • Applet fails to load after loging into the system

    Hi
    I'm developing a web application for playing multi-player games. The game is played in an applet. I've written the applet and all worked well when embeding it in an ordinary jsp page. The problem starts when I try to start the applet as after logging into the system - it doesn't load and in java console I get:
    load: class pl.cardq.applet.ChatApplet not found.
    java.lang.ClassNotFoundException: pl.cardq.applet.ChatApplet
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:778)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2045)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:707)
         at sun.applet.AppletPanel.run(AppletPanel.java:361)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:286)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
         ... 9 more
    I guess tit's because some sort of security restriction...
    Any help more than welcome

    Thanks for the reply.
    The connection is ok but I figured out that it's not about the logging in.
    The applet stops loading when I add jsf to an ordinary jsp page. (in jsp it works fine)
    Can you help me with that?
    My page code is:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <f:view>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h:form>
    <f:verbatim escape="false">
    <applet code="pl.cardq.appletChatApplet" archive="CardQApplet.jar" height=450 width=400>
    <PARAM name="USER" value="cama">
    </applet>
    </f:verbatim>
    </h:form>
    </body>
    </f:view>
    </html>

  • Using MS Access Web App, can you set the tab order of the fields on a form?

    Using MS Access Web App, can you set the tab order of the fields on a form?  Doesn't appear to be a property.  I don't see a programmatic method.  I saw someone suggest using goto control on the after update event trigger but what if the person
    doesn't edit the field?  No event would be fired.
    Jim

    Hi Jim,
    >>Using MS Access Web App, can you set the tab order of the fields on a form?
    I am afraid you could not. In Web applications, the tab order is set automatically and cannot be changed.
    (From
    https://support.office.com/en-au/article/Set-the-tab-order-for-controls-3d7f749c-5a53-42b2-bb0e-2323fa044e2e)
    >> I saw someone suggest using goto control on the after update event trigger but what if the person doesn't edit the field?  No event would be fired.
    The goto method is a workaround, but it should be triggered by a specific event. What I can figure out is changing the order of the fields.
    If this is a feature you want to include in future versions of Access Web app, please submit a feedback as the picture below:
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to automatically step into the server. the remote procedure cannot be debugged.

    Hi,
    I am trying to deploy report using ssis script c# code.I am using the proxy for ReportingService2010 and following code is giving the error.
    code:
    ReportingService2010 rs = new ReportingService2010();
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.CreateFolder("MSI Report Demo", "/", null);
    Error:
    unable to automatically step into the server. the remote procedure cannot be debugged. This usually indicates that debugging has not been enabled on the server.
    Please share the idea on it. 
    Thanks in advance.
    -Gautam

    just make a trust between to domain and it works .

  • HT1414 I have the iphone 4s, I'm unable to access my calender while talking on the phone??

    For some reason I'm unable to access my calender while talking on the phone, if I want to check dates and times to input appt.  I beieve it might have happened after the latest software update, has anyone else had this problem???

    Please change your profile then, it says iPhone 4S, IOS 6.1.4.
    Is your Calendar in iCloud? Which provider are you using?

  • Can you access an external HD plugged into the Airport Extreme from a remote location over the internet?

    Can you access an external HD plugged into the Airport Extreme from a remote location over the internet?
    Also can the content on the exteral HD plugged into the airport be accessed by the TV to stream content?

    The first question answer is yes..
    The question is asked continually.. please read the methods that Tesserax wrote up so well.
    See remote access tip here.
    AirPort
    Also can the content on the exteral HD plugged into the airport be accessed by the TV to stream content?
    Unlikely .. because your TV uses a system called DLNA.. and Apple do not support DLNA in any way shape or form.. because they are fully committed to iTunes.. Apple routers have no media extensions.. unlike most other decent brands now which mostly do support multimedia.
    Having said that.. you can place your video files on the external hard disk.. and play them.. but you need a player.. a real player not an apple TV which is a streamer.. eg A WD Live TV can play video files.. because it is a media player.. unlike your TV or apple TV.

Maybe you are looking for