I found that sometimes this gets confused if you have a namespace like MyProject and a link to a service called MyService , but the code file you enter is in something like MyProject.AnotherNS . From this code file, you will need to enter MyProject.MyService to access the service, not just MyService . A super-safe way to make this always work is to use the global and type something like global::MyProject.MyService . global simply removes any implied prefixes (names) from the namespace in the code block.
source share