Works Locally but doesnt work when deployed to dev, using same kentico configuration settings on local and dev. Changes on local apply straight to dev.
So I am working on an existing project which is using Kentico. I have created a new web part and template and when trying to go the new page (web part) I receive this error.
Error loading the webpart '' of type ''
<%@ Control Language="C#" AutoEventWireup="true"
Inherits="CMSWebParts_General_ResetPassword"
CodeBehind="~/CMSWebParts/General/ResetPassword.ascx.cs" %>
<div id="reset-password-page" class="col-md-12">
<div class="col-md-3">
</div>
<div class="col-md-6">
<h1 style="color: white; margin-top: 0px;">Reset Password</h1>
<div style="margin-top: 30px; color: #eb770a!important; padding-left: 20px;" class="row">
<div class="form-group row">
<span style="color: red; position: relative; left: 12px;" id="validation"></span>
</div>
<div class="form-group row">
<asp:Label ID="lblPassword" runat="server" Text="Password:" CssClass="col-sm-3 control-label">Password:</asp:Label>
<div class="col-sm-9">
<asp:TextBox ID="txtPassword" runat="server" Text="" TextMode="Password" CssClass="form-control" ClientIDMode="Static" Monitor="Monitor" data-rel="password"></asp:TextBox>
</div>
</div>
<div class="form-group row">
<asp:Label ID="lblPassword2" runat="server" Text="Repeat Password:" CssClass="col-sm-3 control-label">Repeat Password:</asp:Label>
<div class="col-sm-9">
<asp:TextBox ID="txtPassword2" runat="server" Text="" TextMode="Password" CssClass="form-control" ClientIDMode="Static" Monitor="Monitor" data-rel="password"></asp:TextBox>
</div>
</div>
<div class="form-group row">
<div class="offset-sm-2 col-sm-10" id="reset">
<asp:Button ID="ResetBtn" runat="server" CssClass="btn caseFileButton" Text="Reset" CausesValidation="True" />
</div>
</div>
</div>
</div>
<div class="col-md-3"></div>
Here is the view essentially, however this is an old version of ASP - hence .ascx files.
This has been working, but very inconsistently, if there is any Kentico experts or ASP experts, some help would be appreciated.
I have a code behind file created, ResetPassword.ascx.cs
public partial class CMSWebParts_General_ResetPassword : CMSAbstractWebPart
{
protected void Page_Load(Object sender, EventArgs e)
{
This is in the event log
Message: Could not load type 'CMSWebParts_General_ResetPassword'
CMSWebParts_General_ResetPassword
is not in the loaded assembly. (sorry if so, but I just wanted to be clear).