By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,551 Members | 2,727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,551 IT Pros & Developers. It's quick & easy.

word interop assembly not loading

P: n/a
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed this screen below. Please help,
thanks in advance...

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: Could not load file or assembly
'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44
Feb 22 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
That is Outlook where you have an exception, not Word.
If I add a COM Reference to the Word 11 Object Library , my web.config entry
will look like:

<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>

and the page will load perfectly. Be aware that using out of process COM
Servers in an ASP.NET app on a webserver is not recommended.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"R Reyes" wrote:
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed this screen below. Please help,
thanks in advance...

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: Could not load file or assembly
'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

Feb 22 '06 #2

P: n/a
Oh sorry Peter, I actually changed that to read the right library but I still
get the same error, as below. I am not sure what you mean by "out of process
COM
Servers in an ASP.NET app". Basically I am making an intranet application
for my company and this feature will only be used inside our network to
create word documents that can be modified and printed. If you have any
better suggestions as how to accomplish this whether by another method please
let me know, however I am new to .NET still (but not programming) and am not
sure what the best ways are to do things. Also, I run into errors like this
which set me back days just to figure out how to get something working before
I can even start coding! Well thanks for your help. Please let me know if
you can help with this error which was still the same after I changed it to
the correct library. Thank you!

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: Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

"Peter Bromberg [C# MVP]" wrote:
That is Outlook where you have an exception, not Word.
If I add a COM Reference to the Word 11 Object Library , my web.config entry
will look like:

<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>

and the page will load perfectly. Be aware that using out of process COM
Servers in an ASP.NET app on a webserver is not recommended.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"R Reyes" wrote:
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed this screen below. Please help,
thanks in advance...

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: Could not load file or assembly
'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

Feb 22 '06 #3

P: n/a
Ugh...I pasted the wrong code again but it says Microsoft.Office.Interop.Word
in the error and the error is the same for all assemblies I've tried using.

"R Reyes" wrote:
Oh sorry Peter, I actually changed that to read the right library but I still
get the same error, as below. I am not sure what you mean by "out of process
COM
Servers in an ASP.NET app". Basically I am making an intranet application
for my company and this feature will only be used inside our network to
create word documents that can be modified and printed. If you have any
better suggestions as how to accomplish this whether by another method please
let me know, however I am new to .NET still (but not programming) and am not
sure what the best ways are to do things. Also, I run into errors like this
which set me back days just to figure out how to get something working before
I can even start coding! Well thanks for your help. Please let me know if
you can help with this error which was still the same after I changed it to
the correct library. Thank you!

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: Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

"Peter Bromberg [C# MVP]" wrote:
That is Outlook where you have an exception, not Word.
If I add a COM Reference to the Word 11 Object Library , my web.config entry
will look like:

<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>

and the page will load perfectly. Be aware that using out of process COM
Servers in an ASP.NET app on a webserver is not recommended.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"R Reyes" wrote:
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed this screen below. Please help,
thanks in advance...

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: Could not load file or assembly
'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

Feb 22 '06 #4

P: n/a
THE REAL ERROR (just so you know I really had it) =P

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: Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

"R Reyes" wrote:
Oh sorry Peter, I actually changed that to read the right library but I still
get the same error, as below. I am not sure what you mean by "out of process
COM
Servers in an ASP.NET app". Basically I am making an intranet application
for my company and this feature will only be used inside our network to
create word documents that can be modified and printed. If you have any
better suggestions as how to accomplish this whether by another method please
let me know, however I am new to .NET still (but not programming) and am not
sure what the best ways are to do things. Also, I run into errors like this
which set me back days just to figure out how to get something working before
I can even start coding! Well thanks for your help. Please let me know if
you can help with this error which was still the same after I changed it to
the correct library. Thank you!

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: Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

"Peter Bromberg [C# MVP]" wrote:
That is Outlook where you have an exception, not Word.
If I add a COM Reference to the Word 11 Object Library , my web.config entry
will look like:

<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>

and the page will load perfectly. Be aware that using out of process COM
Servers in an ASP.NET app on a webserver is not recommended.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"R Reyes" wrote:
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed this screen below. Please help,
thanks in advance...

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: Could not load file or assembly
'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

Feb 22 '06 #5

P: n/a
To add another note, I also checked that the file was there and it exists.
Not sure why it says the system cannot find the file???

Please excuse all the replies I'm trying to be as informative as I can to
help solve this problem.

"R Reyes" wrote:
Oh sorry Peter, I actually changed that to read the right library but I still
get the same error, as below. I am not sure what you mean by "out of process
COM
Servers in an ASP.NET app". Basically I am making an intranet application
for my company and this feature will only be used inside our network to
create word documents that can be modified and printed. If you have any
better suggestions as how to accomplish this whether by another method please
let me know, however I am new to .NET still (but not programming) and am not
sure what the best ways are to do things. Also, I run into errors like this
which set me back days just to figure out how to get something working before
I can even start coding! Well thanks for your help. Please let me know if
you can help with this error which was still the same after I changed it to
the correct library. Thank you!

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: Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

"Peter Bromberg [C# MVP]" wrote:
That is Outlook where you have an exception, not Word.
If I add a COM Reference to the Word 11 Object Library , my web.config entry
will look like:

<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>

and the page will load perfectly. Be aware that using out of process COM
Servers in an ASP.NET app on a webserver is not recommended.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"R Reyes" wrote:
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed this screen below. Please help,
thanks in advance...

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: Could not load file or assembly
'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

Feb 22 '06 #6

P: n/a
With server 2003, the word application needs this update to work:

Office 2003 Update: Redistributable Primary Interop Assemblies
(http://www.microsoft.com/downloads/d...displaylang=en)

Just installed the:
Office 2003 Primary Interop Assemblies Redistributable
R Reyes wrote:
To add another note, I also checked that the file was there and it exists.
Not sure why it says the system cannot find the file???

Please excuse all the replies I'm trying to be as informative as I can to
help solve this problem.

"R Reyes" wrote:
Oh sorry Peter, I actually changed that to read the right library but I still
get the same error, as below. I am not sure what you mean by "out of process
COM
Servers in an ASP.NET app". Basically I am making an intranet application
for my company and this feature will only be used inside our network to
create word documents that can be modified and printed. If you have any
better suggestions as how to accomplish this whether by another method please
let me know, however I am new to .NET still (but not programming) and am not
sure what the best ways are to do things. Also, I run into errors like this
which set me back days just to figure out how to get something working before
I can even start coding! Well thanks for your help. Please let me know if
you can help with this error which was still the same after I changed it to
the correct library. Thank you!

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: Could not load file or assembly
'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
cannot find the file specified.

Source Error:
Line 20: during development.
Line 21: -->
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44

"Peter Bromberg [C# MVP]" wrote:
That is Outlook where you have an exception, not Word.
If I add a COM Reference to the Word 11 Object Library , my web.config entry
will look like:

<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>

and the page will load perfectly. Be aware that using out of process COM
Servers in an ASP.NET app on a webserver is not recommended.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"R Reyes" wrote:

> Can someone please explain to me why I can't get the MS Word Interop assembly
> to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
> Form application and I can't get passed this screen below. Please help,
> thanks in advance...
>
> 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: Could not load file or assembly
> 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral,
> PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system
> cannot find the file specified.
>
> Source Error:
>
>
> Line 20: during development.
> Line 21: -->
> Line 22: <compilation debug="true">
> Line 23: <assemblies>
> Line 24: <add assembly="Microsoft.Office.Interop.Outlook,
> Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
>
>
> Source File: C:\Inetpub\wwwroot\Geotext\web.config Line: 22
>
> Assembly Load Trace: The following information can be helpful to determine
> why the assembly 'Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
> Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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].
>
> --------------------------------------------------------------------------------
> Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
> Version:2.0.50215.44


Mar 24 '06 #7

P: n/a
hey you need to register the component in GAC(Global Assembly Cache) i
have here some screen caps of the procedures of how to register your
component in assembly cache using the Configuration Wizard i hd used
..Net 2.0 but these forum cant accept files.. so heres the proc's

1. Go to Administrative Tools then select Microsoft .Net Configuration
Wizard 2.0

2. Select Computer from the treeview then click Configured Assemblies.
Now at the right side select Configure an assembly if you have
installed Microsoft Office select Choose an Assemby if not enter the
assembly information and type the name of the assembly and the public
token.

Apr 7 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.