uCommerce Installation Error for Umbraco 7 - c#

Using Umbraco version 7.1.4 assembly: 1.0.5261.28127
Download install package from ucommerce.net - uCommerce-for-Umbraco7-6.6.2.15058.zip
Attempted to install multiple times. First (10+) times that database was on Azure. The install doesn't "error" out, but I would suspect that I would have more database tables created in the database that I have:
The installation created an icon in the backoffice, uCommerce. However, when I click on it, I receive this error:
Server error: Contact administrator, see log for full details.
Failed to retrieve data for application tree uCommerce
In my log file:
ERROR NHibernate.AdoNet.AbstractBatcher - Could not execute query: select user0_.UserId as UserId100_, user0_.ExternalId as ExternalId100_ from uCommerce_User user0_ where user0_.ExternalId=#p0
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'uCommerce_User'.
I found this link, Invalid object name 'uCommerce_User', which suggested to bring the database off of Azure.
I duplicated the database from Azure to my local, and changed the connection string. I browsed to the local instance to make sure that the connection string was working. Attempted to re-install another (10+) times, and still receive the same error when clicking on the uCommerce icon in the Umbraco backoffice.
It's obvious that I do not have uCommerce_User table created, as all the tables that were created from the installation are in the image above. I attempted to run all 128 sql files from the installation folder in the package, but after the 4th script I began to receive constrant errors.
I have full rights to create tables, and do not know why it is erroring out. Anyone else have/had this issue?
Apprec -

I removed all constraints from the Azure db regarding uCommerce tables, then deleted the uCommerce tables, and THEN re-ran all 130 sql scripts, and it installed OK. Now the uCommerce section in Umbraco is loading.

Related

MongoDB :Auth mechanism not specified Error for specific Project

We running 2 web .net project on same Pc and connecting to same Mongod server .
first and second project connect to same database.
First project with authorization connection string working fine without connection issue
but Second project with same authorization string giving Auth mechanism not specified error
if I specified any auth mechanism then it giving
Unsupported MongoAuthenticationMechanism SCRAM-SHA-1 error
This is happen only for second project , not issue with first project
I am sure that
both mongod server and shell version match
same connection string for both
but why it giving issue for second project only. what would be possible project level issue? any idea.
Please help for this
Resolved this issue, MongoDb DLL issue which is different for both projected. Used one which is working for both.

Visual Studio - Failed to link MySql database table to DataSet

When I try to drag a MySQL table to a DataSet after successfully adding a connection to a database in Server Explorer, I receive two error messages, one after the other:
"Some updating commands could not be generated automatically. The database returned the following error: Unexpected error."
"Mouse drag operation failed. Could not retrieve schema information for table or view."
Based on answers for similiar problems, I reinstalled 'MySqlConnector/Net' and 'MySql for Visual Studio', and the same problem persists. I would like to know what is going wrong.
I found the solution. After hours and hours of tinkering I found out that the current versions of MySql-for-visual-studio and MySqlConnector/Net have a bug, which can only be fixed by unninstalling those and installing MySQL-for-visual-studio-1.2.6.msi and MySqlConnector-6.9.8.msi, exactly in this order.
This worked, except I had to install 1.2.7 before I could get MYSQL to show up as an option as data provider.
in my case the error statement was "you have a usable connection already" rather than "Unexpected Error" when adding a table as a data source, the above solution with MySql for VS 1.2.7 and MySql .net connector 6.9.8 worked for me as well. these need to be installed in the exact order as mentioned above. I'm using VS2017 15.9.11.

ASP.NET Core 2 Migrations don't work on new machine with empty database

I created a ASP.NET Core 2 project, created some migrations along the way, and pushed the code up to a repository.
Today, I pulled the code to another computer I have for development, the database was obviously not created on the new machine so I created a empty database locally to match the connection string.
Now, when trying to run the code "dotnet ef database update" I get this error:
An error occurred while calling method 'BuildWebHost' on class
'Program'. Continuing without the application service provider. Error:
One or more errors occurred. (Invalid object name 'AspNetUsers'.)
Unable to create an object of type 'AppDbContext'. Add an
implementation of 'IDesignTimeDbContextFactory' to the
project, or see https://go.microsoft.com/fwlink/?linkid=851728 for
additional patterns supported at design time.
Please keep in mind that any "dotnet ef" command I run I have the same error, I tried deleting all the migrations and creating a new one using the "dotnet ef migrations add InitialDb" command, but I still get this error.
I am using Identity in my project and I believe it has to do with this error: (Invalid object name 'AspNetUsers'.)
The commands run without any problem on the machine I initially started to develop the application.
I tried Update-Database from PM with the same result.
Here is an image illustrating the problem:
Thanks in advance.
I found the problem, I had a seeder in the Startup class that was seeding an admin user in case it did not exist.
Because the table did not exist the seeder was failing on each command because it was in the Startup class and was executing all the time.
This issue can be closed.

Error in accessing local db after deploying my application in different pc

I have a C# application which accesses a local auto-named database like DB_Users.mdf to pull out user connection details.
My connection string is:
Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\DB_Users.mdf;Integrated Security=True
When I deploy this application on a laptop, I get an error like this
The database"C:\ProgramFiles(x86)\ISTL\PCArchieSetup|DB_USEr.MDF" can't be opened because itis version 852 ,the Server support version 782 and earlier.Couldn't open new database "C:\programfiles\IstL\PcArchie\DB_users.mdf"Create database is aborted.An attempt to attach an auto-named database for file "C:\programfiles\IstL\PcArchie\DB_users.mdf" failed. A database with the same name exist or specific file cannot be opened on UNC share
Initially, I thought this VS version problem. So I updated to VS community 2015. But still getting the same error. I suspect the file location it's trying to access is the problem. But don't know how to resolve it. Can you share your thoughts on this? Thanks in advance for your help.

Unable to find requested .Net framework data provider. It may not be installed

I am using VS2010 Express and trying to create a new connection with the help of server explorer. i selected the server name and windows authentication.
After it i mentioned the name of database to be connected with and tested connection successfully but as i click on ok it shows me error
"Unable to find requested .Net framework data provider.It may not be installed"
i have all the required dll's in my reference of project such as system.data,system.data.entity but still it is giving error somebody please help me.
It's probably your config file...Check your config files for self terminating nodes.

Categories