Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hrushikesh 18 posts 37 karma points
    Aug 19, 2011 @ 11:57
    hrushikesh
    0

    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?

  • hrushikesh 18 posts 37 karma points
    Aug 19, 2011 @ 11:59
    hrushikesh
    0

    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)


  • hrushikesh 18 posts 37 karma points
    Aug 19, 2011 @ 11:59
    hrushikesh
    0

    please anyone help me...............

  • Michael Latouche 504 posts 819 karma points MVP 4x c-trib
    Aug 19, 2011 @ 14:02
    Michael Latouche
    0

    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.

  • hrushikesh 18 posts 37 karma points
    Aug 19, 2011 @ 14:12
    hrushikesh
    0

    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...

     

  • hrushikesh 18 posts 37 karma points
    Aug 26, 2011 @ 13:52
    hrushikesh
    0

    to resolve this issue i have uninstalll the package & install the new version of the package...

Please Sign in or register to post replies

Write your reply to:

Draft