Skip to main content

MSDN

Answered Question Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )RSS Feed

(0)

ankitavyas
ankitavyas

Member

Member

100 points

44 Posts

Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

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

ankitavyas
ankitavyas

Member

Member

100 points

44 Posts

Answered Question

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

oops....

Again, It's automatically fixed. What I did

  • restart IIS ( No Fix )
  • restart Computer (No Fix)
  • Following code comment on Web.config ( Worked )
  • Again removed my comment on same web.config ( Still Working )

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
asbailey

Member

Member

6 points

4 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

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

asbailey
asbailey

Member

Member

6 points

4 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

RATS....still getting the error....this makes no sense.....seems VS.NET is not cleaning up after itself.

asbailey
asbailey

Member

Member

6 points

4 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

hmmm, I could not get to the bottom of the issue Angry?.

To solve it, I recreated my WCF service as a standard web-service (ASMX)....I don't get that error anymore

larsjo
larsjo

Member

Member

4 points

2 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

Hi,

Had the same problem... (SilverLight 2, WCF Service)
Found this temporary fix...

1. Close Visual Studio 2008
2. Go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
3. Delete the current working project directory/files

Lars

John.J.Hughes.II
John.J....

Member

Member

51 points

33 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

Also had the same problem, tried several fixes, the only thing that worked was deleting the project temp file.

Thanks, John

Regards,
John J. Hughes II

balukr54
balukr54

Member

Member

320 points

212 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

 Hi  lars

thanks.. i have been getting this issue for months.thanks for the help 

Deleting temporary file will fix the issue.

Regards

Balu

ravindranathw
ravindr...

Member

Member

12 points

19 Posts

Re: Could not load file or assembly 'App_Web_rdtli7if' - Typical type of error ( No google )

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

  • Unanswered Question
  • Answered Question
  • Announcement