Share via

Could not load type system.runtime.compilerServices.CallSite

Kao Xue LIU (SP) 0 Reputation points
2023-09-11T04:59:35.6033333+00:00

system.runtime.compilerServices.CallSite error when accessing Excel by C#

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 45,181 Reputation points
    2023-09-11T14:47:48.1233333+00:00

    Hello there,

    Can you share your code so that it might for the community?

    Because the error is generic, it is difficult to detect the source.

    I suggest to check if all involved objects are valid. Another check might be trying to read the cell first.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.