This forum is not used anymore. Please ask new questions to Stack Overflow: ... ort=newest (use aspnetboilerplate tag).
By bsolutions
#19543 Hi everyone,

I have a problem with the dynamic proxies. I included the dynamic proxies in my layout page:

Code: Select all<script src="~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script>

But if I start my application and call http://localhost/AbpServiceProxies/GetA ... 2374719274 I get the following error:

An unhandled exception occurred while processing the request.

ArgumentNullException: Value cannot be null.
Parameter name: key

The exception occurs in the ApiProxyScriptManager in the following method:

Code: Select allpublic string GetScript(ApiProxyGenerationOptions options)
    if (options.UseCache)
        // On this line the error occurs. It looks like the CreateCacheKey(options) returns null
        return _cache.GetOrAdd(CreateCacheKey(options), (key) => CreateScript(options));

     return _cache[CreateCacheKey(options)] = CreateScript(options);

Please help me to solve this problem. Thanks!