I tried deleting the .sou file and restarted the studio it has not solved the problem,I am trying to use two script components,once i delete the script that i added newly the previous script present in it also doesnot run, I have to close the studio and then reopen the solution again when i do that it works, but its not allowing me to add a new script, I even tried adding the method in a single script and tried that could also not resolve the problem, is there any problem with the script component ?
What build are you running? What I have always been told to do by GCS is to create a simple solution with only the component causing the issue in it. If that still results in the issue I would recommend creating a SR or moving to a later issue to see if that resolves the issue.
If you include your script code in a C# app, can you build it?
This would require a SR I believe. Someone needs to look directly at your solution. Do try to create a simple solution with just your script and a single automation. If it runs, then most likely it is other automation code causing the issue.