Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

web.config <add assembly.. > error !!!!!!!! help

235 views
Skip to first unread message

Bartosz Bielecki

unread,
Mar 1, 2006, 8:57:29 AM3/1/06
to
hi there
i have unusual mistake and i was suprised to get it.
I am programming under visual studio 2005 and i got such a error:

Configuration error for web.config

source errors:
//----------------------------------

Wiersz 11: <add assembly="Microsoft.Crm.ManagedInterop,
Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Wiersz 12: <add assembly="Microsoft.Crm.MetadataHelper,
Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Wiersz 13: <add assembly="Microsoft.Crm.MetadataService,
Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Wiersz 14: <add assembly="Microsoft.Crm.NativeInteropProxy,
Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Wiersz 15: <add assembly="Microsoft.Crm.ObjectModel, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

Plik źródłowy: c:\inetpub\wwwroot\web.config Wiersz: 13

Ślad ładowania zestawu: Poniższe informacje mogą pomóc w stwierdzeniu,
dlaczego nie można było załadować zestawu 'Microsoft.Crm.MetadataService'.


=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Crm.MetadataService, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/testskype
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.MetadataService,
Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/testskype/db75273e/d4af4967/Microsoft.Crm.MetadataService.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/testskype/db75273e/d4af4967/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/testskype/bin/Microsoft.Crm.MetadataService.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/testskype/bin/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/testskype/db75273e/d4af4967/Microsoft.Crm.MetadataService.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/testskype/db75273e/d4af4967/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/testskype/bin/Microsoft.Crm.MetadataService.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/testskype/bin/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService

//------------------------------------------------------------
does someone have any idea what to do ?
i modified web.config deleting lines of <add assembly= .... > that do errors
but i shouldnt do this way. how to overcome it? HILFE !!!

thx for your time

Bartosz Bielecki

unread,
Mar 1, 2006, 9:01:27 AM3/1/06
to
aha it writes in the beggining that
it didnt find file of name Microsoft.Crm.MetadataService or its dependencies

anyway i have added
https:// .... metadataservice reference.

still no idea whats wrong
.............


thx again for help

„Bartosz Bielecki” pisze:

Matt Parks

unread,
Mar 1, 2006, 6:36:35 PM3/1/06
to
Assuming this is a web.config that is in a sub-virtual directory under the
CRM root? If so, then you actually want to us remove assembly directives.
In the root web.config, there is a sample set of these used for the SRS
virtual direcotry. They are below the add assembly directives.

--

Matt Parks
MVP - Microsoft CRM


"Bartosz Bielecki" <Bartosz...@discussions.microsoft.com> wrote in
message news:1710E7A7-F6FD-428A...@microsoft.com...


aha it writes in the beggining that
it didnt find file of name Microsoft.Crm.MetadataService or its dependencies

anyway i have added
https:// .... metadataservice reference.

still no idea whats wrong
.............


thx again for help

"Bartosz Bielecki" pisze:

> hi there
> i have unusual mistake and i was suprised to get it.
> I am programming under visual studio 2005 and i got such a error:
>
> Configuration error for web.config
>
> source errors:
> //----------------------------------
>
> Wiersz 11: <add assembly="Microsoft.Crm.ManagedInterop,
> Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
> Wiersz 12: <add assembly="Microsoft.Crm.MetadataHelper,
> Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
> Wiersz 13: <add assembly="Microsoft.Crm.MetadataService,
> Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
> Wiersz 14: <add assembly="Microsoft.Crm.NativeInteropProxy,
> Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
> Wiersz 15: <add assembly="Microsoft.Crm.ObjectModel, Version=3.0.5300.0,
> Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
>

> Plik zródlowy: c:\inetpub\wwwroot\web.config Wiersz: 13
>
> Slad ladowania zestawu: Ponizsze informacje moga pomóc w stwierdzeniu,
> dlaczego nie mozna bylo zaladowac zestawu 'Microsoft.Crm.MetadataService'.

Bartosz Bielecki

unread,
Mar 2, 2006, 3:18:08 AM3/2/06
to
hi Matt,

yes that errors show CRM root web.config.
and i dont want you to remove <add assembly ..... >

i just dont want to change web.config from oryginal
about assembleys because i dont know if its recomended.
i could just use "//" and it will work but its not good practise

and i didnt understand what did y mean about srs:


you said:
"If so, then you actually want to us remove assembly directives.
In the root web.config, there is a sample set of these used for the SRS
virtual direcotry. They are below the add assembly directives."


could y be more clear?
i am beginner

bart


"Matt Parks" wrote:

> Assuming this is a web.config that is in a sub-virtual directory under the
> CRM root? If so, then you actually want to us remove assembly directives.
> In the root web.config, there is a sample set of these used for the SRS
> virtual direcotry. They are below the add assembly directives.
>
> --
>
> Matt Parks
> MVP - Microsoft CRM
>
>
> "Bartosz Bielecki" <Bartosz...@discussions.microsoft.com> wrote in
> message news:1710E7A7-F6FD-428A...@microsoft.com...
> aha it writes in the beggining that
> it didnt find file of name Microsoft.Crm.MetadataService or its dependencies
>
> anyway i have added
> https:// .... metadataservice reference.
>
> still no idea whats wrong

> ..............

Matt Parks

unread,
Mar 2, 2006, 4:40:58 PM3/2/06
to
Bart,

You need your own web.confg file in your virtual directory. This web.config
needs to "remove" those CRM assemblies. This needs to be done as your code
won't directly access them anyway, so you don't need them. You basically
need the following in your local web.config for your app.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="C#" debug="true">
<assemblies>
<remove assembly="Microsoft.Crm, Version=3.0.5300.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Entities, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.ManagedInterop, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.MetadataHelper, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.MetadataService, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.NativeInteropProxy, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.ObjectModel, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Platform.ComProxy, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Platform.Proxy, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Platform.Server, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Platform.Sdk, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Platform.Types, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Scheduling, Version=3.0.5300.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<remove assembly="Microsoft.Crm.Tools.ImportExportPublish,
Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
<pages enableSessionState="true" validateRequest="false"
enableViewState="true" />
</system.web>
</configuration>


--

Matt Parks
MVP - Microsoft CRM


"Bartosz Bielecki" <Bartosz...@discussions.microsoft.com> wrote in

message news:314B2FA7-CE90-4D0D...@microsoft.com...

Bartosz Bielecki

unread,
Mar 3, 2006, 2:40:23 AM3/3/06
to
hi Matt

thx for your answer, the way of resolving problem easy and nice :)
i am suprised that i didnt get idea before .
thx a lot

anyway i still wonder why there were problems with assembyies

bart

Bartosz Bielecki

unread,
Mar 3, 2006, 3:42:26 AM3/3/06
to
hi again

i removed assembyes but now it screams that it cant find it
exactly it screams for
<remove assembly="Microsoft.Crm.MetadataService, Version=3.0.5300.0, ...

so still have problem ....

„Matt Parks” pisze:

Matt Parks

unread,
Mar 7, 2006, 2:33:09 AM3/7/06
to
The problem is those assemblies do not exist in the bin directory of that
local virtual directory, they reside in the root bin directory. Since you
don't need them, you don't need the refernce.

--

Matt Parks
MVP - Microsoft CRM


"Bartosz Bielecki" <Bartosz...@discussions.microsoft.com> wrote in

message news:BA30A52D-F1FD-47C7...@microsoft.com...

Bartosz Bielecki

unread,
Mar 7, 2006, 9:31:28 AM3/7/06
to
hi thx a lot for your time
I will try to resolve it again

see you again later
i will inform if i succeded to do anything

„Matt Parks” pisze:

Nicole Mueller

unread,
Jul 26, 2006, 5:53:02 AM7/26/06
to
Hello
I have the same problem. I now found out that all the other assemblies which
are added in the root web.config file can be found in c:\windows\assembly.
But not Crm.MetadataService. Could this help to find a solution?
Unfortunately I'm not very experienced with assemblies and their registration.
Regards
Nicole
0 new messages