Link to code in App_Code from web.config

I have a type in my App_Code folder from a website project that I want to link to in Web.config. The type attribute requires me to enter the assembly name. Internets fail with what needs to be added to the assembly.

In particular,

<system.web>
    <webServices>
        <soapExtensionReflectorTypes>
            <add type="MyType, $App_Code$" />
        </soapExtensionReflectorTypes>
    </webServices>
</system.web>

What can I add to $ App_Code $ to compile it? I tried _ _ code, _code application, _Code application (Markdown does not work here: these type names do not contain spaces in them)

+3
source share
1 answer

Well, I found the answer in some obscure MSDN forum: you cannot do this in the website project for system / web services / soapExtensionReflectorTypes. Only a web application project will be enough.

0

Source: https://habr.com/ru/post/1721804/


All Articles