Build broken (no idea why): SYstem.EnterpriseServices gone

K

Keith Patrick

I have the Beta 2 of VS 2005 running an ASP.Net 2.0 app. This thing worked
yesterday, but today, it's telling me:
Error 1 Could not load file or assembly 'System.EnterpriseServices,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of
its dependencies. The system cannot find the file specified.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Config\web.config 42


I'm not even sure why the thing has a problem with the web.config of all
things, as it's just the basic one that gets created with any project. And
to make things worse, I really don't know how to add
SYstem.EnterpriseServices as a reference, as 2.0 does web references
differently. Any ideas from those more familiar with the new platform than
I?
 
A

Alvin Bruney - ASP.NET MVP

are you doing anything with remoting? i believe this is a remoting reference

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
K

Keith Patrick

Not doing a thing with it. This is just an ASP.Net 2.0 app that has been
working fine for weeks. This is my config file:

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
</appSettings>
<connectionStrings/>
<system.web>
<profile enabled="false"/>
<compilation debug="true"/>
<authentication mode="Windows"/>
<!--
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
-->
</system.web>
</configuration>
 
K

Keith Patrick

I took out my web.config altogether and it turns out the thing is just
stupid and figures that my web.config is the offending one. It's actually
some root web.config in the framework directory, and it's the part here:
<compilation>
<assemblies>
<add assembly="mscorlib" />
<add assembly="System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Mobile, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="*" />
</assemblies>


(BTW: if this hasn't been said before, Outlook Express has about the most
annoying format for pasting code out of VS that I have ever seen...makes the
simplicities in life truly a pain in the ass)
 
Joined
Sep 24, 2006
Messages
1
Reaction score
0
more help

Can you tell me what you did to solve this? I'm a newbie and couldn't really figure out exactly what you did by your post.
Thanks!
 
Joined
Oct 30, 2006
Messages
1
Reaction score
0
Same problem here - quick fix that worked for me

Like you it was working yesterday - the only thing I did that might have caused the problem was - I did a system restore to a couple of weeks ago - then restored back to today. The error then appeared attempting to connect to my web service. I guess it wasn't as completely reversable as it claimed.

I got the ASP.Net v2 download from microsoft and reran it using the repair option and this solved my problem.
 

Ask a Question

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

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

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top