Error creating control (/usercontrols/EmailAFriend.ascx).
Error creating control (/usercontrols/EmailAFriend.ascx). Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
its umbdebugshowtrace=true shows following trace :
Error creating usercontrol (/usercontrols/EmailAFriend.ascx) C:\Inetpub\wwwroot\umbraco\build\usercontrols\EmailAFriend.ascx(173): error BC30519: Overload resolution failed because no accessible 'New' can be called without a narrowing conversion: 'Public Sub New(userName As String, password As System.Security.SecureString)': Argument matching parameter 'userName' narrows from 'Object' to 'String'. 'Public Sub New(userName As String, password As System.Security.SecureString)': Argument matching parameter 'password' narrows from 'Object' to 'System.Security.SecureString'. 'Public Sub New(userName As String, password As String)': Argument matching parameter 'userName' narrows from 'Object' to 'String'. 'Public Sub New(userName As String, password As String)': Argument matching parameter 'password' narrows from 'Object' to 'String'. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at umbraco.macro.loadUserControl(String fileName, MacroModel model, Hashtable pageElements)
From the error message, it seems that you send the wrong (type of) parameters to your control constructor. Could this be the issue? Maybe you need to cast your parameters to strings?
Another possibility is maybe that you don't have a parameter-less constructor while umbraco expects one.
Maybe you can place some code out of your control to make things a little more clear?
Error creating control (/usercontrols/EmailAFriend.ascx).
Error creating control (/usercontrols/EmailAFriend.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
How can i solve this error?
can anyone help?
its umbdebugshowtrace=true shows following trace :
Error creating usercontrol (/usercontrols/EmailAFriend.ascx)
C:\Inetpub\wwwroot\umbraco\build\usercontrols\EmailAFriend.ascx(173): error BC30519: Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:
'Public Sub New(userName As String, password As System.Security.SecureString)': Argument matching parameter 'userName' narrows from 'Object' to 'String'.
'Public Sub New(userName As String, password As System.Security.SecureString)': Argument matching parameter 'password' narrows from 'Object' to 'System.Security.SecureString'.
'Public Sub New(userName As String, password As String)': Argument matching parameter 'userName' narrows from 'Object' to 'String'.
'Public Sub New(userName As String, password As String)': Argument matching parameter 'password' narrows from 'Object' to 'String'.
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at umbraco.macro.loadUserControl(String fileName, MacroModel model, Hashtable pageElements)
please anyone help me...............
Hi,
From the error message, it seems that you send the wrong (type of) parameters to your control constructor. Could this be the issue? Maybe you need to cast your parameters to strings?
Another possibility is maybe that you don't have a parameter-less constructor while umbraco expects one.
Maybe you can place some code out of your control to make things a little more clear?
Cheers,
Michael.
hi michael,
i have just installed umbraco to my system & setup it on iis.
i done know about source code?
from this forums i found that after url if i add ?umbdebugshowtrace=true then trace is visible...
from that i have copy the trace...
to resolve this issue i have uninstalll the package & install the new version of the package...
is working on a reply...