nop 2.0 Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
TCH wrote:
I get this error when trying to configure ANY of the current plugins... what to do?

When changing something in the views (Configure.cshtml or paymentinfo.cshtml) of a plugin, I get the same error then I just upload these files to bin and then I can see the updated configure:

Nop.Core.dll & .pdb
Nop.Data.dll & .pdb
Nop.Servcies.dll & .pdb
Nop.Services.XmlSerializers.dll & .pdb
Nop.Web.Framework.dll & .pdb

I don´t know why this is necassery and what the files do.


While I don't follow exactly, it does sound like this could be from invalid setup of the view. Views need to be marked as embedded resources or exceptions will be thrown. Simply changing the view wont update the website, you have to recompile the libraries for every view change (the views are stored inside of the dll). I hope that helps. Also reread the article I wrote. I've written 2 different plugins now (payment and request quote) and both seem to be working just fine.
12 years ago
It does not work for me just recompile and upload the plugin files. I have to upload the files to bin also. My views are compiled as embedded resource and I have tried 1000 other things but nothing will work unless i upload the files to bin.
That works for me every time.
12 years ago
Hi Everybody, There is a good news for all of you whos facing this problem.. Try to remove all the temporary files located in Temporary ASP.NET Files and run again.. Hope this will help you
12 years ago
Hi,

As per the post i already cleared all Temp files and put the DLLs in Bin directory. The plug complied successfully. It showing at the time of installation. But when we try to click on Configuration or View in both case we are getting errors.




Here is Error Messages:

The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Source Error:


Line 14:     if (!String.IsNullOrEmpty(Model.ConfigurationActionName))
Line 15:     {
Line 16:         @Html.Action(Model.ConfigurationActionName, Model.ConfigurationControllerName, Model.ConfigurationRouteValues);
Line 17:     }
Line 18:     else

Source File: d:\Projects\NOPC\nopcmvc2\vm-nopc-mvc\Presentation\Nop.Web\Administration\Views\Payment\ConfigureMethod.cshtml    Line: 16



Can you please guide me where we are making mistakes.

Thanks,
-Ajit
12 years ago
webtech4rindia wrote:
Hi,

As per the post i already cleared all Temp files and put the DLLs in Bin directory. The plug complied successfully. It showing at the time of installation. But when we try to click on Configuration or View in both case we are getting errors.




Here is Error Messages:

The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Source Error:


Line 14:     if (!String.IsNullOrEmpty(Model.ConfigurationActionName))
Line 15:     {
Line 16:         @Html.Action(Model.ConfigurationActionName, Model.ConfigurationControllerName, Model.ConfigurationRouteValues);
Line 17:     }
Line 18:     else

Source File: d:\Projects\NOPC\nopcmvc2\vm-nopc-mvc\Presentation\Nop.Web\Administration\Views\Payment\ConfigureMethod.cshtml    Line: 16



Can you please guide me where we are making mistakes.

Thanks,
-Ajit


Ajit (or anyone else still having issues) you can send me a private message and I will give you my contact information. Then you can send me your plugin and I'll review the code and hopefully diagnose the issue you're encountering.

-Sky
12 years ago
webtech4rindia wrote:
Hi,

As per the post i already cleared all Temp files and put the DLLs in Bin directory. The plug complied successfully. It showing at the time of installation. But when we try to click on Configuration or View in both case we are getting errors.




Here is Error Messages:

The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Source Error:


Line 14:     if (!String.IsNullOrEmpty(Model.ConfigurationActionName))
Line 15:     {
Line 16:         @Html.Action(Model.ConfigurationActionName, Model.ConfigurationControllerName, Model.ConfigurationRouteValues);
Line 17:     }
Line 18:     else

Source File: d:\Projects\NOPC\nopcmvc2\vm-nopc-mvc\Presentation\Nop.Web\Administration\Views\Payment\ConfigureMethod.cshtml    Line: 16



Can you please guide me where we are making mistakes.

Thanks,
-Ajit

have you register url?
or can you show me your routeprovider code?
12 years ago
I have also created a new payment plugin copyng the ManualPayment and replaced Manual with Sermepa.
The plugin install successfully, but when I click on Configure I get a screen with Error 500.
Any idea?
12 years ago
jmbusquets wrote:
I have also created a new payment plugin copyng the ManualPayment and replaced Manual with Sermepa.
The plugin install successfully, but when I click on Configure I get a screen with Error 500.
Any idea?


Can you provide a stack trace? A 500 error is just a server side failure and all we can do is guess what the problem is.

Thanks!
12 years ago
There is not stack trace. Only a screen with this text:

The website cannot display the page
HTTP 500

Most likely causes:
The website is in maintenance.
The web site has a programming error.

You can try the following:

Refresh the page.

Return to the previous page.

More information


This error (HTTP 500 Internal Server Error) means that the web site to which it is connected has a problem with the server that prevents to display the web page.


For more information about HTTP errors, see Help

The URL displayed in Address bar is : http://www.ilicor.com/Admin/Payment/ConfigureMethod?systemName=Payments.Sermyed.

Thanks
12 years ago
jmbusquets wrote:
There is not stack trace. Only a screen with this text:

The website cannot display the page
HTTP 500

Most likely causes:
The website is in maintenance.
The web site has a programming error.

You can try the following:

Refresh the page.

Return to the previous page.

More information


This error (HTTP 500 Internal Server Error) means that the web site to which it is connected has a problem with the server that prevents to display the web page.


For more information about HTTP errors, see Help

The URL displayed in Address bar is : http://www.ilicor.com/Admin/Payment/ConfigureMethod?systemName=Payments.Sermyed.

Thanks


Are you using internet explorer? I believe that internet explorer turns on friendly error messages and masks the message returned from the server. I would suggest either turning friendly errors off or using a different browser. The message above really doesn't give the specifics of the error, just that one occurred.

-Sky
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.