Request of help
Hello dude, I firstly want to thank you because of your good work, it's awesome and it would be awesome to "update" the solution to the last version of visual studio. However i just needed some help to set the things up and run this website on my server... can you give me some more instructions?
hey, can you please provide the setup instruction. It would be a great help
I have come back after seeing some of these posts and would be more than happy to continue working on this project. If there are any other projects offering similar functionality as this, please show them to me!!
Setup mainly requires editing the database connection strings in Web.config. First create a database on your db server with the name AnarkRE and AnarkRE_dev for debug. Then, after updating the connection strings to point to this database, open the Models/SiteDB.edmx in Visual Studio. Right click -> Generate database from model.
This will create a window with the required SQL code to create the database. Simply copy the code and paste into your database, or save and load the generated .sql file into your database.
After that's done, the homepage should load without errors.
But before any of the functionality will work you need to input a working SMTP server in Globals.cs:
var loginInfo = new NetworkCredential("username", "password"); var msg = new MailMessage(); var smtpClient = new SmtpClient("email.server.tld", 465);
Now the site should be fully functional and you can login with the user "admin" password "admin". (The code that does this is in Filters/InitializeSimpleMembershipAttribute.cs) This admin account will give you full access to all the features of the site; you should definitely change the password before publishing. It will also generate a regular user test account user "default" password "temp123!".
One last note:
The site will try and fetch the current price of bitcoin from a web API (functionality in Bitcoin/BitcoinPriceData.cs). If it cannot do this at least once, the page will not be able to load at all. So make sure you are able to access the internet, or if you have a firewall be sure to allow access to all the web services located in BitcoinPriceData.cs
Please let me know if you have any more questions or need any further assistance, I now respond in a timely manner :)
Thanks for your interest!
There were major bugs in two files "AuthConfig.cs" and "InitializeSimpleMembershipAttribute.cs" that would stop anybody from being able to run this.
The problem was that the .edmx model uses "Users" for its user table (Which I told you to copy to SQL) and those files were trying to create the membership table using the table "UserProfile" which obviously wasn't there. So nobody could get the thing to work. I am so sorry!
It should now correctly initialize the SimpleMembership tables using the correct table name. And that is done on Home/Index with the [InitializeSimpleMembershipAttribute]. After you have run that once YOU CAN REMOVE IT FOREVER.
Please try giving this project another go. Sorry for the awful bug.
Also there was a foreign key relationship that prevented users from being added in the edmx file which I have now removed. So when you generate your db from the edmx file everything will work properly, just update your connection strings and add a DB user/owner.