[Mono-aspnet-list] Error: Failed to create shadow copy (CopyFile).

FcoLomas f_lomas at hotmail.com
Wed Jun 24 12:40:57 EDT 2009


I was having the same problem, based in this suggestion I removed the
reference to the System.Data.DataSetExtensions assembly and it starts to
work like a charm!

It would be really good if the error messages could be more descriptives,
and if there is a kind of event log with the exceptions details, the most of
the .NET developers porting applications to Mono will need that.

Thanks again!


Andrus Moor-2 wrote:
> 
> This nice error message typically means that your application is
> referencing 
> to ms entity framework assembly.
> This assembly reference is added by default in VS.
> You can remove this reference from project.
> Also you can apply patch from bugzilla whichs shows the assembly name
> caused 
> exception.
> 
> It would be *extremely* useful if this error message will be impoved in
> mono 
> as entity framework assembly is referenced automatically when new project
> is 
> created is VS.
> 
> Andrus-
> 
> 
> ----- Original Message ----- 
> From: "ChristinaP" <christina.peter at tcs.com>
> To: <mono-aspnet-list at lists.ximian.com>
> Sent: Thursday, June 18, 2009 3:11 PM
> Subject: [Mono-aspnet-list] Error: Failed to create shadow copy
> (CopyFile).
> 
> 
>>
>> Hi,
>>
>> I am getting the following error for my application when I am porting it
>> from Windows to Linux environment using mono: Any pointers on this will 
>> help
>> greatly.
>> Thanks, Christina
>> --------------------
>> Failed to create shadow copy (CopyFile).
>> Description: HTTP 500. Error processing request.
>>
>> Stack Trace:
>>
>> System.ExecutionEngineException: Failed to create shadow copy (CopyFile).
>>  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
>> (string,bool)
>>  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile)
>> [0x00000]
>>  at System.Web.HttpApplication.LoadTypeFromBin (System.String typeName)
>> [0x00000]
>>  at System.Web.HttpApplication.LoadType (System.String typeName, Boolean
>> throwOnMissing) [0x00000]
>>  at System.Web.HttpApplication.LoadType (System.String typeName)
>> [0x00000]
>>  at System.Web.UI.TemplateParser.LoadType (System.String typeName)
>> [0x00000]
>>  at System.Web.UI.TemplateParser.SetBaseType (System.String type) 
>> [0x00000]
>>  at System.Web.UI.TemplateParser.ProcessMainAttributes
>> (System.Collections.Hashtable atts) [0x00000]
>>  at System.Web.UI.TemplateParser.AddDirective (System.String directive,
>> System.Collections.Hashtable atts) [0x00000]
>>  at System.Web.UI.ApplicationFileParser.AddDirective (System.String
>> directive, System.Collections.Hashtable atts) [0x00000]
>>  at System.Web.Compilation.AspGenerator.TagParsed (ILocation location,
>> TagType tagtype, System.String tagid,
>> System.Web.Compilation.TagAttributes
>> attributes) [0x00000]
>>  at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype,
>> System.String id, System.Web.Compilation.TagAttributes attributes) 
>> [0x00000]
>>  at System.Web.Compilation.AspParser.Parse () [0x00000]
>>  at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader 
>> reader,
>> System.String filename, Boolean doInitParser) [0x00000]
>>  at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse ()
>> [0x00000]
>>  at
>> System.Web.Compilation.GenericBuildProvider`1[TParser].get_CodeCompilerType
>> () [0x00000]
>>  at System.Web.Compilation.BuildManager.GetCodeDomProviderType
>> (System.Web.Compilation.BuildProvider provider) [0x00000]
>>  at System.Web.Compilation.BuildManager+BuildItem..ctor
>> (System.Web.Compilation.BuildProvider provider) [0x00000]
>>  at System.Web.Compilation.BuildManager.LoadBuildProviders
>> (System.Web.VirtualPath virtualPath, System.String virtualDir,
>> System.Collections.Generic.Dictionary`2 vpCache,
>> System.Web.Compilation.BuildKind& kind, System.String& assemblyBaseName)
>> [0x00000]
>>  at System.Web.Compilation.BuildManager.BuildAssembly
>> (System.Web.VirtualPath virtualPath) [0x00000]
>>  at System.Web.Compilation.BuildManager.GetCompiledType (System.String
>> virtualPath) [0x00000]
>>  at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
>> context) [0x00000]
>>
>>
>> --------------------------------------------------------------------------------
>> Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
>> 2.0.50727.1433
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Error%3A-Failed-to-create-shadow-copy-%28CopyFile%29.-tp24091798p24091798.html
>> Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Mono-aspnet-list mailing list
>> Mono-aspnet-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list 
> 
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Error%3A-Failed-to-create-shadow-copy-%28CopyFile%29.-tp24091798p24188012.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list