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 7 10889
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
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
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
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
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
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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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é
|
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:...
|
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...
|
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...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: SueHopson |
last post by:
Hi All,
I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...
| |