-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL Server 2019 Express - don't can load the assembly #19
Comments
Hello @chri-p , Thank you for reporting, we will look at it. |
Hello @chri-p , Unfortunately, everything works for SQL Express 2019 on our side. We currently have no idea how to reproduce it. If you have more info, we will be happy to look at it. Is there something special about your environment? Best Regards, Jon |
Hello Jon,
I have rent a virtual Windows Server 2019 by ipax.at for a small application.
Default configuration.
I must speak to my partner, if there had closed ports or trusts.
It helps me, if you say that works on all SQL 2019 Server Versions.
Best Regards
***@***.***
m:
+43 676 / 533 31 55
e:
***@***.******@***.***>
From: Jonathan Magnan ***@***.***>
Sent: Montag, 17. Jänner 2022 16:09
To: zzzprojects/Eval-SQL.NET ***@***.***>
Cc: Paschinger Christian | Office ***@***.***>; Mention ***@***.***>
Subject: Re: [zzzprojects/Eval-SQL.NET] SQL Server 2019 Express - don't can load the assembly (Issue #19)
Hello @chri-p<https://github.com/chri-p> ,
Unfortunately, everything works for SQL Express 2019 on our side.
We currently have no idea how to reproduce it. If you have more info, we will be happy to look at it.
Is there something special about your environment?
Best Regards,
Jon
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXKNJRT6XKGCQTS6HIARQ5TUWQWJPANCNFSM5MCXCR6A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Sure, let us know. As far as we know, it works in all versions. However, most cloud databases such as Azure SQL Database do not support SQL CLR. However, if you rent a server and have SQL Server installed, it should be supported |
Hello again, Since our last conversation, we haven't heard from you. Let me know if you need further assistance. Best regards, Jon |
Helle Jon,
sorry, I saw today, that I answered to ***@***.******@***.***>. 🤦♂️
I could to solve the problem with:
USE [myDB]
go
EXEC sp_configure 'clr enabled', 1
RECONFIGURE
ALTER DATABASE myDB SET TRUSTWORTHY ON;
EXEC sp_changedbowner 'sa'
Now, it works fine!
Best regards
Christian
***@***.***
m:
+43 676 / 533 31 55
e:
***@***.******@***.***>
From: Jonathan Magnan ***@***.***>
Sent: Dienstag, 25. Jänner 2022 15:50
To: zzzprojects/Eval-SQL.NET ***@***.***>
Cc: Paschinger Christian | Office ***@***.***>; Mention ***@***.***>
Subject: Re: [zzzprojects/Eval-SQL.NET] SQL Server 2019 Express - don't can load the assembly (Issue #19)
Hello again,
Since our last conversation, we haven't heard from you.
Let me know if you need further assistance.
Best regards,
Jon
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXKNJRRGOAMPNXDNUIDM5EDUX22CZANCNFSM5MCXCR6A>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Awesome, Yeah this line is in our install script EXEC sp_configure 'clr enabled', 1 If you need more help, just let us know Best Regards, Jon |
When I call the statement ...where SQLNET::New('Regex.IsMatch(TTel, @"([^0-9\-\+ ()\.\/\[\]\|])")').ValueString('TTel', isnull(M.TTel, '')).EvalBit() = 1 I get the mistake
Msg 10314, Level 16, State 14, Line 6
An error occurred in the Microsoft .NET Framework while trying to load assembly id 65543. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'z.expressions.sqlserver.eval, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
I made the installation to the first on an SQL Server 2019 Express. I don't get this mistake by SQL Server 2019 Standard.
How can I correct the mistake?
Best regards
The text was updated successfully, but these errors were encountered: