Can´t login to Umbraco 7.0.3 - asp.net

I have developed a new website in Umbraco 7.0.3, and everything works when I run locally at me. But when I run the website to my hosting, I can´t log in to Umbraco. When I typed in my login and password I get kicked back to the login page with the message: Session timed out. log in below.
Umbraco 7.0.3
SQL CE ( know it is not optimal to run sql ce but that's just me working on the website and it so easy to transfer the website to the web site without having to think about the database)
.NET 4.5
I don´t now if this has something to do with this but I get this errormessage when I post my contact form, that works fine on my local machine:
Error occurred during a cryptographic operation.
Thanks,
Jonas

Can you try upgrading to Umbraco 7.1.1 and see if the problem persists?
I had a similar issue on the initial versions of v7 but its working great in the later versions.

The hosting company had set up the environment wrong, so when a technician in India reinstalled the website it solved the problem. Thanks everyone!

Related

ASP.NET Core Runtime 3.1.9

Morning All
I am hosting my website on IIS , the website was built using the react template. But I have ran into a problem. When using localhost my webapp worked a charm, i could interact with the database and life was good. But now ive moved it over to IIS Im no longer able to pull data in from the database or interact with the db.
I think the problem may be the fact that IIS is running on a different server to my local machine. I have the ASP Core runtime installed on my local machine but not on the server where IIS is situated.
Can someone just confirm to me that I do require ASP Core runtime to be installed on the IIS server also?
Im not able to test things out until tomorrow otherwise I would find out for my self. Apologies, im basically a beginner with IIS and ASP
Thanks
If you are facing troubles with the database connection and not with your API endpoints could be network/proxy/firewall stuff. But if you're not able to deploy your API to IIS maybe could be that you're missing the Net Core bundle. For more information check the link below:
https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-3.1.9-windows-hosting-bundle-installer
Yes, you are required to have the ASP.NET Core runtime installed if you plan on running asp.net-core applications on it.

Umbraco forces me to update Umbraco version on localhost

I´m trying to start a project I pulled from a colleague. No errors, no visible issue in the project.
The project starts without problems, but immediately force me to login to Umbraco. When I enter credentials for the Admin I am returned to a view that is forcing me to upgrade Umbraco version, something I do not want to do since the project is live on the Umbraco I´m currently on.
I have worked with Umbraco before on several project and never experienced this issue.
The project is running fine on my colleagues computer, connected to the same umbraco database. He has no changes that are not committed to the repository I´m pulling the project from.
Any ideas what might be causing this situation?
Umbraco v6.2.6 (Assembly version: 1.0.5906.18846)
Thanks and best regards, Martin
Check that the version of Umbraco in the core DLLs matches the one that's in the "umbracoConfigurationStatus" appSettings key in your web.config file. If they're different, it'll try and get you to upgrade. Compare against your colleagues machine as well to see if there's a difference between what's on his machine and yours.
You get the upgrade message when Umbraco detects a mismatch between the version it's running and what the web.config file says the site is running.

Can't log into ASP.NET MVC site once on IIS

I finally got my ASP.NET MVC application hosted on my local Windows/IIS server. I went to the login page but when I try to log in it says,
Error:
An error occurred while processing your request
This is fairly non-descript...
My gut feeling is that when I did the web deploy, I didn't deploy the localdb(?) where the users' credentials are stored. Before I try to re-deploy the entire app, I'd like to see if anyone can offer some guidance. Am I on the right track? Are there other possible causes/solutions I should investigate?
I'm using the default registration/login system that is in the project to start with, and it woks just fine in VS. I did a regular web deploy to my IIS server, and the site works just fine until you go to log in.
Fixed: This issue was caused (as suspected) by the inaccessibility of the LocalDB where all the users' credentials are stored. VS uses this light DB instead of making you install SQL Express or another alternative (much like IIS Express works better for debugging than full IIS). When I push my application to IIS from VS, the database wasn't connecting. I eventually found this other SO question, and the top answer fixed my issue.
How to deploy ASP.NET MVC 4 application using localDB to local IIS on Windows 7?
This will solve the issue, but there is a lot of conflict on the web as to whether or not it is ok to use LocalDB in production, so if you have a lot riding on your project you might want to take a look at that. For my purpose, LocalDB is just fine, so this solved the issue. Thank you to all who responded to my (admittedly) broad question. I'm sure this will be a useful thread for others with the same issue.

Cannot open database "StarterSite" requested by login

I was working with WebMatrix ASP.NET Web Pages and SQL Server 2008. It was going great, and then I just installed windows 8. Then I re installed WebMatrix (sql, iis was installed with it) via Web Platform Installer. Now I am not able to use any of my Databases, I have checked in the WebMatrix Database workspace, and the database isn't loading, the error I get is
"Cannot open Database "StarterSite" requested by the login. Login failed for user 'sa'".
What I tried: I have Googled alot for this, tried what was told. I tried to repair the WebMatrix from control panel, I reinstalled SQL Server 2008. In the WebMatrix Site workspace, there was an error .NET Framework 2.0 not installed! I tried to install it. But still the same issue is being provided everywhere.
I have also replaced the files that I had while I was using windows 7. They are in the place where they belong. But the issue is still there.
Why I am here: I am here, because I have tried Google and I have also tried to post my own question on forums.asp.net. But everytime I did not succeed, so I tried to get some help from here. I have also tried reading some question posted here too. But they are not helping me out.
My Question: Where will I find the connection settings for my website's databases. Is it in the web.config? Or is it somewhere in the Microsoft SQL folder?
Line in error:
WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);
Stack Trace is giving this exception:
[SqlException (0x80131904): Cannot open database "StarterSite" requested by the login. The login failed.
Login failed for user 'sa'.]
The issue was with the files of SQL Server. It was not fully installed and the Login was not successfull in Windows 8 as SQL Server SP2 doesnot work in Windows 8. I was told to install SQL Server SP3 which is compatible with Windows 8.
I have tried to post the question on IIS forums, but never got time to ask whether SQL Server Sp2 is going to get some passage for Windows 8 too or not. Well I am hoping for best! :)
Try to open the site from a newly installed browser. I think the problem is that a cookie stucked in your browser and it tries to login with your Windows account.
If it does not work, comment the error line and try it again.

Compiler error when browsing a deployed asp.net website

CS0016 compiler error when browsing a deployed asp.net website IIS 7.5 WIN7
I met this problem when trying to browse my website. I searched a lot on the Internet, but I could not make it even when I gave full control to everyone in the security tab of several temp folders. Any ideas on this problem?
I finally resolved this issue by using cmd to uninstall and install asp.net in IIS7.5. Hope this will help others.

Resources