473,403 Members | 2,284 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,403 software developers and data experts.

Office/Stdole getting added to web.config automatically

SJ
I have a VS2005 solution that has a class library and a website.
Website has a project reference to the class library in the solution.
Whenever I try to build the solution the following two lines get added
in web.config as part of the compilation process. These lines get
added right after class library is compiled and just before website
starts compiling. Because of this I am unable to publish the website on

machines that dont have these dlls even though the website doesnt
depend on them.

<add assembly="Office, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="stdole, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
The class library has the following dependencies none of which look
like they need these two entreis - System, System.Configuration,
System.Data, System.EnterpriseServices, System.Web,
System.Web.Services, System.Xml.
Any help is highly appreciated. Thanks.

Mar 8 '06 #1
5 17611
This was happening on a co-worker's machine. It was a fresh build.
What I ended up doing, was to create an empty html page on the desktop.
Right-click and Open With VS 2005 and set it as the default. Word was
the default editor prior. After that, the entries weren't created.
Lucky guess - hopefully it will work for you. Please post if it does
work so others will find the answer as well.

Mar 10 '06 #2
SJ
Thanks for replying to this post. Unfortunately this fix didnt solve my
problem. Even after setting VS2005 as the default editor for html,
compiler tries to modify web.config with stdole/office entries.

Mar 14 '06 #3
I too am having this problem. A reference to stdole is being added to
my references when compiling (No office reference is being added - Do
you by any chance reference an assembly that uses an office
component?).
I have resolved the problem (of it not running on the server due to not
being able to locate this reference) by simply deleting this line from
my web config after deployment.
<add assembly="stdole, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>

Not ideal, but at least gets you going.

I would love to know why VS 2005 is adding references to your project
that aren't required.

Mar 20 '06 #4
Hi,

I have posted a resolution to this issue at my blog .
Please post a comment re: whether my resolution works for you, of if you have questions/suggestions.
May 1 '06 #5
Hi,

I have posted a resolution to this issue at my blog .
Please post a comment re: whether my resolution works for you, of if you have questions/suggestions.
I should have noted that my blog post also explains in some detail why VS 2005 adds the lines to web.config.
May 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: zfeld | last post by:
1. Where do I get the Office 2003 PIAs? On the MSDN download site there are only downloads for XP office PIAs. Do they automatically get installed to the GAC with the installation of office 2003? ...
1
by: Magnus | last post by:
I use IFontDisp and some other stuff from stdole in VB.NET, but sometimes Visual Studio simply refuses to compile, complaining about various stdole errors (for example, it wants me to add a...
1
by: Bob N5 | last post by:
I am working on an application that uses interop to do some simple operations with both Excel and Word. I have most of functionality working, but ran into issues on making things work with both...
3
by: Alejandro Penate-Diaz | last post by:
Hi. While trying to create a a word document in one of my asp.net pages I keep getting an ASP.NET permission error. first I thought it was been caused while trying to save the document, and I added...
3
by: Stu | last post by:
Hi, I am trying to open a word document from an asp.net page but I keep getting an access denied error when I try to create an instance of the word applications. I have created references to...
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
5
by: MJB | last post by:
I have several dlls that have app.config files tied to them. When adding their primary output to a Setup project everything works fine, but only the app.config for the .exe gets added to the Setup...
0
by: Patrick Bates | last post by:
We are trying to convert an existing VB6/ASP application to ASP.Net with VB.Net assemblies. For now, the data access is still handled by ADODB. When I deployed to our Windows 2000 test server,...
8
by: samadams_2006 | last post by:
I'm trying to find the namespace for stdole.dll Is there a tool out there that will help me do this?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.