Home > .NET Development > ASP.NET ReportViewer Native compiler return value: ‘[BC2001] file’ error

ASP.NET ReportViewer Native compiler return value: ‘[BC2001] file’ error


Recently restored one of our servers and I encountered this error while trying to view a report:

An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2001] file …. 

Solution:

1. Solving this seems so easy, first check the identity of the AppPool where the website is running:

2. From the command prompt type: %windir% and look for the temp folder. Add read/write permission to temp folder of windows to user in step 1.

Note: In other cases  the temp folder is located somewhere else, so to check where it’s located go to System Properties -> Advance -> Environment Variables. In the System Variables look  for the TEMP or TMP:

 

 

 

Advertisements
  1. Ercan from Istanbul
    April 30, 2012 at 12:05 pm

    I’ve applied your instruction. It works. Many thanks.

  2. Johnson
    October 20, 2012 at 12:15 am

    This worked for me. Thank you thank you thank you 🙂

  3. February 22, 2013 at 10:30 am

    Fixed it for me. Thanks!

  4. July 22, 2014 at 5:29 am

    Thank you

  5. August 18, 2015 at 5:04 pm

    Fixed for me as well. Thanks you very much sir!

  6. Senthilkumar
    February 25, 2016 at 6:11 am

    Super, Thanks A Lot, Thanks…Thanks…Thanks…Thanks…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: