OK guys, I'll admit I'm rather new at DNN and VS.NET, plus I have a weak grasp of OOP. I'm hoping someone can point me in the right direction. I am attempting to modify the documents module. To be specific, I would like to modify the URLControl.ascx that is part of the EditDocs.ascx. I copied the three related (URLControl.ascx, URLControl.ascx.vb, URLControl.ascx.resx) files over to a temporary directory and renamed them by replacing the "URL" with "TEST" in the first part of each name. I then moved the newly renamed files to the "Controls" folder of my DNN install folder, except I moved the TESTControl.ascx.resx file to the "App_LocalResources" subfolder of "Controls". The new TESTControl was then added to my Documents solution.
Next I replaced the reference in EditDocs.ascx to TESTControl.ascx... works fine, however TESTControl.ascx is still referencing the URLControl class. I then make these changes:
In TESTControl.ascx.vb, I change the following two lines:
Namespace
DotNetNuke.UI.UserControls
Public MustInherit Class UrlControl
To
Namespace
DotNetNuke.UI.TESTControls
Public MustInherit Class TESTControlAnd in TESTControl.ascx (HTML), I change:
<%@ Control language="vb" CodeBehind="URLControl.ascx.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.UserControls.UrlControl" %>
To
<%@ Control language="vb" CodeBehind="URLControl.ascx.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.TESTControls.TESTControl" %>
When I attempt to load the new EditDocs screen I get an "Error Loading Module". The only error I get during compile/build is:
vbc : error BC31019: Unable to write to output file 'C:\Documents and Settings\...\DNN31\obj\Debug\DotNetNuke.dll': The process cannot access the file because it is being used by another process.
vbc : error BC31019: Unable to write to output file 'C:\Documents and Settings\...\DNN31\obj\Debug\DotNetNuke.pdb': Access is denied.
Which I think is related to a VS problem, any advice?
If you made it this far, thanks for taking a look!
Steve