473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

word interop assembly not loading

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
7 10928
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: AP | last post by:
Hi, I'm trying to use c# to pop up a dialog box when a user attempts to close word to prompt them if they want to exit or cancel (obviously other stuff needs to happen based on their selection...
2
by: Radek | last post by:
Hi, I have got such problem: in my directory "C:\folder" I have 3 files in MS WORD (having tables, images etc), these are: "1.doc", "2.doc", "3.doc". I want to write an application (C# of...
3
by: Dustin van de Sande | last post by:
I'm developing a ASP.NET 2.0 web application which exports and imports Word documents. The functionality is implemented in a DLL project which is referenced by the web application. In the DLL...
0
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
1
by: live | last post by:
Hi, when i try to open document word for reading and writing with C#, the program stop on this line And the program give me this error : 'DefaultDomain' : chargé
0
by: SergioT | last post by:
hi I m getting an error when I run my application on the server, that error doesn't ocur when I run the application on the development computer the error is:...
9
by: sajithkahawatta | last post by:
my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only...
0
by: Luft | last post by:
I'm just starting to work with VSTO and Word 2007 but I've run into a problem when trying to create an add-in. I get the warning: This project references the primary interop assembly for Microsoft...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.