One or more arguments are invalid (Exception from HRESULT: 0x80000003)
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.Runtime.InteropServices.COMException: One or more arguments are invalid (Exception from HRESULT: 0x80000003)
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:
[COMException (0x80000003): One or more arguments are invalid (Exception from HRESULT: 0x80000003)]
[FileLoadException: Could not load file or assembly 'Kohan, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. One or more arguments are invalid (Exception from HRESULT: 0x80000003)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'Kohan, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. One or more arguments are invalid (Exception from HRESULT: 0x80000003)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53
System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +86
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456
I solved my problem. that dll are obfuscated and not work in host because in the host .net framework 4.0 installed.
but in my computer .net framework 3.5 installed project work correctly. when i copy that project to other PC ( with visual studio 2010) same error
occurred.
Best regards
----------------
http://www.kohan-co.net
Marked as answer by masoudf on Nov 25, 2012 06:58 PM
masoudf
Member
8 Points
35 Posts
Problem in host
Nov 08, 2012 04:48 PM|LINK
Hi ,
I Create empty Asp.net (C#) Project with 1 default.aspx. I upload that project to my host.
But when I copy 1 dll to bin folder(not used dll) i gave this error:
One or more arguments are invalid (Exception from HRESULT: 0x80000003)
--------------------
http://www.kohan-co.net
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Problem in host
Nov 12, 2012 12:57 AM|LINK
Hi
Could you give more detailed information about this problem, thanks.
Regards
Feedback to us
Develop and promote your apps in Windows Store
masoudf
Member
8 Points
35 Posts
Re: Problem in host
Nov 12, 2012 07:55 AM|LINK
Hi
I have class library project include more used function like getdata , ....
I used export of this project (dll) to my webproject and work correctly but when I upload to host gave that error.
i check all permission! I think, I have shortage in web.config file
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Problem in host
Nov 13, 2012 12:48 AM|LINK
Hi
You could post the necessary error information, and we will better troubleshoot.
Or you could refer to this case that reference dll not copying to bin with deployment project causing error
.
hope it helps you.
Regards
Feedback to us
Develop and promote your apps in Windows Store
masoudf
Member
8 Points
35 Posts
Re: Problem in host
Nov 16, 2012 05:22 PM|LINK
Hi
My complete error detail:
------------------------------------------
One or more arguments are invalid (Exception from HRESULT: 0x80000003)
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.Runtime.InteropServices.COMException: One or more arguments are invalid (Exception from HRESULT: 0x80000003)
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Problem in host
Nov 20, 2012 01:21 AM|LINK
Hi masoudf
If you copy dll directly from bin folder, it could lead to asp.net app domain reload.
I think you could add the index of this dll, then you can publish Precompilation or codes in IIS.
hope it helps you.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
masoudf
Member
8 Points
35 Posts
Re: Problem in host
Nov 21, 2012 11:13 AM|LINK
Hi
I test your solution with add refrence dll to project and add manually to web.config.
but still have problem
masoudf
Member
8 Points
35 Posts
Re: Problem in host
Nov 25, 2012 06:57 PM|LINK
Hi
I solved my problem. that dll are obfuscated and not work in host because in the host .net framework 4.0 installed.
but in my computer .net framework 3.5 installed project work correctly. when i copy that project to other PC ( with visual studio 2010) same error occurred.
Best regards
----------------
http://www.kohan-co.net
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Problem in host
Nov 25, 2012 11:09 PM|LINK
Hi massoudf
Congratulations! I’m glad to hear that you have solved this issue by yourself,
and it is very appreciated to share your solution to us.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store