Receiving Configuration Error, I've Never Seen Before

R

Rob G

Hi,

I am new to this ASP.NET thing and while going very slow, I am learning.
Then I got a Configuration Error out of nowhere when I ran my project.

I do have Excel as reference (but I haven't been able to use it yet).

My project has been running just fine and I am sure I did something strange
to make this occur, but I have no idea what I did. So now, all the work I've
put into this, is gone. Well, I hope not.

Any idea what could have happened and how I can fix it?

Thanks so much.

Here's the error:
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'Interop.Excel'.

Source Error:

Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>

Source File:
c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config Line:
198

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Interop.Excel' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Interop.Excel
(Partial)
LOG: Appbase = file:///D:/Data/Visual Studio Projects/Leadership
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Interop.Excel
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/leadership/a3cd84a3/7db66cf2/Interop.Excel.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/leadership/a3cd84a3/7db66cf2/Interop.Excel/Interop.Excel.DLL.
LOG: Attempting download of new URL file:///D:/Data/Visual Studio
Projects/Leadership/bin/Interop.Excel.DLL.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Interop.Excel, Version=1.3.0.0, Culture=neutral,
PublicKeyToken=null
 
R

Rob G

Thanks for the info.

I was able to remove the reference and it seems to be working OK right now.

I will still walk through the article you sent as I am sure to learn
something new.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top