Dymola - "Cannot assemble dsmodel.c."

Hello there, recently I used the MATLAB interface to simulate my model, but when I clicked the "Compile Model" button, Dymola said " Cannot assemble dsmodel.c. Please investigate file permissions for current directory." How can I solve the problems?