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
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,308 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,183 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,496 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 Answers by the question author, which helps users to know the answer solved the author's problem.