Page
12-12-2005, 08:20 AM
Hello everyone.
I've tried to automatically convert my .NET 1.1 web application to .NET 2.0 web site project and I've got such exception:
Resource type mapping for the 'web' protocol is not defined.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UriFormatException: Resource type mapping for the 'web' protocol is not defined.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UriFormatException: Resource type mapping for the 'web' protocol is not defined.]
Spring.Core.IO.ConfigurableResourceLoader.GetResou rce(String location) in c:\release\Spring.Net\src\Spring\Spring.Core\Core\ IO\ConfigurableResourceLoader.cs:215
Spring.Core.IO.AbstractResource.CreateRelative(Str ing resourceName) in c:\release\Spring.Net\src\Spring\Spring.Core\Core\ IO\AbstractResource.cs:628
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ImportObjectDefinitionResource(XmlElemen t resource, XmlResourceReader parser) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\DefaultXmlObjectDefinitionParser.cs :222
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseElement(XmlElement element, XmlResourceReader parser) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\DefaultXmlObjectDefinitionParser.cs :154
Spring.Objects.Factory.Xml.XmlResourceReader.Regis terObjectDefinitions(XmlElement root) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\XmlResourceReader.cs:210
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\XmlObjectDefinitionReader.cs:424
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.LoadObjectDefinitions(IResource resource) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\XmlObjectDefinitionReader.cs:273
Spring.Context.Support.AbstractXmlApplicationConte xt.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractXmlApplicationContext.cs:211
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractXmlApplicationContext.cs:122
[ApplicationContextException: Error parsing resource locations [~/spring-context/spring-objects.xml] for application context 'WebApplicationContext;hashCode=62390753'.]
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractXmlApplicationContext.cs:148
Spring.Context.Support.AbstractApplicationContext. Refresh() in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractApplicationContext.cs:733
Spring.Context.Support.WebApplicationContext..ctor (Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) in c:\release\Spring.Net\src\Spring\Spring.Web\Contex t\Support\WebApplicationContext.cs:79
Spring.Context.Support.WebApplicationContext..ctor (Boolean caseSensitive, String[] configurationLocations) in c:\release\Spring.Net\src\Spring\Spring.Web\Contex t\Support\WebApplicationContext.cs:64
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeConstructor(Obje ct[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Objec t[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +13
System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +366
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +14
Spring.Objects.ObjectUtils.InstantiateType(Constru ctorInfo constructor, Object[] arguments) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\ObjectUtils.cs:163
[FatalObjectException: Cannot instantiate Type [Spring.Context.Support.WebApplicationContext] using ctor [Void .ctor(Boolean, System.String[])] : 'Exception has been thrown by the target of an invocation.']
Spring.Web.Support.AbstractHandlerFactory.GetAppli cationContext(HttpContext context) in c:\release\Spring.Net\src\Spring\Spring.Web\Web\Su pport\AbstractHandlerFactory.cs:118
Spring.Web.Support.PageHandlerFactory.GetHandler(H ttpContext context, String requestType, String url, String path) in c:\release\Spring.Net\src\Spring\Spring.Web\Web\Su pport\PageHandlerFactory.cs:67
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +400
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +182
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +191
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Is there a problem with files location? Should they be placed to 'App_Code' folder or not?
Thanks for any ideas.
I've tried to automatically convert my .NET 1.1 web application to .NET 2.0 web site project and I've got such exception:
Resource type mapping for the 'web' protocol is not defined.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UriFormatException: Resource type mapping for the 'web' protocol is not defined.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[UriFormatException: Resource type mapping for the 'web' protocol is not defined.]
Spring.Core.IO.ConfigurableResourceLoader.GetResou rce(String location) in c:\release\Spring.Net\src\Spring\Spring.Core\Core\ IO\ConfigurableResourceLoader.cs:215
Spring.Core.IO.AbstractResource.CreateRelative(Str ing resourceName) in c:\release\Spring.Net\src\Spring\Spring.Core\Core\ IO\AbstractResource.cs:628
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ImportObjectDefinitionResource(XmlElemen t resource, XmlResourceReader parser) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\DefaultXmlObjectDefinitionParser.cs :222
Spring.Objects.Factory.Xml.DefaultXmlObjectDefinit ionParser.ParseElement(XmlElement element, XmlResourceReader parser) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\DefaultXmlObjectDefinitionParser.cs :154
Spring.Objects.Factory.Xml.XmlResourceReader.Regis terObjectDefinitions(XmlElement root) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\XmlResourceReader.cs:210
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.RegisterObjectDefinitions(XmlElement objectsElement, IResource resource) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\XmlObjectDefinitionReader.cs:424
Spring.Objects.Factory.Xml.XmlObjectDefinitionRead er.LoadObjectDefinitions(IResource resource) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\Factory\Xml\XmlObjectDefinitionReader.cs:273
Spring.Context.Support.AbstractXmlApplicationConte xt.LoadObjectDefinitions(XmlObjectDefinitionReader objectDefinitionReader) in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractXmlApplicationContext.cs:211
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractXmlApplicationContext.cs:122
[ApplicationContextException: Error parsing resource locations [~/spring-context/spring-objects.xml] for application context 'WebApplicationContext;hashCode=62390753'.]
Spring.Context.Support.AbstractXmlApplicationConte xt.RefreshObjectFactory() in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractXmlApplicationContext.cs:148
Spring.Context.Support.AbstractApplicationContext. Refresh() in c:\release\Spring.Net\src\Spring\Spring.Core\Conte xt\Support\AbstractApplicationContext.cs:733
Spring.Context.Support.WebApplicationContext..ctor (Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) in c:\release\Spring.Net\src\Spring\Spring.Web\Contex t\Support\WebApplicationContext.cs:79
Spring.Context.Support.WebApplicationContext..ctor (Boolean caseSensitive, String[] configurationLocations) in c:\release\Spring.Net\src\Spring\Spring.Web\Contex t\Support\WebApplicationContext.cs:64
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeConstructor(Obje ct[] args, SignatureStruct& signature, IntPtr declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(Objec t[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +13
System.Reflection.RuntimeConstructorInfo.Invoke(Bi ndingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +366
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +14
Spring.Objects.ObjectUtils.InstantiateType(Constru ctorInfo constructor, Object[] arguments) in c:\release\Spring.Net\src\Spring\Spring.Core\Objec ts\ObjectUtils.cs:163
[FatalObjectException: Cannot instantiate Type [Spring.Context.Support.WebApplicationContext] using ctor [Void .ctor(Boolean, System.String[])] : 'Exception has been thrown by the target of an invocation.']
Spring.Web.Support.AbstractHandlerFactory.GetAppli cationContext(HttpContext context) in c:\release\Spring.Net\src\Spring\Spring.Web\Web\Su pport\AbstractHandlerFactory.cs:118
Spring.Web.Support.PageHandlerFactory.GetHandler(H ttpContext context, String requestType, String url, String path) in c:\release\Spring.Net\src\Spring\Spring.Web\Web\Su pport\PageHandlerFactory.cs:67
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +400
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +182
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +191
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Is there a problem with files location? Should they be placed to 'App_Code' folder or not?
Thanks for any ideas.