Skip to content
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

Simple.Data “No ADO Provider Found” #405

Open
shailesh1984 opened this issue Mar 25, 2022 · 1 comment
Open

Simple.Data “No ADO Provider Found” #405

shailesh1984 opened this issue Mar 25, 2022 · 1 comment

Comments

@shailesh1984
Copy link

shailesh1984 commented Mar 25, 2022

I am getting below error when i modified to connection string.
connection string : connectionString="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DBName;Data Source=."

Sql Server 2017

Simple.Data.SimpleDataException
HResult=0x80131500
Message=No Ado Provider found.
Source=Simple.Data
StackTrace:
at Simple.Data.MefHelper.Compose[T](String contractName)
at Simple.Data.AdapterFactory.DoCreate(String adapterName, IEnumerable1 settings) at Simple.Data.CachingAdapterFactory.<>c__DisplayClass1.<Create>b__0(String _) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Simple.Data.CachingAdapterFactory.Create(String adapterName, IEnumerable1 settings)
at Simple.Data.AdapterFactory.Create(String adapterName, Object settings)
at Simple.Data.DatabaseOpener.OpenConnectionMethod(String connectionString)
at Simple.Data.DatabaseOpener.OpenConnection(String connectionString)
at Simple.Data.Database.OpenConnection(String connectionString)
at SkillsMatrix.Tests.Attributes.UsePersonAttribute..ctor() in D:\Works\SkillsMatrixTests\SkillsMatrix.Tests\Attributes\UsePersonAttribute.cs:line 23
at System.RuntimeTypeHandle.CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
at System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, Boolean inherit)
at Xunit.Sdk.XunitTestCaseRunner.GetBeforeAfterTestAttributes() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\XunitTestCaseRunner.cs:line 127
at Xunit.Sdk.XunitTestCaseRunner.RunTestAsync() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\XunitTestCaseRunner.cs:line 139
at Xunit.Sdk.TestCaseRunner`1.d__19.MoveNext() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\TestCaseRunner.cs:line 82

@jonas-stjernquist
Copy link

jonas-stjernquist commented Nov 29, 2023

I get same error, found any solution?

Update: This solution helped me
#392 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants