Skip to main content
Microsoft Silverlight
Home Forums General Silverlight Programming Programming with .NET - General Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )
8 replies. Latest Post by ravindranathw on September 3, 2010.
(0)
ankitavyas
Member
100 points
44 Posts
03-26-2008 12:17 AM |
I am using Silverlight 2 ( Studio 2008 ). I have created WCF Service and my silverlight is using this WCF service.
It was working fine till a hour ago. But, All of sudden I am getting following error. Anyone has any idea about this.
Could not load file or assembly 'App_Web_rdtli7if, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.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.IO.FileNotFoundException: Could not load file or assembly 'App_Web_rdtli7if, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'App_Web_rdtli7if, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' could not be loaded.
WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'App_Web_rdtli7if, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.] 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) +54 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141 System.Reflection.Assembly.Load(String assemblyString) +25 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +154 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +516 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +31 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +498
[ServiceActivationException: The service '/Editor/GeneralService.svc' cannot be activated due to an exception during compilation. The exception message is: Could not load file or assembly 'App_Web_rdtli7if, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified..] System.ServiceModel.AsyncResult.End(IAsyncResult result) +4413209 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +183 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +205 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +322 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
03-26-2008 12:40 AM |
oops....
Again, It's automatically fixed. What I did
So, Conclusion is : Looks like bug on memore or something. I haven't change anything else, except what I have mentioned above.
Thanks & good luck who is going to experience this.
<!--<compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError" value="false"/> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="OptionInfer" value="true"/> <providerOption name="WarnAsError" value="false"/> </compiler> </compilers>-->
asbailey
6 points
4 Posts
04-16-2008 10:19 AM |
hey ankitavyas
I experienced the same issue.
To resolve it, i removed the generated XAP file from the associated web solution delivering the silverlight application.
It appears that the WCF references fell out of sync between silverlight app and hosting web-app.
Make sure that the FUSION LOGGER is enabled (see registry setting below). This gave me some additional pointers as to the assembly binding failures
HLM/Software/Microsoft/Fusion!EnableLog = 1 [type = DWORD].
NOTE : There is a VS.NET performance hit setting this.....
Hope this helps...
Cheers
04-16-2008 1:13 PM |
RATS....still getting the error....this makes no sense.....seems VS.NET is not cleaning up after itself.
04-16-2008 3:46 PM |
hmmm, I could not get to the bottom of the issue ?.
To solve it, I recreated my WCF service as a standard web-service (ASMX)....I don't get that error anymore
larsjo
4 points
2 Posts
06-03-2008 5:58 AM |
Hi,
Had the same problem... (SilverLight 2, WCF Service)Found this temporary fix...
1. Close Visual Studio 20082. Go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files3. Delete the current working project directory/files
Lars
John.J....
51 points
33 Posts
01-13-2009 2:56 PM |
Also had the same problem, tried several fixes, the only thing that worked was deleting the project temp file.
Thanks, John
balukr54
320 points
212 Posts
08-20-2009 4:41 AM |
Hi lars
thanks.. i have been getting this issue for months.thanks for the help
Deleting temporary file will fix the issue.
Regards
Balu
ravindr...
12 points
19 Posts
09-03-2010 10:52 AM |
This is a Caching issue. What you should do is stop website from iis. close the Application pool from iis then Clear ASP.NET cache by deleting all the files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files. This will Solve your problem for sure