How to access admin site

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I'm newbie user, installed nopcommerce 2.50 in my computer with source code. The site work's fine in http://localhost/ecommerce, but: how to access admin site? How to configure the admin site?

I remember the data form that fill in the page of configuration, but i don't enter to the admin site.

I don't speak english very well, I ask all the necessary apologies.
12 years ago
Login as an administrator and you'll see the "Administration" link at the top right corner of your site.
12 years ago
thank's for your help, but I don't see the link in my site... Did I do something wrong during installation?
12 years ago
1. Could you please connect to your database, execute the following command and post the results here:
select * from CustomerRole

select * from Customer_CustomerRole_Mapping crm
join CustomerRole cr on crm.CustomerRole_Id=cr.Id
where cr.SystemName = N'Administrators'

select * from PermissionRecord_Role_Mapping prrm
join PermissionRecord pr on prrm.PermissionRecord_Id = pr.Id
where pr.SystemName = N'AccessAdminPanel'


2. Do you have ASP.NET MVC 4 installed?
3. Are you using Visual Studio to run the solution (source code version)? If yes, what version? Or are you using "no source code" version?
12 years ago
1.-
Customer_Id|CustomerRole_Id|Id|Name|FreeShipping|TaxExempt  |Active|IsSystemRole|SystemName
=================================================================
1|1|1|Administrators|0|0|1|1|Administrators

PermissionRecord_Id|CustomerRole_Id|Id|Name|SystemName|Category
===============================================
2|1|2|Access admin area|AccessAdminPanel|Standard

2.- I have installed ASP.NET MVC 2 & 3

3.- I use NopCommerce source code version with MS VS 2010 Ultimate
12 years ago
Everything seems to be OK. I think it's better to debug the application in order to know why you don't see the link. Have a look at CommonController (Nop.Web project) and HeaderLinks action method. Ensure that model.DisplayAdminLink property is set to "true". If it isn't set, then debug why (_permissionService.Authorize(StandardPermissionProvider.AccessAdminPanel)).

But if it's set to "true" and the link is not displayed, then please post your HTML markup (opened in a browser) here (HTML markup inside <div class="header-links"> tag)
12 years ago
Hi! I guess i have the same problem and here is how the debug of DisplayAdminLink looks like (if i have done it correctly)
    DisplayAdminLink = _permissionService.Authorize(StandardPermissionProvider.AccessAdminPanel),  Invalid expression term ''  


The login seems to work, but the Admin link is not shown, when entering wrong id it shows.
Using:  Windows 8, SQLEXPRESS and Visual studio 11Beta

Ideas ?
12 years ago
Also i get this:

DisplayAdminLink The name 'DisplayAdminLink' does not exist in the current context
12 years ago
leifa71 wrote:
DisplayAdminLink The name 'DisplayAdminLink' does not exist in the current context

I presume you're doing something wrong when debugging because it ('DisplayAdminLink' property) exists
12 years ago
a.m. wrote:
Everything seems to be OK. I think it's better to debug the application in order to know why you don't see the link. Have a look at CommonController (Nop.Web project) and HeaderLinks action method. Ensure that model.DisplayAdminLink property is set to "true". If it isn't set, then debug why (_permissionService.Authorize(StandardPermissionProvider.AccessAdminPanel)).

But if it's set to "true" and the link is not displayed, then please post your HTML markup (opened in a browser) here (HTML markup inside <div class="header-links"> tag)


I debug the application...the property DisplayAdminLink is set to "false" and I don't no why. For now, I'll set the property to "true".

Do you have any ideas why the property set to "false"?

Thank's again !!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.