Home >Web Front-end >JS Tutorial >A relatively complete collection of automation servers cannot create objects. Abnormal causes and solutions page 1/2_javascript skills
1. The automation server cannot create the object
Just run: regsvr32 scrrun.dll and it will be fine
2. The object reference is not set to an instance of the object.
1.ViewState object is Unll.
2.DateSet is empty.
3. The DataReader is empty due to sql statement or Datebase.
4. When declaring a string variable, apply the variable without assigning a null value.
5. The object is not initialized with new.
6.Session object is empty.
7. When assigning a text value to the control, the value does not exist
8. When using Request.QueryString(), the object obtained does not exist, or the initial value is not assigned when the value is empty
9. When using FindControl, the control does not exist but no preprocessing is done
Generally, the "object reference is not set to an instance of the object" error caused in C# is that the control name does not correspond to the codebehind. For beginners of programming People, and repeated definitions in coding can also cause this problem.