locked
Does the Host Server need the new libs or can I deploy them? RRS feed

  • Question

  • I just installed the Release of ADO.NET Data Services to my development system and swapped out the dll references from CTP2 to the Release on my data service project.  It works great on my local machine, but when I publish to my IIS server (which has only the original .NET 3.5 SP1 install) the service shows me no entities. 

    I only see something like this:

    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    <service xml:base="http://blah.com/blah.svc/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
      <workspace>
        <atom:title>Default</atom:title>
      </workspace>
    </service>
    


    Do I need to update the host server with the KB976126 update for this to work?  I have tried to change the dll references to copy local and I see them published to the bin folder, but still no go.  This reference was the only thing I changed on my service so I suspect the server Must be updated, especially since the reference now uses the same name as the one in the GAC on the server System. versus Microsoft.  Is there a way perhaps to make the service use the DLLs that are copied to the server bin folder?  Any Thoughts?  Am I totally on the wrong track? 

    -Valkyrie-MT
    • Edited by Valkyrie-MT3 Thursday, February 25, 2010 9:45 PM
    Thursday, February 25, 2010 6:40 PM

Answers

  • I solved my problem by installing the final version of WCF Data Services on my development computer, but used the references for CTP2 for the WCF Data Service and libs for CTP3 for the Silverlight client.  Since the proxy generation of the release is compatible with the CTP3 silverlight client, it works.  So, I deploy CTP2 to my server, allowing the server to operate without needing any patches or hotfixes.  It's a mess to keep straight, but it works.  In the end, I believe MS should have incremented the version in some way to allow a local (newer) version to override the original in the GAC.  I would like to see this fixed in the future. 

    -Valkyrie-MT

    Tuesday, March 30, 2010 9:22 PM

All replies

  • Hi,
     Can you check the InitializeService method in your data service and see if you are exposing any sets ?
     Look for this line : config.SetEntitySetAccessRights  and confirm if you have any sets exposed via the Data Service.


    Phani Raj Astoria http://blogs.msdn.com/PhaniRaj
    Thursday, February 25, 2010 8:45 PM
    Moderator
  • I have the access opened up all the way for development.  I have pasted the method below.  I expected to be able to override the host server version in the GAC by setting the Reference Properties to Copy Local = True and Specific Version = True, but this appears not to work because the version in Visual Studio 2008 appears as 3.5.0.0 which is the same as the GAC version.  File Version is incremented, but reference version is not.  Also, like I mentioned before, this service works locally, but does not on my host system which does not have the update installed. 

            // This method is called only once to initialize service-wide policies.
            public static void InitializeService(DataServiceConfiguration config)
            {
                config.SetEntitySetAccessRule("*", EntitySetRights.All);
                config.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
    
    
                config.DataServiceBehavior.AcceptCountRequests = true;
                config.DataServiceBehavior.AcceptProjectionRequests = true;
    
                config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
    
                config.UseVerboseErrors = true;
            }
    
    

    -Valkyrie-MT
    Thursday, February 25, 2010 9:12 PM
  • I solved my problem by installing the final version of WCF Data Services on my development computer, but used the references for CTP2 for the WCF Data Service and libs for CTP3 for the Silverlight client.  Since the proxy generation of the release is compatible with the CTP3 silverlight client, it works.  So, I deploy CTP2 to my server, allowing the server to operate without needing any patches or hotfixes.  It's a mess to keep straight, but it works.  In the end, I believe MS should have incremented the version in some way to allow a local (newer) version to override the original in the GAC.  I would like to see this fixed in the future. 

    -Valkyrie-MT

    Tuesday, March 30, 2010 9:22 PM