can't install dotnetnuke on windows 8 - dotnetnuke

After following the tutorial steps from this video:
https://www.youtube.com/watch?v=kOoQJDeTlJ0
and clicking on the final button to visit newly created website, I get the following error:
http://dnndev.me/Default.aspx?tabid=59&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0
I have tried it several times, and also tried following steps from some other tutorials, but the error would persist. However when I tried to install it on different computer, it worked just fine.
I found possible solution here:
Dotnetnuke Site settings PageLoadException: Object reference not set to an instance of an object
but I just don't know how to access that stored procedure that he metioned as I am new to dnn.
Can anybody help me with this please?

I would start by looking at the EventLog and Exceptions table in the database to see if you can get a more detailed error.
select * from eventlog order by logcreatedate desc
Select * from exceptions
Did you do anything else, such as create a module project, before you ran through the installation process with DNN?

Related

Install matomo in xampp

I am trying to install matomo by following the instructions in the website. But no luck, i keep on getting errors. I am using xampp to host the matomo.
First, I downloaded matomo, extracted it inside htdocs folder of my xampp. Then I go to localhost/matomo. It shows the installation welcome page. I click on Next and after a while got error "No database selected"
I researched and i read something that I need to create a config.ini.php and specify the database. And so I created a database in phpmyadmin called "matomo", then created a config.ini.php file. Then when I go to localhost/matomo, i get an error saying that matomo is already installed and that "matomo.option" doesn't exist.
Why is the matomo installation have to be this difficult? Has someone successfully did it? If you'll down vote, at least please let me know why so i can provide more information.
Ok, so after researching further, it seems after clicking Next, Matomo is already doing a system check which takes too long to complete. So the solution is to increase the max_execution_time found in xampp/php/php.ini to 90.
This will give matomo enough time to complete its process. I hope others will find this useful.

EntityFramework enable-migrations ArgumentException

I am a newby in the beautiful world of Microsoft Azure and made my first hello world website. The next step is to create a database (entityframework) but I get an exception while creating the database from PackageManagerConsole (PMC). I read a few posts on the web that explained that I need to add the startupprojectname to the PS command, but unfortunatelly that doesn't resolve my problem.
I have 2 projects in my solution.
"partyonwebsite" which is the startup project and obviously my website :).
"models" where I will design my models / entities.
In the "models" project I have the classes "User" and "UsersDb". UsersDb is the class that inherits from DbContext.
Now, when I execute the following line in PMC:
enable-migrations -StartUpProjectName "PartyOnWebsite" -ContextTypeName "Models.Users.UsersDb"
I receive the following (not very helpful) error:
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I've had a look at get-help enable-migrations and played around a bit but not a lot of luck.
Did anybody bump into the same problem? Or can you point me in the right direction to help me solve it?
Thanks a lot in advance!
Bas
Solved. If you run into the same problem, make sure that EntityFramework is setup correctly for your seperate "Models" project.
Open "Manage NuGet packages for solution" in solution explorer (right click solution in solution explorer)
Select "Installed packages"
Select "EntityFramework" and click "Manage"
Check your "Models" project (I checked both my website project and the "models" project)
Run your enable-migrations command again.
I also added a project reference from my Website project to the Models project, I don't know if that matters.
The command that successfully executed after my adjustments in NuGet:
enable-migrations -ProjectName Models -ContextTypeName Models.Users.UsersDb
Hope this answer helps another lost soldier in his path to get his first app running in Azure :).
Cheers,
Bas

Cannot publish because a project failed to build and Could not find file 'obj\x86\Debug\MyApplication.exe' Errors

I am striving to get the source of my issue but no luck. I did check almost all suggestions to fix this problem when publishing project (publishing using right-click, checked DevExpress is not installed).
-Regarding DevExpress the application have some of it's assemblies.
- Cannot publish because a project failed
- Could not find file 'obj\x86\Debug\MyApplication.exe'
I did send publishing diagnostic to the Output and get this :
Task "GenerateApplicationManifest" (TaskId:158)
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2580,9): error MSB3113: Could not find file 'obj\x86\Debug\MyApplication.exe'.
Done executing task "GenerateApplicationManifest" -- FAILED. (TaskId:158)
Done building target "GenerateApplicationManifest" in project "MyApplication.csproj" -- FAILED.: (TargetId:194)
Can someone list all things I have to check to get this issue fixed ?
I just ran into the problem today. In my particular case, it was caused by this Microsoft Windows Update.
I uninstalled that update and publish began working as it always had. This is only a temporary work around and means you should probably regenerate your keys/certificates.
Right click on you Project
Click Publish
Go to Settings Tab
Click File Publish Options
Check All the options in the tab (As seen in attached image)

intellij idea data sources doesn't see existing table in the database

intellij idea data sources doesn't see existing table in my mysql database, while Netbeans see it.
i've created a table in the database. When i create connection in intellij idea data sources, it sees my scheme, i do select it in "schemas and tables" but then i don't see it in the list.
every schema, but mine's. When i try to connect to it with netbeans or mysql workbench, it's just ok. same story with several databases, with root access, too. any table, but mine's.
what could be wrong?
i see question like mine's here, related to visual studio, no answer.
please, give a good clue
I had the same problem in IntelliJ IDEA 15.
I fixed it by right clicking the data source -> Properties -> Schemas -> Use legacy introspector.
I found the reason of problem for HSQLDB: There is IDEA bug (i have 11.0 version).
Create db with relative path (relative of MODULE), like this:
jdbc:hsqldb:file:db_file/testDBInMemory;shutdown=true;hsqldb.write_delay=‌​false;
f:\TestModule\db_file\
When added it to Data Sources, IDEA recognizes this path as relative of $IDEA_HOME$/bin folder.
f:\Program Files\JetBrains\IntelliJ IDEA 11.0\bin\db_file\
So you have two different data bases. And when JPA updated first, Data Source doesn't see update in other.
WORKAROUND:
use absolute path in file db url.
For the latecomers still experiencing this, Intellij IDEA also has the following features which might help you as they have me:
'Force Refresh' (ctrl + shift + F5): "The Force Refresh action clears the data source information from cache and loads it again from scratch."
'Forget Cached Schema' which clears the schema cache. Does require you to set which schema you want shown again.
Right click your datasource -> Diagnostics -> 'Force Refresh' or 'Forget Cached Schema'
Source: https://www.jetbrains.com/help/idea/cannot-find-a-database-object-in-the-database-tree-view.html
The answer for me was buried in a comment, so I'm posting it here. The symptom for me was seeing an error like this:
Unable to resolve table 'thetablename'
And the table name was highlighted in red.
The following fixes are all ways to trigger IntelliJ to refresh data sources:
CTRL+ALT+Y to refresh the db stuff, or
CTRL+F5, or
Click the database vertical tab on the right, expand, right-click on each DB connection and select 'Refresh'
Kudos to #ice for answering this earlier in a comment. I'm basically just elaborating and making sure this shows up as an answer.

CakePHP error: "Unable to import DataSource class .DboSource"

I was working locally on my computer on a cakephp project for 3 days. Then i had to shut off the computer. In the morning, when i turned it on, and tried to continue work, i got error:
Fatal Error (256): ConnectionManager::loadDataSource -
Unable to import DataSource class .DboSource
[CORE/cake/libs/model/connection_manager.php, line 185]
What could be the problem? I haven't changed any of the DB settings. I tried them out with a db manager and they work. I googled this in different ways, but couldn't find the answer.
Any clue would be awesomely appreciated!
Update: I noticed that if i drop the database, or change user/pass to something wrong, this error doesn't change. (..if that helps)
Since the database settings didn't matter, I figured out it was a problem in the system files in cakephp.
So I went ahead and downloaded again the same version 1.3.10 and replaced all over the cake/, plugins/, and vendors/ folders, in which I hadn't changed anything anyway. I only kept my app/ folder.
Finally it's up again.

Resources