DNN - RESET PASSWORD EMAIL TOKEN ERROR - c#

I just recently installed DNN 7.2.2 and created my own website, but unfortunately the reset password token is not working. When I try the password reset link, after entering my username, I get this message: "Error as occur when defining the password, password has not been changed." Is this an issue with my site, or the DNN platform?
Environment Details:
OS: Windows server 2008 R2.
DNN versio: 7.2.2 (303).
Sql version: SQL server 2008 r2.
Event viewer shows : "Password Sent Failure".
Email template token:
"http://[Portal:URL]/default.aspx?ctl=PasswordReset&resetToken=[Membership:PasswordResetToken]"
WebConfig (authentication) :
I have already read this two tickets (they didn't resolve my problem) :
"https://dnntracker.atlassian.net/browse/DNN-4241"
"https://dnntracker.atlassian.net/browse/DNN-4787"

Get the previous DNN version (the 7.1) and copy the website\admin\Security\PasswordReset.ascx
from there. There were some changes between the versions but the 7.1 was working for sure, if you still get the error then it's something with your db.

Closed, the problem was PasswordResetTokenExpiration has set to 0.
I change it to another value and it's fine now.
How to change it:
Host Settings -> Advanced Settings -> Membership Management

Related

IRDOSession.GetFolderFromPath throws MAPI_E_FAILONEPROVIDER error while Reading public folders through Redemption.dll

I am upgrading one Console Application which is Read Outlook Public Folder.
It's working fine when I run manually. But throws exception when run through IBM Tivoli Workload Scheduler.
So tried to give inbox folder name instead of public folder name. Then it's working fine in Scheduler also. So only I get below error while try to read public folder alone
Error in IMAPISession::OpenMsgStore: MAPI_E_FAILONEPROVIDER ulVersion:
0 Error: The attempt to log on to Microsoft Exchange has failed.
Component: Microsoft Exchange Information Store ulLowLevelError: 1144
ulContext: 1298
var session = new RDOSession();
session.Logon(string.Empty, string.Empty, false, true, null, null);
session.Stores.FindExchangePublicFoldersStore();
var publicFolder = session.GetFolderFromPath(folderPath);
Public folder:
\\Public Folders - example#domain.com\All Public Folders\XXX
Folders\YYY/Object & Data\ZZZ\
Not working
Inbox folder:
\\example#domain.com\Inbox
Working
Edit: Added log and find out Exchange connection mode changing
Manual Run ExchangeConnectionMode: olCachedConnectedFull
Scheduler Run ExchangeConnectionMode: olOnline
Note: We are using Redemption.dll - 5.10
Update:
Old server Using Redemption.dll - 5.2 and Outlook 2003 with Exchange Server 2010. It's working fine with TWS also.
New server Using Redemption.dll - 5.10 and Outlook 2016 with Exchange Server 2010. But doesn't work with TWS.
Chances are the Public Folder store is not cached, so when you log under a service (scheduler), the store provider does not have the credentials to open the store.
For this issue fix we need to do two things:
Click Interactive options in TWS Jobs
Purchase Distributable version of latest Redemption.dll and use it

Error not specified sqlcese40.dll

I have deployed my application to my customer. What happens is that I've tested my app in 4 different computers and works perfectly but not in my customer computer.
I'm using .NET Framework 4.0 in my code with SQL Compact and the customer has the .NET Framework 4.7 installed. I have also, just in case, installed the SQL Compact in his computer.
When I click in my app .exe a popup error is shown with the following text:
System.Data.SqlServerCe.SqlCeException (0x80004005): Error not specified [ sqlcese40.dll ]
in System.Data.SqlServerCe.SqlCeConnection.ProcessResults(Int32 hr)
in System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
in System.Data.SqlServerCe.SqlCeConnection.Open()
in LongStoryShort.LoadAllByItems(String[] columns)
So the error occurs when connecting to database. Any clue what am I missing?
Solved.
I couldn't even uninstall the .NET Framework 4.7 in my customer PC because I was getting the error:
The cryptographic operation failed due to a local security option
setting
After looking for answers about this error I end up in the microsoft website https://support.microsoft.com/en-us/help/2715304/error-message-when-you-try-to-validate-a-copy-of-windows-the-cryptogra and did the steps on regedit like they say.
This error occurs when the 'State' value of below mentioned registry
key is incorrectly set. This value corresponds to the Internet
Explorer security setting "Check for publisher’s certificate
Revocation" and "Check for signatures on downloaded programs"
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing You can find a key with the name
‘State’. By default the values is set to – ‘23c00’ Resolution To
resolve this problem, change the registry key to a valid setting, e.g.
State = 0x00023e00 - ‘Check for publisher’s certificate Revocation’ unchecked
State = 0x00023c00 - ‘Check for publisher’s certificate Revocation’ Checked
After changing the regedit value my app started working instantly!

ASP.NET Access denied for user (using password: NO) after deploy with msbuild/msdeploy

I'm setting up ci-deployment using jenkins for multiplice ASP.NET MVC 5 EF CF application with MySQL-Database on a Windows Server 2012 R2 node. The app gets compiled first using msbuild and then published on IIS with msdeploy. ConnectionStrings will be replaced using the -setParamFile parameter, which works.
The problem: After calling the app on the target server, I get the following MySQL error:
MySql.Data.MySqlClient.MySqlException: Access denied for user 'myUser'#'myIp' (using password: NO).
The MySQL-Doc say that this means the clinent had tried to connect without password.
This is really confusing me because my ConnectionString certainly contains a password! In the Web.config from the folder of the IIS-App it looks like this:
<add name="MyContext" connectionString="Server=SERVERIP;Database=MYDBNAME;Uid=DATABASEUSER;Pwd=PWD;Convert Zero Datetime=True;" providerName="MySql.Data.MySqlClient" />
Which is valid, because the app is running fine on local debugging and a Windows Server 2012 R2 based testsystem, where I deployed the app using Web-Publishing function of Visual Studio.
I have the suspicion that my Web.config gets overwritten, but can't find out where and why. I took a look in the local Machine.config file of the target-server, but in contrast to another thread with nearly the same problem this isn't containing my ConnectionString (And I even can't imagine why this should gonna happen).

error of updating an C# web service application by accessing a URL from MS installer command "msiexec" in C# VS 2010

This question is related to my previous question.
I need to publish a C# application (that has been set up in IIS 6.0 and built in VS2010) to a desktop with win7.
I have set up IIS on my desktop well. Now I can install the application on my laptop by accessing the URL
http://myDesktopName.domain.com/MyApp
pointing to a physical location in desktop
e:\myPath\myApp\myAppService.svc
When I publish a new version of the web service, the application should get updated when I open it.
But, it gave me an error:
**the filename,directory name, or volume label syntax is incorrect**
After searching online, I found this error is normally caused by some unacccepted chars in the link. Here is the code that the msi (MS installer) needs to access and get the new version of the application.
System.Diagnostics.Process.Start("msiexec", "/favmuso \"" + myurl + "\"");
here,
myurl is http://myDesktopName.domain.com/MyApp/MyAppSetup.msi
Here, http://myDesktopName/MyApp/ is the virtual directory set in IIS 6.0 on my desktop. I can access and download it from IE in my laptop without any problems.
But, when the application notified me that a new version is available for updating the old one, I clicked the pop-up ballon on the application icon and then I got the error:
Error 123. The filename, directory name, or volume label syntax is incorrect.
If I try to access it from the C# code, I got the same error.
Then, I did a test by running
msiexec **/favmuso** http://myDesktopName.domain.com/MyApp/MyAppSetup.msi /Lv mapp_msi.log
In the log file, i found :
MSI (s) (80:DC) [18:04:33:089]: SECREPAIR: Failed to open the
file:http://myDesktopName.domain.com/mypath/\myAppSdetup (10).msi for computing its hash. Error:123
Error 123. The filename, directory name, or volume label syntax is incorrect.
Why my applcation setup file name was changed to
\myAppSdetup (10).msi
The "/favmuso" options can be found at
https://technet.microsoft.com/en-gb/library/cc759262%28v=ws.10%29.aspx#BKMK_Install
Any help would be appreciated.
thanks
So I noticed that you've asked this question elsewhere, and everyone was focused on the /favmuso piece of it.
I've been recently exeriencing this issue when trying to repair MSIs with a URL source when the original application was installed by SCCM 2012.
The workaround I found was to add a registry value at HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer. The value below causes the MSI to skip the problematic portion of the repair and move on.
Name: SecureRepairPolicy
Type: REG_DWORD
Value: 1
To be a bit safer, you look into setting the registry value to 2 and using a whitelist as described in this Microsoft article: https://support.microsoft.com/en-us/kb/2918614. (Ctrl+F "Steps to opt-out the affected programs".)

Not able to Connect to Crystal Reports 2008

I'm exporting a crystal report 2008 to pdf in C#.
The crystal report is connected to sql server 2008 using odbc.
I want to deploy this in a different system. it works if the db name is the same.
Is there a way to supply the db name dynamically. I tried
repDoc.SetDatabaseLogon(db_username, db_password,server,db);
and it fails with the error below
Logon failed.
Details: [Database Vendor Code: 18456 ]Database Connector Error: ' [Database Vendor Code: 18456 ]'Failed to open the connection.
Details: [Database Vendor Code: 18456 ]Error in File denial_completed_letters {84E1BDEF-C60B-46E1-9080-77F699692270}.rpt:
Unable to connect: incorrect log on parameters.
Details: [Database Vendor Code: 18456 ]
Good news / bad news: the bad news is that you can't use SetDatabaseLogon to change the db name. The good news is that you can use another function, ApplyLogOnInfo to do that:
http://msdn.microsoft.com/en-us/library/cc411352(v=VS.90).aspx
http://msdn.microsoft.com/en-us/library/ms226184(v=VS.90).aspx
Just get the logon info from the Table.LogOnInfo constructor, change the values, and call ApplyLogOnInfo.
Sounds like your database server isn't configured for both NT and SQL authentication.
or you can use sa user that have access over target database.
For Windows 7, try to install your application by Run as Administrator and set the run as administrator compatibility to the exe. To set Run as Administrator compatibility to the exe right click on the exe then go to properties -> compatibility, check the Run as administrator checkbox and click OK.

Categories

Resources