This is my code: try: import clr, sys from xml.dom.minidom import parse import datetime sys.path.append("C:\\teest") clr.AddReference("TCdll") from ClassLibrary1 import Class1 cl = Class1() except ( ImportError ) : print "Module may not be existing " My TCdll is in C:\test. I just gave it as C:\teest to know the error. Exception is this: Traceback (most recent call last): File "C:/Python25/13thjan/PSE.py", line 8, in <module> clr.AddReference("TCdll") FileNotFoundException: Unable to find assembly 'TCdll'. at Python.Runtime.CLRModule.AddReference(String name) How to handle this exception? Continue reading...