Collection as parameter

Hey Kodo,
I've tried using a Collection as parameter in order to obtain several
Objects. The problem is, I've got duplicate results. Although this could be
expected I'd like it better if I could somehow add a DISTINCT to the query.
Here's my query:
String filter = "secObjects.contains(priv.secObject) && priv.secGroup ==
this";
Query query = pm.newQuery(pm.getExtent(MirakelGroup.class,true),filter);
query.declareImports("import com.madocke.util.security.jdo.*;import
java.util.Collection;");
query.declareParameters("Collection secObjects");
query.declareVariables("JdoPrivilege priv");
query.setOrdering("name ascending");
Collection c = (Collection)query.execute(secObjects);
What the query should do is return a number of MirakelGroups that somehow
have privileges on one of the objects passed into the query.
Thanks in advance,
Martin van Dijken

"Abe White" <[email protected]> wrote in message
news:[email protected]..
So am I correct in thinking that each MirakelGroup can have multiple
JdoPrivilege instances associated with it? And you are getting a
separate copy of each group back for each privilege that it has whose
"secObject" is in the collection parameter?Quite correct, I'll clarify a little further:
|SecObject |
|Irrel. props|
|JdoPrivilege |
|SObj secObject |
|MGroup group |
|int rights |
|MirakelGroup |
|Irrel. props |
secObject and group would be the keys if this were a straightforward db
design. We're using Kodo identity, but that conveys the idea best.
Now when I query for all Groups that have rights on one SecObject I simply
get those returned. If I input a collection with two SecObjects who happen
to have exactly the same combination of groups/rights I get every group
twice. This pattern also applies to 3,4 etc.
Martin van Dijken

Similar Messages

  • Procedure with collection as parameter- help required

    I am having records as below:
    Add Rol Time
    A1     8:20
    A2     8:25
    A2 R1 8:29
    A2 R1 8:32
    A3     8:45
    A3     8:46
    A3     8:50
    I have a scenario where I need to calculate the average_time based on one scenario.
    The formulae we are having to calculate the average is:
    (min(next_address)-max(previous_address))*0.55
    i.e., For example for record 5, (8:45 - 8:32)*0.55.
    Here in my procedure I am passing Add's and Rol's as collection Input parameters.
    How can I go and calculate the average_time value's now.
    I tried with
    For I in Add.count
    loop
         v_avg_time := (Add(I+1)-Add(I))*0.55;
    end loop;
    When I want to test this, I am not knowing how to pass values to the procedure.
    Please tell me how to execute the procedure and how to acheive the results.
    Thanks in advance
    Regards
    Raghu

    Try like this.
    SQL> create or replace type my_num as table of number
      2  /
    Type created.
    SQL> create or replace procedure my_proc (pNum my_num)
      2  as
      3     lsum number;
      4     lavg number;
      5  begin
      6     select sum(column_value), avg(column_value)
      7       into lsum, lavg
      8       from table(cast(pNum as my_num));
      9
    10     dbms_output.put_line('SUM: ' ||lSum);
    11     dbms_output.put_line('AVG: ' ||lAvg);
    12  end;
    13  /
    Procedure created.
    SQL> declare
      2     lNum my_num := my_num(1,2,3,4,5,6,7,8,9,10);
      3  begin
      4     my_proc(lNum);
      5  end;
      6  /
    SUM: 55
    AVG: 5.5
    PL/SQL procedure successfully completed.Thanks,
    karthick.

  • Pass values to Guid collection/array parameter for anonymous pl/sql block

    The following code pops the System.ArgumentException: Invalid parameter binding
    Parameter name: p_userguids
    at Oracle.DataAccess.Client.OracleParameter.GetBindingSize_Raw(Int32 idx)
    at Oracle.DataAccess.Client.OracleParameter.PreBind_Raw()
    at Oracle.DataAccess.Client.OracleParameter.PreBind(OracleConnection conn, IntPtr errCtx, Int32 arraySize)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    Any help or advice ?
    anonymous pl/sql block text:
    DECLARE
    TYPE t_guidtable IS TABLE OF RAW(16);
    p_userguids t_guidtable;
    BEGIN
    DELETE testTable where groupname=:groupname;
    INSERT INTO testTable (userguid, groupname)
    SELECT column_value, :groupname FROM TABLE(p_userguids);
    END;
    c# code:
    public static void SetGroupUsers(string group, List<Guid> users)
    OracleConnection conn = Database.ConnectionEssentus;
    try
    conn.Open();
    OracleCommand sqlCmd = new OracleCommand();
    sqlCmd.CommandText = sqls["SetGroupUsers"]; // above anonymous block
    sqlCmd.Connection = conn;
    sqlCmd.BindByName = true;
    OracleParameter p_guidCollection = sqlCmd.Parameters.Add("p_userguids", OracleDbType.Raw);
    p_guidCollection.Size = users.Count;
    p_guidCollection.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    p_guidCollection.UdtTypeName = "t_guidtable";
    p_guidCollection.Value = users.ToArray();
    sqlCmd.Parameters.Add("groupname", OracleDbType.Varchar2, 30).Value = group;
    sqlCmd.ExecuteNonQuery();
    catch(Exception ex)
    System.Diagnostics.Debug.WriteLine(ex.ToString());
    finally
    conn.Close();
    }

    New question,
    How can I select records using "in" condition clause likes the following sentence?
    SELECT userguid, firstname, lastname FROM UserTable WHERE userguid in (SELECT column_value FROM TABLE(p_userguids))
    I tried using PIPE ROW like this, but ORACLE said "PLS-00629: PIPE statement cannot be used in non-pipelined functions"
    FOR i in p_userguids.first .. p_userguids.last
    LOOP
    SELECT userguid, firstname, lastname INTO l_userrecord FROM UserTable WHERE userguid=p_userguids(i);
    PIPE ROW(l_userrecord);
    END LOOP;

  • How to get a parameter without name in JSP?

    hi everyone, My question is how to get a parameter without name in JSP? I have two pages, 1.html and 2.jsp.
    in 1.html, I embeds some Javascript codes in HTML contents like below ( changed < to ( , > to )):
    function toSubWin( obj )
    window.open('test.jsp?'+obj.firstChild.toString(),'sw');
    (a onClick='toSubWin(this)'style="background:green")focus(/a)
    How can I get the parameter in 2.jsp?
    THANK YOU IN ADVANCE!!

    Does obj.firstChild.toString() evaluate to a "name=value" type of String ?
    Or better what does obj.firstChild.toString(),'sw' evaluate to ? It has to end up in a name=value format, else its just gibberish appended to the url.
    In the jsp, you have to obviously know the name to get the parameter. There's a getParameterNames() method which returns you a Collection of parameter names as Strings, you could probably use that to retrieve the param values.
    Then there's a getParameterMap() method which returns an immutable Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
    However to what ends you employ them in a program which doesnt know its inputs is a different story.
    cheers,
    ram.

  • How to use a table as Parameter to a function?

    Hi,
    I would like to know how we can use a "nested table " ( pl/sql collection)
    as parameter in a function and that function also return a table.
    How we execute this type of function in a pl/sql block?
    Thanks
    Jobin JSP
    Edited by: Jobin .SP on Dec 18, 2008 1:45 AM

    Some thing like this?
    SQL> create or replace type tbl is table of number(10)
      2  /
    Type created.
    SQL> create or replace function my_fn (ptbl in tbl) return tbl
      2  as
      3     ltbl tbl;
      4  begin
      5     ltbl := ptbl;
      6
      7     for i in 1..ltbl.count
      8     loop
      9             ltbl(i) := ltbl(i) + 10;
    10     end loop;
    11
    12     return ltbl;
    13  end;
    14  /
    Function created.
    SQL> select * from table(my_fn(tbl(1,2,3,4,5,6,7,8,9,10)))
      2  /
    COLUMN_VALUE
              11
              12
              13
              14
              15
              16
              17
              18
              19
              20
    10 rows selected.

  • Object Array --- Collection

    Is there any way to directly convert and object Array to a Collection object. Basically i need to create a ArrayList from Object Array. The ArrayList has a constructor and also provides a method addAll() that accept Collection as parameter. So the problem becomes , how to convert Object Array to collection. As per my understanding all arrays should be essentially Collection Interface subclass.
    So why am i not able to cast?
    What is wrong in calling Object Array a sub class of Collection?
    // OrderLineItem[] is the object array that i wish to have as ArrayList
    // This code generates error -
    //"ErpOrder.java": Error #: 364 : cannot cast gal.ERP.OrderLineItem[] to java.util.Collection
      public void setLineItems( OrderLineItem[] arrOrderLineItem ) {
        m_arrLineItems = new ArrayList((Collection)arrOrderLineItem);
      }Is there no way except iterating through the array and adding individual Objects to ArrayList?

    By "Object array" do you mean an Array class, or do you mean an Object[]? They are different. The Array class wraps an Object[] and provides useful methods to manipulate it.
    There is no such thing as a Collection object, per say. "Collection" is an interface implemented by many objects such as LinkedList, Vector, ArrayList, HashSet, and TreeSet.
    The Collection interface is designed to be an interface to any object that can keep a mutable list of other Objects, check to see if an Object is in that list, and iterate through all Objects in the list.
    As far as resources go, I suggest the API reference at http://java.sun.com/j2se/1.4.1/docs/api/index.html.

  • Target Data Collection in ASCP

    Hi,
    I was NOT able to see "Target Data Collection" parameter in LOV of Data Collection Concurrent Program.I was able to "see" ONLY Complete Refresh Parameter in LOV.
    Is there any Profile Option?
    Regards
    NTGR

    set "purge previously collected data" to 'NO' in the parameter list. you will able to see "targeted collection" and "Net change Collection" in Collection Method parameter LOV.
    Regards
    Abhishek

  • Can I add more then one mask item on the data collection ?

    Hi,
    I have a requirement, for example as follows.
    ex.
    Data collection: DC01
    Parameter 1: P1 and Type is text.
    P1 parameter just only allow two values, "AB" or "CD".
    Data collection's mask can do that?  If not, any good soultion can do that?
    thanks!

    Hi,
    There might be the case to use Formula to interpret the input value to one of 3 possible options.
    Though, you can consider the easier approach:
    - set the parameter type to Numeric;
    - set MIN = 1;
    - set MAX = 3;
    - set Mask = #.
    This implies that only 1, 2, or 3 can be entered.
    In Data Collection Prompt, you can decribe which number corresponds to which colour.
    Regards,
    Sergiy

  • Adding a Parameter to a built in Report

    Using SSRS, I cloned (using a simple save as command with a new name) the built in "Computers with a specific product" report and would like to add a parameter to filter the results by a device collection. This parameter exists in the
    "Computers with specific software registered in Add Remove programs" report.
    I am not familiar with SSRS and so editing this way is alien to me. I have only authored static SQL queries with no parameters in the past. Does anyone have any advice on how to get started? It appears I need to add a new data set for the collection
    using an SQL query. Is this correct?

    I was able to get what I needed. but I don't have the foggiest notion of where I got the informatin from. Here are the notes I took (YMMV):
    Creating the Dataset
    A dataset for all collections must be added. The parameter relies on this dataset to pull the list of collections. You can name it
    All_Collections or something similar.
    select distinct c.CollectionID, c.Name, c.CollectionType from v_Collection c
    WHERE c.CollectionType = 2
    order by c.Name
    This returns all collection names; the
    WHERE clause specifies computer collections only.
    Adding the parameter
    In the main query/dataset, create an inner join between the
    v_R_System and
    v_FullCollectionMembership views
    using the ResourceID field.
    Name the parameter
    CollID.
    Create a filter/WHERE statement what says CollectionID is @CollID, e.g.
    WHERE  v_FullCollectionMembership.CollectionID = @ColID
    This assumes the parameter added is named
    CollID; if not, the value after the equals in the statement above should match the name of the parameter.
    In the Where statement above, the GUI report building will insert N'variable'
    (e.g. N'CollID') around the CollID value. This should be removed. If the query is created in the report builder GUI, you must switch it over to editing by text.
    Note: What the N does is tell the SQL Server that the data which is being passed in is uni-code and not character data. When using only the Latin character set this is not really needed.
    However if using characters which are not part of the basic Latin character set then the N is needed so that SQL knows that the data being given it is uni-code data.
    Recommendation: Create all joins and filters using the GUI for the main query first. When done, edit the parameter as described in item b above
    to enable use of the collection selection parameter.
    Hope this helps!

  • Can I create a template in LR4 (for mini sessions, senior portraits, etc)

    Hey All-
    I am looking to create templates (for mini-sessions, senior portrait session, etc. to use on FB & Website.) Through a significant amount of research, it looks as though Photoshop and PS Elements seems to be the only places to do this? Is it not possible in LR4?
    I appreciate any feedback! Thank you.

    http://community.office365.com/en-us/f/154/t/61145.aspx
    Are you meaning to create sites on SharePoint Online by invoking web services in your own program? SharePoint Online indeed provide some web services for custom programming, however, the web methods for creating a new site seems not included in them. Here
    are some resources for the development of SharePoint Online for your reference:
    SharePoint Online for developers
    http://msdn.microsoft.com/en-us/sharepoint/gg153540.aspx
    Code example for SharePoint Online: Accessing Web Services
    http://code.msdn.microsoft.com/office/SharePoint-Online-0bdeb2ca
    As to create a site collection, the parameter "Template" is the name of the template you want to use, as to find the name of the custom site template, you can use the powershell command "Get-SPOWebTemplate",
    it will list all the templates with the names.
    Note, The Template and LocaleId parameters must be a valid combination as returned from the Get-SPOWebTemplate cmdlet.
    Also check
    http://stackoverflow.com/questions/21268629/creating-new-site-collection-in-office-365-from-an-app
    If this helped you resolve your issue, please mark it Answered

  • Can we create a developersite in O365 SP Online programiatically ? what is the template code for it ?

    Hi
    I am trying to create sites programmatically in O365 SharePoint Online. So, just want to know that can we create a DeveloperSite ?? what is the template code for it viz. Team site- STS#0, etc
    If possible provide me the MSDN link where I can refer for available site templates for O365 SP Online sites creation.
    Thank you 

    http://community.office365.com/en-us/f/154/t/61145.aspx
    Are you meaning to create sites on SharePoint Online by invoking web services in your own program? SharePoint Online indeed provide some web services for custom programming, however, the web methods for creating a new site seems not included in them. Here
    are some resources for the development of SharePoint Online for your reference:
    SharePoint Online for developers
    http://msdn.microsoft.com/en-us/sharepoint/gg153540.aspx
    Code example for SharePoint Online: Accessing Web Services
    http://code.msdn.microsoft.com/office/SharePoint-Online-0bdeb2ca
    As to create a site collection, the parameter "Template" is the name of the template you want to use, as to find the name of the custom site template, you can use the powershell command "Get-SPOWebTemplate",
    it will list all the templates with the names.
    Note, The Template and LocaleId parameters must be a valid combination as returned from the Get-SPOWebTemplate cmdlet.
    Also check
    http://stackoverflow.com/questions/21268629/creating-new-site-collection-in-office-365-from-an-app
    If this helped you resolve your issue, please mark it Answered

  • Getting an error in the preview but no errors or warnings in the error list

    I've got a SSRS report, originally written using SQL Server 2005, that I just upgraded to SQL Server 2012. I'm using the SQL Server Data Tools that you're supposed to work with now. I had to change the query and remove one of the fields returned by one of
    the datasets in the report. I had some problems, but have worked through it.
    Now I can run the application, if I specify my .RDL file as the starting item. However, within the SSDT development environment, if I try to preview the report I'll get the following:
    "An error occurred during local report processing.
    An error occurred during rendering of the report.
    An error occurred during rendering of the report.
    Index was out of range. Must be non-negative and less than the  size of the collection.
    Parameter name: index"
    But the Error List shows no problems at all. Everything is fine. Everything works. And yet, there's nothing in the preview except for the error messages I've listed above.
    So, how can there be "no errors, warning or messages" and yet there's nothing to be seen in the preview? And why does it work when I run it in SSDT?
    Rod

    Hi Rod,
    It's probably caused by data caching in the designer. When you changed the query and remove one of the fields returned by one of the datasets in the report, the dataset definition has been changed, but the actual cached data stored by Visual Studio (i.e.
    the *.rdl.data file) still has data based on the old Dataset definition when reprocessing the report. This is in internal error caused by the mismatch between the data the report is expecting and what has been cached.
    In this scenario, we can delete the *.rdl.data files from the drive, hit the "Refresh Fields" under the dataset properties for my dataset, then try previewing again.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • DPM 2012: MMC crashes when working with 2 particular protection groups

    I have a problem with 2 particular protection groups that will not allow me to perform a backup to tape on them.  When I try to, the MMC crashes with the following error logged in the application event log:
    The description for Event ID 999 from source MSDPM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    An unexpected error caused a failure for process 'mmc'.  Restart the DPM process 'mmc'.
    Problem Details:
    <FatalServiceError><__System><ID>19</ID><Seq>0</Seq><TimeCreated>9/2/2012 3:46:36 PM</TimeCreated><Source>DpmThreadPool.cs</Source><Line>163</Line><HasError>True</HasError></__System><ExceptionType>ArgumentOutOfRangeException</ExceptionType><ExceptionMessage>Index
    was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index</ExceptionMessage><ExceptionDetails>System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at System.Collections.Generic.List`1.get_Item(Int32 index)
       at Microsoft.Internal.EnterpriseStorage.Dls.UI.CreateRecoveryPointDialog.InitializeForTapeRecoveryPoint()
       at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
       at System.Windows.Forms.ComboBox.WndProc(Message&amp; m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</ExceptionDetails></FatalServiceError>
    the message resource is present but the message is not found in the string/message table
    As this appears to be a problem with just these protection groups (I am able to take tape backups of others without a problem) I decided I would try to remove the group, retain the data and re-create it.  When I right click on the group and attempt
    to stop protection of the group or modify the protection group, the MMC crashes with the same error above.
    One protection group is backing up and Exchange 2010 Archive Database, the other, Lync 2010 SQL Databases (and covers 2 different servers).
    Does anybody have any suggestions on how I can get these protection groups behaving as they should and working again?
    DPM is 2012 RTM running on a Windows Server 2008 R2 SP1 Enterprise physical server.  The servers being protected are running Windows Server 2008 R2 SP1 Standard, the Exchange one is virtual (running on Hyper-V), Lync, one physical, one virtual (also running
    on Hyper-V).

    Hi 
    First of all verify that below services are running and also check which user account is uses for running the DPM and SQL services.
    DPM 
    DPM Replication Agent 
    SQLAgent$MS$DPM2007$ 
    MSSQL$MS$DPM2007$ 
    Virtual Disk Service 
    Volume Shadow Copy
    Thanks and Regards Deepak

  • Axis Type Mapping problem,please help!!!

    i want to try out the encoding subsystem of axis,so i write an interface like this:
    public interface BookStore {
        public Book[] getAllBooks();
    }I use the Java2WSDL to generate the wsdl file and WSDL2Java to generate the client/server side bindings ,of course i implemented the BookStoreSOAPBindingImpl class,then use the deploy.wsdd file to deploy the service to axis.the deploy.wsdd is like this:
    <!-- Use this file to deploy some handlers/chains and services -->
    <!-- Two ways to do this: -->
    <!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
    <!-- after the axis server is running -->
    <!-- or -->
    <!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
    <!-- from the same directory that the Axis engine runs -->
    <deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <!-- Services from BookStoreService WSDL service -->
    <service name="BookStore" provider="java:RPC" style="rpc" use="encoded">
    <parameter name="wsdlTargetNamespace" value="urn:bookstore"/>
    <parameter name="wsdlServiceElement" value="BookStoreService"/>
    <parameter name="wsdlServicePort" value="BookStore"/>
    <parameter name="className" value="axis.typemapping.collection.BookStoreSoapBindingSkeleton"/>
    <parameter name="wsdlPortType" value="BookStore"/>
    <parameter name="typeMappingVersion" value="1.2"/>
    <parameter name="allowedMethods" value="*"/>
    <typeMapping
    xmlns:ns="urn:bookstore"
    qname="ns:Book"
    type="java:axis.typemapping.collection.Book"
    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    />
    <typeMapping
    xmlns:ns="urn:bookstore"
    qname="ns:ArrayOfBook"
    type="java:axis.typemapping.collection.Book[]"
    serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
    deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    />
    </service>
    </deployment>
    As you could see, the necessary ser/deser factories are declared.
    and i checked the http://locahost:8080/axis page and found the service is just right there in the list.
    Then i wrote the client like this:
    import axis.typemapping.collection.*;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    public class Client
        public static void main(String [] args)
            try {     
                String endpointURL ="http://localhost:8080/axis/services/BookStore";
                String textToSend;
                Service  service = new Service();
                Call     call    = (Call) service.createCall();
                call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
                call.setOperationName( new QName("urn:bookstore", "getAllBooks") );
                Object[] ret =(Object[])call.invoke( new Object[] {  } );
                System.out.println("book name:"+(Book)ret[0]);
                System.out.println("book name:"+(Book)ret[1]);
            } catch (Exception e) {
                System.err.println(e.toString());
    }But when i execute the client i got the following exception:
    org.xml.sax.SAXException: No deserializer defined for array type {urn:bookstore}
    BookAs you can see,it is the problem that the Book[] can't be deserialized!
    but in the deploy.wsdd the deserializer is declared,so what i have missed?and how to solve this problem please?
    best regards:)

    Some systems are fussy about the method names and some require indexed accessors for array items. I would suggest starting with an implementation like
    public class BookStore {
        private Book[] books = ...;
        public Book[] getBooks() {return books};
        public void setBooks(Book[] books) {this.books = books};
        public Book getBooks(int j) {return books[j]};
        public void setBooks(Book book, int j) {this.books[j] = book};
    }-- Frank

  • SOAP error in SL4 app

    I have a Silverlight 4 app that uses SOAP services to get data from a SQL db.
    It worked fine on a windows 2003 server with IIS 6.
    I am trying to move the app to a Windows 2008 Server with IIS 7.
    When I try to run the app on the 2008 server I get the following error as indicated through fiddler:
    <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:body><soap:fault><faultcode>soap:Server</faultcode>
    <faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at
    System.ThrowHelper.ThrowArgumentOutOfRangeException() at System.SZArrayHelper.get_Item[T](Int32 index) at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1 source, Int32 index) at NuclearComplianceTracking.Web.NuclearDataService.GetEID() at NuclearComplianceTracking.Web.NuclearDataService.ValidateSession()
    --- End of inner exception stack trace ---</faultstring> </soap:fault></soap:body></soap:envelope>
    What could be causing this error on the 2008 server? Is there a setting somewhere in IIS 7 that I need to change/set? Any help would be greatly appreciated.

    Hi,
    Do the simple basic steps like creating virtual application pointing to the Silverlight hosting path.
     Then be sure that, the following MIME types are already available in your IIS Server.
     .xap application/x-silverlight-app
     .xaml application/xaml+xml
     .xbap application/x-ms-xbap
     If not, just follow the below link to configure your IIS to support the above MIME Types for Silverlight application.
    http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/
    Best Regards,
    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.

Maybe you are looking for