3.40 no longer displays admin section

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 năm cách đây
In local, no problem, admin page is reached

Online webserver: prepare.bat + deploy.bat method, 404 error

I've replaced Nop.Admin.dll, deleted it, deleted all files, ...

Can't repair it

Is anybody has got an idea?

Thank you
9 năm cách đây
Simply follow the steps bellow, everything should be ok,

Select Release mode
Clear solution
Rebuild solution
Publish to a local directory using visual studio
Upload all published files
Copy Settings.txt and InstalledPlugins.txt ( if exist) from your solution folder to sever.
9 năm cách đây
Thank you for your response.

I did your method:
- Cleanup
- Rebuild
- Published to local Nop.Admin project
- Uploaded with replace all files

Problem is always existing

It appended after Nop.Admin.dll upload...
9 năm cách đây
Do you notice error message? If not modify the web.config to see error

Web.config
  
    <customErrors mode="Off" />
<!--<customErrors defaultRedirect="errorpage.htm" mode="RemoteOnly">
      --><!-- We handle all 404 errors in "PageNotFound" method of "CommonController". But let's have it here anyway. --><!--
      <error statusCode="404" redirect="filenotfound.htm" />
    </customErrors>-->

Or look into the log in database using sql query
  
select top 10 * from [Log]
  order by CreatedOnUtc desc
9 năm cách đây
That's funny but no any log in database...

Very strange problem, it's like AdminAreaRegistration entries were not load
Nop.Admin.dll is not read by IIS

I've tried to add Admin area to Nop.Web but no change

Permissions files seems to be ok too
9 năm cách đây
Sounds like a problem with the deployment.
Why not just delete everything on your website (backup it first of course).

Do a prepare.bat and deploy.bat locally. Make sure that the Deployable folder installation works, by opening it in WebMatrix.
And then copy everything from the Deployable folder to your webserver?
9 năm cách đây
Well, i've got an updated information

If i deploy all the same files (hosted) in another website host on the same web provider, it works!
I can go to admin area :-)

I've restarted IIS pool on the primary emplacement, always the same problem

Perhaps it's a .net 4.5.1 platform bug?
9 năm cách đây
Was experiencing this too with 3.40.

To fix:

--- Open up the properties of the Nop.Admin project.
--- go to the "Web" Section below "Build"
--- under servers, select IIS Express, confirm the localhost URL host and port
--- Click the "Create Virtual Directory" button.
--- save, clean and rebuild.

I think this should be checked on the 3.50 version, but I don't have time.

Hope this helps.
9 năm cách đây
Got it!

It was optimizeCompilations to True...

<compilation debug="false" targetFramework="4.5.1" optimizeCompilations="true" />

Never use it with NopCommerce
8 năm cách đây
There is an easier way to fix it now that Visual Studio 2015 is out.  This is also in nopCommerce 3.50/IIS Express 10/Windows 8.1 dev environment.  We build and test there then send up to Azure.
Details...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.