diff --git a/Src/Asp.Net/MySqlConnectorTest/MySqlConnectorTest.csproj b/Src/Asp.Net/MySqlConnectorTest/MySqlConnectorTest.csproj
index 4b705ff09..c2f2f70de 100644
--- a/Src/Asp.Net/MySqlConnectorTest/MySqlConnectorTest.csproj
+++ b/Src/Asp.Net/MySqlConnectorTest/MySqlConnectorTest.csproj
@@ -125,10 +125,6 @@
-
- {d131ee06-bad4-4b80-b7de-d6f539087644}
- SqlSugar.MySqlConnector
-
{489bb790-226c-4fad-8d1e-51d72a7ff8e5}
SqlSugar
diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs
index ffafae519..993197b74 100644
--- a/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs
+++ b/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs
@@ -497,7 +497,16 @@ namespace SqlSugar
{
var key = "Assembly_"+ CustomTypeName+assembly.GetHashCode();
var newAssembly = new ReflectionInoCacheService().GetOrCreate(key, () => {
- return Assembly.LoadFrom(CustomTypeName + ".dll");
+ try
+ {
+ return Assembly.LoadFrom(CustomTypeName + ".dll");
+ }
+ catch
+ {
+ var message = "Not Found " + CustomTypeName + ".dll";
+ Check.Exception(true, message);
+ return null;
+ }
});
Type type = newAssembly.GetType(className);
return type;