Dotnetnuke community installation - dotnetnuke

I have a dontnuke community website that was built long time ago. I have been task to migrate the website from windows server 2008 to 2012. I copied the website from 2008 server to 2012 and I create the website on IIS. I am getting an error on Configure Database Connection
Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 20
Number: 53
Message:

See if you can connect to the database using the data from your connection string using Sql Server Management Studio. That might give you a better clue.

Model the DNN connection string based on your SSMS credentials. Did you run SSMS on the server that runs the website? Did you verify that you can open tables and edit them?

Related

How can I install the default Microsoft SQL Server that comes with VS22?

On my PC, I messed up the default installation of the SQL Server that comes with VS22.
I managed to install SQL Server manually again, but I have to write a database class library using EF Core.
For that I have a connection string as follows:
Data Source=(localdb)\\MSSQLLOCALDB;Initial Catalog=TestDB;Integrated Security=True
I've been told that EF will create the database as needed after the name given in the connection string.
This works fine on my new laptop on which I did not touch the SQL Server. On my PC it does not work though.
What do I have to do to get the "default" installation of the SQL Server?
You can install LocalDB through the Visual Studio Installer, as part of the Data Storage and Processing workload, the ASP.NET and web development workload, or as an individual component.
The steps in Visual Studio Installer are as follows:
First select Modity, then select SQL Server Express LocalDB in Installation details. Hope it helps you.

IIS with SQLLocalDB return null on queries with error in Windows Event viewer error 528

I am developing an ASP.NET website with a SQL Server 2019 LocalDB database. I was working in Windows 10 ver:1903, but after upgrading Windows to the latest version, the website still starts, but has no connectivity to SQL Server (LocalDB).
There is a .NET exception when connecting to SQL Server, at the same time, multiple of this error will be logged in the Windows event viewer:
Source: SQLLocalDB 15.0
Event ID: 528
Windows API call WaitForMultipleObjects returned error code: 575. Windows system error message is: {Application Error}
The application was unable to start correctly (0x%lx). Click OK to close the application.
Reported at line: 3714.
This special webSite is running on Windows` full IIS. I can run other website which I am developing with IIS express and this LocalDB.
I also can see the content of all of my databases in Visual Studio`s Data tools which is connected to this LocalDB, with no problem.
I have tried: updating SQL Server 2019 LocalDB, delete and create the SQL Server LocalDB, reinstalling SQL Server 2019 LocalDB, but I still get that same error.
Can you help me with this?
Thanks in advance
I finally solved this error with re-configuring the IIS for LocalDB. It was reset by a Windows Update.
I am using IIS for LocalDB approach 1:
Changing Application Pool Identity --> Windows Account

Unable to import/deploy database to SQL Azure: "The service objective (Business/Web) specified is invalid."

I'm trying to move my databases to a newer Azure subscription. I used to simply click "Deploy to Azure" on a local database from SSMS and have it deployed to a specified Azure server. Importing/Exporting a BACPAC file also works. However, I can't seem to do any of this on the new server. I keep getting the error:
"The service objective 'Web' specified is invalid."
Googling around, I found this thread explaining the need to update the CREATE DATABASE template to accommodate Azure Databases (Azure upgrade, I'm guessing). However, the hotfix provided is specifically for SQL Server 2014 and I'm using SQL Server 2012. I checked other cumulative updates for 2012 here but found no fix for the issue.
Is there any other way I can fix this without having to upgrade to 2014?
Just to summarize my software versions:
SQL Server 2012
SQL Management Studio 11.0.2100.60
Local database: SQL Server 10.50.16000
Old Azure server: SQL Server 11.0.9230
New Azure server: SQL Server 13.0.15
You are getting this error because the latest V12 servers are not supporting the Web and Business Editions anymore. If you don't want to upgrade to SSMS 2014, you can create a V11 server and import your DB on this server. However this is only a temporary solution as Web and Business edition databases will be retired in September. At this point you will have to work with the latest tools to avoid this problem.
There is a Hotfix for it you can download and install on your machine. Please navigate to:
https://support.microsoft.com/en-gb/kb/2936603
You need to enter your email then download link will be sent to your email address. Then install it on your machine and you can see the following options:
Install the database as a Data Project into Visual Studio,
Set the target framework in the properties window to SQL Azure,
Build the project and resolve any unsupported issues.
Publish to your azure site.
I have tried the above and did not work for me - this solution worked!

Cube Deployment failed in BIDS

So I've been doing a project at my university with BIDS and a database on their servers. I've managed to back up the database and put it on my local machine.
Problem right now is I've installed SQL Server 2008 + BIDS through SQL Server 2008 Express Edition. Now I've heard it doesn't include SQL Server Analysis Service, meaning I can't deploy the cube.
I've tried deploying the project on my home computer but it gives me the error.
Error 23 The project could not be deployed to the 'my computer
name\SQLEXPRESS' server because of the following connectivity problems :
A connection cannot be made to redirector. Ensure that 'SQL Browser' service
is running. To verify or update the name of the target server, right-click on
the project in Solution Explorer, select Project Properties, click on the
Deployment tab, and then enter the name of the server.
I've checked and SQL browser service is definitely running so I'm not sure what else to try. Is there any way for me to successfully deploy the cube?
I think its authentication issue for your current user connecting to SQLEXPRESS. Try using "Runas /user:[domain]\[user] "Path to BIDS" to run BIDS as privileged user and try windows authentication.

Connect to TFS server in SQL Server Management Studio

I have a TFS project that can be found at http://machinename:8080/tfs/tfs.project
I can get to the web interface via http://machinename:8080/tfs/web.
I have SQL Server Management Studio 2008 installed with Visual Studio Team Foundation Server MSSCCI Provider and Team Explorer 2010.
However when I go to add a TFS server to the list I am presented with a very restrictive window that will only allow me to put in the server name and a port number. With that in place I am unable to connect to my TFS server can anybody offer some advice on how to get round this??
I keep getting a HTTP 404 error because it is looking at the root - http://machinename:8080
I ran into the same problem with the same exact parameters. I discovered that if you enter the full URL in the server textbox it resolves. Example: http://machinename:8080/tfs/DefaultCollection
Nothing explains this clearly.

Resources