in

Community Blogs

Blogs of different SQL/Developers Community Members

This Blog

Syndication

DamirDobric

kolovoz 2011 - Posts

  • Add Service reference does not create expected operations


    When adding the service reference to some WCF based service, it can happen that generated reference does not contain any or some of operations. To illustrate this take a look on following contract definition.

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]

    [ServiceContractAttribute(Namespace="http://schemas... /", ConfigurationName="ServiceReference1.MyService")]

    public interface IMyService

    {

           

     [OperationContractAttribute(Action="http://schemas/MyOperation”, ReplyAction="*")]

           OperationResponse MyOperation(OperationRequest request);

    }

    The services IMyservice defines the operation with name MyOperation. If you try to add the service reference to this service, the reference will be created, but without operation.

    The problem is in definition of Reply Action attribute, which is defined for operation. In this case the action is defined as:

    ReplyAction="*"

    To workaround the problem replace the “*” with “”.

    Finally the operation contract should look like:

    [OperationContractAttribute(Action="http://schemas/MyOperation”, ReplyAction="")]

    OperationResponse MyOperation(OperationRequest request);


    This issue happens when you create the contract definition from WSDL and then create the service from created contract definition.

    Posted kol 30 2011, 06:25 by anonymous
    Filed under:
  • Unblock referenced assemblies

    When moving you assemblies from place to place it can happen that the assembly become marked by Windows as “unsafe” one. In this case the assembly will fail the build process with following error:

    Error    1    Could not load the assembly file:///C:\Temp\blabla.dll. This assembly may have been downloaded from the Web.  If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information.   

    To make this working, locate the assembly on the local disk where it is referenced from, open file properties and unlock it:

    image

    After unblock it should look like:

    image

    Posted kol 17 2011, 11:51 by anonymous
    Filed under:
  • High number of applications in one pool

    Today I have reached my personal limit of number of applications hosted in one IIS pool.

    image

    If you think it is good to share a bit better applications across pools, you have a right. But the picture above shows just a snapshot of more than 25 pools, 60 services etc.
    And next picture shows how does this look like beyond the hub:

    image

    Smile

    Posted kol 17 2011, 11:16 by anonymous
    Filed under:
  • Error while updating WP7 App

    I wanted to update the APP which has been published on the market at the early days of Windows Phone App Hub.
    Unfortunately the application has been declined by reviewers with following error:

    “2002 – Localized Title is missing”

    So after trying to find out what the problem could be, I have given up. I decided to just submit the same package and if necessary over and over again until some better error description comes up.
    Likely, the same package has now failed immediately with some new error:

    Error 1047: An update cannot support fewer languages than the previous app instance supported.

    This is cool, now I have two descriptions for the same problem. After I have spent a while again (more time than to write the app) I decided to do following.
    In the AssemblyInfo.cs there is an attribut which defines the neutral language

    [assembly: NeutralResourcesLanguageAttribute("en-US")]

    This one from the beginning in my app, but now it causes the submission error.  To workaround the problem, I changed it to

    [assembly: NeutralResourcesLanguageAttribute("en")]

    Submission has been successfully completed.

    Feedback to team:
    Hi guys, it would be helpful to provide the list of all submission errors with detailed description of required actions.
    Honestly, both messages have nothing to do with reality and productivity.

    Smile

Copyright of SQL/Developers Community
Powered by Community Server (Commercial Edition), by Telligent Systems