locked
MSCRM Dyanamics - CustomPage Deployment Error. RRS feed

  • Question

  • Hi ,

     

    I have a custom web LeadSourceList.aspx page , where all logic is LeadSourceList.aspx.cs written. It works fine when it is in .NET web Site solution.but when

    i am deploying this custom page to /ISV/ in wwwroot and referncing in IFRAME  url ="/ISV/LeadSourceList.aspx" getting below error.

     

    1. i tried by removing  Inheritance="WebSendMail.LeadSourceList" in <@page> , it workes but code behind logic not executes.

     

    2. If i keep then getting below error..

     

     

    Error Description:

    An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.


    Error Details:

    Could not load type 'WebSendMail.LeadSourceList'.


    Full Stack:

    [HttpException: Could not load type 'WebSendMail.LeadSourceList'.]

       at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)

       at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)

       at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)

     

    [HttpParseException: Could not load type 'WebSendMail.LeadSourceList'.]

       at System.Web.UI.TemplateParser.ProcessException(Exception ex)

       at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

       at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

     

    [HttpParseException: Could not load type 'WebSendMail.LeadSourceList'.]

       at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

       at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)

       at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)

       at System.Web.UI.TemplateParser.ParseInternal()

       at System.Web.UI.TemplateParser.Parse()

       at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)

       at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()

       at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)

       at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()

       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)

       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)

       at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)

       at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)

       at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)

       at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)

       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)

       at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     


    Other Message:


    Error Number:


    Source File:

    /ISV/LeadSourceList.aspx


    Line Number:

    1

     

    Date: 05-31-2011

    Time: 00:29:28

    Server: localhost

    Request URL:

    http://localhost/ISV/LeadSourceList.aspx

     

    Thanks


    Sanjay
    Monday, May 30, 2011 9:21 PM

All replies

  • Rather than deploying the .aspx.cs file and requiring compilation on demand, you should compile your server-side code into an assembly dll in Visual Studio (you can do this by publishing the web site), and deploy the assembly dll to the server. This should go either in the bin directory below the directory that your .aspx file is in (if your folder is defined as an Application in IIS), or in the bin directory in the root of the CRM web site
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Tuesday, May 31, 2011 5:01 AM
    Moderator
  • Hi Sanjay,

    Is 'WebSendMail.LeadSourceList' object exsist in class libray or a in COM object? if it is a compiled library then you should deploy it in the <CRM Web Dir>\Bin folder, if it is a COM component then you need to add a refrence into web.config and if it is a simple csharp .cs class file then you can also deploy it along with your aspx web page or can compiled it and place the dll file into <CRM Web Dir>\Bin folder.

    I hope this will help.


    Thank You,
    Jehanzeb Javeed,
    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile



    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    • Proposed as answer by FlyntMD Monday, September 17, 2012 12:24 PM
    Tuesday, May 31, 2011 8:28 AM