Bug 23632 - Could not load type 'MonoDevelop.AspNet.AspNetAppProject'
Summary: Could not load type 'MonoDevelop.AspNet.AspNetAppProject'
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 5.5
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2014-10-06 03:54 UTC by Dylan Giles
Modified: 2015-09-17 06:02 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Dylan Giles 2014-10-06 03:54:59 UTC
Trying to create an Android Application Project under a Blank Solution.

Gives error: System.TypeLoadException: Could not load type 'MonoDevelop.AspNet.AspNetAppProject' from assembly 'MonoDevelop.AspNet, Version=, Culture=neutral, PublicKeyToken=null'.

Full Log:

"An error has occured. The project cannot be created.

System.TypeLoadException: Could not load type 'MonoDevelop.AspNet.AspNetAppProject' from assembly 'MonoDevelop.AspNet, Version=, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Reflection.Assembly.GetType(String name, Boolean throwOnError)
   at Mono.Addins.RuntimeAddin.GetType(String typeName, Boolean throwIfNotFound)
   at MonoDevelop.Projects.Extensions.DotNetProjectSubtypeNode.get_Type()
   at MonoDevelop.Projects.Extensions.DotNetProjectSubtypeNode.CanHandleItem(SolutionEntityItem item)
   at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.InitializeItemHandler(SolutionItem item)
   at MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat.ConvertToFormat(Object obj)
   at MonoDevelop.Projects.SolutionEntityItem.InitializeItemHandler()
   at MonoDevelop.Projects.SolutionItem.get_ItemHandler()
   at MonoDevelop.Projects.SolutionItem.NotifyModified(String hint)
   at MonoDevelop.Projects.Project.set_StockIcon(IconId value)
   at MonoDevelop.Projects.DotNetProject..ctor(String languageName)
   at MonoDevelop.Projects.DotNetProject..ctor(String languageName, ProjectCreateInformation projectCreateInfo, XmlElement projectOptions)
   at MonoDevelop.MonoDroid.MonoDroidProject..ctor(String languageName, ProjectCreateInformation info, XmlElement projectOptions)
   at MonoDevelop.MonoDroid.MonoDroidProjectBinding.CreateProject(ProjectCreateInformation info, XmlElement projectOptions)
   at MonoDevelop.Projects.ProjectService.CreateProject(String type, ProjectCreateInformation info, XmlElement projectOptions)
   at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem(ProjectCreateInformation projectCreateInformation, String defaultLanguage)
   at MonoDevelop.Ide.Templates.ProjectTemplate.CreateProject(SolutionItem policyParent, ProjectCreateInformation cInfo)
   at MonoDevelop.Ide.Projects.NewProjectDialog.CreateProject()
Comment 1 Mikayla Hutchinson [MSFT] 2014-10-06 11:11:53 UTC
It looks like your installation is corrupt. Check whether you have multiple copies of MonoDevelop.AspNet.dll in the install directory.

MonoDevelop.AspNet.AspNetAppProject has been renamed to MonoDevelop.AspNet.Projects.AspNetAppProject in recent releases so there's definitely something stale.
Comment 2 Matt Ward 2015-09-17 06:02:23 UTC
Unable to repro this. Comment #1 suggests something went wrong with the install. Closing this bug. Please re-open if it is still a problem.