Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAll of a sudden, I can`t compile anymoreAll of a sudden, I can`t compile anymore
Previous
 
Next
New Post
3/27/2012 6:08 AM
 

I did not enable Log Buffer in Settings... At least, as far as I know...

If I query the HostSettings table for LogBuffer entries I get the following:

 SELECT *
  FROM [DotNetNuke].[dbo].[HostSettings]
 WHERE SettingName LIKE '%LogBuffer' 

SettingName   SettingValue    SettingIsSecure    CreatedByUserID    
EventLogBuffer    N        0        -1        
SiteLogBuffer    1        0        -1        

CreatedOnDate        LastModifiedByUserID    LastModifiedOnDate
2012-01-27 11:57:50.870    -1            2012-01-27 11:57:50.870
2012-01-27 11:57:50.923    -1            2012-01-27 11:57:50.923

 Does this give you any clue?

 Thanks in advance,

Dani

 

 
New Post
3/28/2012 2:08 PM
 

I thought I could do the following if it makes sense to you...:

- Create a new folder in my inetpub\wwwroot folder and unompress there the dotnetnuke_community_06.01.02_install.zip file I downloaded.

- Set the right permissions and create a virtual directory in IIS that points to that folder.

 - Execute the Website from Visual Studio. It will show the database creation page. Create it.

- At this point, I should be able to login to the portal. Now... what should I do to try to use the original database / modules I has created?

 Thanks in advance.

 
New Post
4/2/2012 1:58 PM
 

I created a new website and a new database. Now DNN works fine.

Is there a way I can import the database I used  to use in the old project? Will it work If I just restore a copy of the old DB on top of the new one?maybe I sould only move some tables/records?

Thank you very much,

Dani Carbonell

 
New Post
4/3/2012 7:55 AM
 

I connected to the old database from my newky created website. Something strange happened, though:

- I cannot login as host. It doesn't accept the password. I read an article where you told about how to reset host's password using another account, so I created a new account, gave it a known password, and then executed the following SQL sentence:

UPDATE aspnet_membership
  SET Password = (SELECT password
                     FROM aspnet_membership AM
                      INNER JOIN aspnet_Users AU ON AM.UserId = AU.UserId
                     WHERE UserName = '<new user>')
 WHERE UserId = (SELECT UserId FROM aspnet_Users WHERE UserName = 'host')

... but I still can't login as host.

On the other hand, I connected to my DD with thw new user and I saw my images have disappeared.

Could anyone please give mew some advice?

 Thanks in advance,

 Daniel Carbonell

 
New Post
4/3/2012 10:59 AM
 
I found a script by Tony Ullemans that helped me copy the password from one user to the other. Now I can log in as host no problem. The idea is to create a user, give it a known password, and then copy this same password to the user whose password is unknown.

I am still working on trying to incorporate the module I had defined, but I am sending the T-SQL script I used in case it could help someone.

Daniel Carbonell

 /*
-- Database Utility ---------------------------------------------------------------------------
Description : Reset a Password in a DotNetNuke database
Author : Tony Tullemans
Date Created : 18.04.2007
Note/s : Before you run this script you must know the UserName and Password of another
registered DNN user in the database you wish to affect.
-----------------------------------------------------------------------------------------------
*/

DECLARE @databaseName VARCHAR(128)
SELECT @databaseName = DB_NAME()

PRINT 'RESET PASSWORD IN DATABASE : ' + @databaseName
PRINT '-----------------------------' + REPLICATE('-', DATALENGTH(@databaseName ));

DECLARE @knownUserName NVARCHAR(128)
DECLARE @lostUserName NVARCHAR(128)
DECLARE @lostUserId NVARCHAR(128)
DECLARE @knownPassword NVARCHAR(128)
DECLARE @knownSalt NVARCHAR(128)

SET @knownUserName =  'KNOWNUSERNAME'
SET @lostUserName = 'LOSTUSERNAME'

SELECT @knownPassword = Password, @knownSalt = PasswordSalt
FROM aspnet_Membership
INNER JOIN aspnet_users
ON aspnet_Membership.UserId = aspnet_users.UserId
where UserName = @knownUserName;

PRINT ''
PRINT 'Known Password for "' + @knownUserName + '" is : ' + @knownPassword
PRINT 'Known Password Salt for "' + @knownUserName + '" is : ' + @knownSalt

SELECT @lostUserId = aspnet_Membership.UserId
FROM aspnet_Membership
INNER JOIN aspnet_users
ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName = @lostUserName;

PRINT ''
PRINT 'UserID for "' + @lostUserName + '" is : ' + @lostUserId
PRINT ''

IF (DATALENGTH(@lostUserName) <= 0 OR @lostUserName IS NULL)
PRINT 'Invalid Lost User Name ' + @lostUserName
ELSE BEGIN
IF (DATALENGTH(@knownUserName) <= 0 OR @knownUserName IS NULL)
PRINT 'Invalid Lost User Name ' + @lostUserName
ELSE BEGIN
IF (DATALENGTH(@knownPassword) <= 0 OR @knownPassword IS NULL)
PRINT 'Invalid Known Password ' + @knownPassword
ELSE BEGIN
IF (DATALENGTH(@knownSalt) <= 0 OR @knownSalt IS NULL)
PRINT 'Invalid Known Salt ' + @knownSalt
ELSE BEGIN
PRINT ''
PRINT 'BEFORE'
SELECT left(UserName, 12) as UserName, aspnet_Membership.UserId, left(Email, 20) as Email, Password, PasswordSalt
FROM aspnet_Membership INNER JOIN aspnet_users ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName IN ( @knownUserName, @lostUserName );
PRINT ''
PRINT 'Changing Password for User Id : "' + @lostUserId + '" to "' + @knownPassword + '"'
PRINT ''
UPDATE aspnet_Membership
SET Password = @knownPassword,
PasswordSalt = @knownSalt
-- SELECT UserId, Password, PasswordSalt
-- FROM aspnet_Membership
WHERE UserId = @lostUserId;
PRINT ''
PRINT 'AFTER'
SELECT left(UserName, 12) as UserName, aspnet_Membership.UserId, left(Email, 20) as Email, Password, PasswordSalt
FROM aspnet_Membership INNER JOIN aspnet_users ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName IN ( @knownUserName, @lostUserName );
END
END
END
END
GO

PRINT ''
PRINT ' * * * END OF SCRIPT * * *'
PRINT ''
GO
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAll of a sudden, I can`t compile anymoreAll of a sudden, I can`t compile anymore


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out