Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 610 posts 906 karma points
    Apr 15, 2010 @ 08:55
    Fredrik Esseen
    0

    Error using Usercontrol: "Could not load type"

    Ive created a form in a usercontrol and created a macro to it. Ive created two almost identical forms on the same website without any problem but this form doesnt work.

    I get the following error:

    System.Web.HttpParseException: Could not load type 'FormularGasspisar.GasspisarForm'. ---> 
    System.Web.HttpParseException: Could not load type 'FormularGasspisar.GasspisarForm'. --->
    System.Web.HttpException: Could not load type 'FormularGasspisar.GasspisarForm'. 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) --- End of inner exception stack trace ---
    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) --- End of inner exception stack trace ---
    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.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at umbraco.developer.assemblyBrowser.Page_Load(Object sender, EventArgs e)

     

     

  • Fredrik Esseen 610 posts 906 karma points
    Apr 15, 2010 @ 09:02
    Fredrik Esseen
    0

    I created a "test"-project in visual studio and uploaded it. Just a usercontrol with no functionality. Same result. I tested to upload the test-project to another website and also got the same result.

    Could it be something with my Visual Studio Express? When I create my projects I choose "ASP.Net Web Application" with Framework 3.5

  • Fredrik Esseen 610 posts 906 karma points
    Apr 15, 2010 @ 09:09
    Fredrik Esseen
    0

    Hmm...I get the following warning when building:

    c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll /reference:"c:\Program\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"c:\Program\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:"c:\Program\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Extensions.dll" /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Mobile.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"c:\Program\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug+ /debug:full /optimize- /out:obj\Debug\FormularGasspisar.dll /target:library GasspisarForm.ascx.cs GasspisarForm.ascx.designer.cs Properties\AssemblyInfo.cs

     

  • Fredrik Esseen 610 posts 906 karma points
    Apr 15, 2010 @ 09:31
    Fredrik Esseen
    0

    I noticed that former projects Ive done has a different icon in front of the project.

    http://demo.teknikkompaniet.se/images/ss6.jpg

    Look at Login.

  • Fredrik Esseen 610 posts 906 karma points
    Apr 15, 2010 @ 09:52
    Fredrik Esseen
    0

    I rebuiled the project and the it worked. jst build wouldnt do it. I think it has to do with some updates on my computer last night. New SP maybe?

    Sorry for taking the forum space :)

Please Sign in or register to post replies

Write your reply to:

Draft