Reference required to assembly error

Reference required to assembly error

am 27.01.2008 20:00:20 von John

Hi there,

Can anyone decypher what this error is telling me? This is something that
was working perfectly happily after making some changes recommended by Bruce
Barker (see:
http://groups.google.co.uk/group/microsoft.public.dotnet.fra mework.aspnet/browse_thread/thread/fa2e000be69f8b5b/5fab6e75 f47ff1c4?hl=en&lnk=st&q=Access+method+in+master%27s+master#5 fab6e75f47ff1c4)

The only thing I've changed is that I deleted a couple of content page files
that weren't being used.

Anyway, if you're able to point me in the right direction for tracking down
the problem I'd be very grateful.

Best regards

John

PS the error gets thrown in the Page Load event of the content page, which
has a master, which itself has a master.

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: BC30652: Reference required to assembly
'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
containing the type 'ASP.mainmaster_master'. Add one to your project.

Source Error:


Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")

RE: Reference required to assembly error

am 28.01.2008 07:17:53 von stcheng

Hi John,

From your description, you're getting some compilation error after applying
some changes(together with the one in another thread) to your application
,correct?

As you mentioned that you have removed some content page files, is there
anything in the content pages that has been referenced by the master pages
(or other pages left in the application)? For example, do you have any
variable or members in master or other class that reference some certain
content page that has been removed?

In addition, after you changed the application, have you recompiled the
application and deploy it again or is the problem occuring in development
environmente even when you use Visual Studio to run it?

BTW, if you still have the original version(unchanged one) of your
application, I suggest you run it again, and check the following
assemby(mentioned in error message):

App_Web_i0omzneq.dll

you can try locating it from ASP.NET temporary folder and use reflector to
see what classes does it include. This may also help some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: "John"
>Subject: Reference required to assembly error
>Date: Sun, 27 Jan 2008 19:00:20 -0000

>
>Hi there,
>
>Can anyone decypher what this error is telling me? This is something that
>was working perfectly happily after making some changes recommended by
Bruce
>Barker (see:
>http://groups.google.co.uk/group/microsoft.public.dotnet.fr amework.aspnet/b
rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
method+in+master%27s+master#5fab6e75f47ff1c4)
>
>The only thing I've changed is that I deleted a couple of content page
files
>that weren't being used.
>
>Anyway, if you're able to point me in the right direction for tracking
down
>the problem I'd be very grateful.
>
>Best regards
>
>John
>
>PS the error gets thrown in the Page Load event of the content page, which
>has a master, which itself has a master.
>
>Compilation Error
>Description: An error occurred during the compilation of a resource
required
>to service this request. Please review the following specific error
details
>and modify your source code appropriately.
>
>Compiler Error Message: BC30652: Reference required to assembly
>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
>containing the type 'ASP.mainmaster_master'. Add one to your project.
>
>Source Error:
>
>
>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As
>System.EventArgs) Handles Me.Load
>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>
>
>
>

Re: Reference required to assembly error

am 28.01.2008 11:10:39 von John

Hello Steven,

Thanks for your reply. I'll answer your questions in turn:

Description - It all worked fine using Bruce's (other thread) suggestion.
The problem appeared to occur after deleting the content files.

Referencing content that's been removed - No, nothing as far as I can tell.

Recompiled - Yes, but no change.

Deploy - Unfortunately I haven't got anywhere that I can easily deploy if to
at the moment so this is just in the dev environment (VS2008 Pro)

Original version - Alas I didn't keep a copy (deleting a few content files
didn't feel that significant)

By the way, the compiler error message changes each time you run the page,
or at least the 'App_Web_######, part does:

Compiler Error Message: BC30652: Reference required to assembly
'App_Web__bcsdg1f, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
containing the type 'ASP.mainmaster_master'. Add one to your project.

My assumption was that it's needing a reference to the Master.Master part,
but I don't quite understand as it appeared to be quite happy with Bruce's
Interface type conversion before. So why does it think it needs one now I
wonder?

Thanks

John


"Steven Cheng[MSFT]" wrote in message
news:FOHngeXYIHA.5204@TK2MSFTNGHUB02.phx.gbl...
> Hi John,
>
> From your description, you're getting some compilation error after
> applying
> some changes(together with the one in another thread) to your application
> ,correct?
>
> As you mentioned that you have removed some content page files, is there
> anything in the content pages that has been referenced by the master pages
> (or other pages left in the application)? For example, do you have any
> variable or members in master or other class that reference some certain
> content page that has been removed?
>
> In addition, after you changed the application, have you recompiled the
> application and deploy it again or is the problem occuring in development
> environmente even when you use Visual Studio to run it?
>
> BTW, if you still have the original version(unchanged one) of your
> application, I suggest you run it again, and check the following
> assemby(mentioned in error message):
>
> App_Web_i0omzneq.dll
>
> you can try locating it from ASP.NET temporary folder and use reflector to
> see what classes does it include. This may also help some.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
>
> ==================================================
>
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
>
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx .
>
> ==================================================
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> --------------------
>>From: "John"
>>Subject: Reference required to assembly error
>>Date: Sun, 27 Jan 2008 19:00:20 -0000
>
>>
>>Hi there,
>>
>>Can anyone decypher what this error is telling me? This is something that
>>was working perfectly happily after making some changes recommended by
> Bruce
>>Barker (see:
>>http://groups.google.co.uk/group/microsoft.public.dotnet.f ramework.aspnet/b
> rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
> method+in+master%27s+master#5fab6e75f47ff1c4)
>>
>>The only thing I've changed is that I deleted a couple of content page
> files
>>that weren't being used.
>>
>>Anyway, if you're able to point me in the right direction for tracking
> down
>>the problem I'd be very grateful.
>>
>>Best regards
>>
>>John
>>
>>PS the error gets thrown in the Page Load event of the content page, which
>>has a master, which itself has a master.
>>
>>Compilation Error
>>Description: An error occurred during the compilation of a resource
> required
>>to service this request. Please review the following specific error
> details
>>and modify your source code appropriately.
>>
>>Compiler Error Message: BC30652: Reference required to assembly
>>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
>>containing the type 'ASP.mainmaster_master'. Add one to your project.
>>
>>Source Error:
>>
>>
>>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As
>>System.EventArgs) Handles Me.Load
>>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>>
>>
>>
>>
>

Re: Reference required to assembly error

am 30.01.2008 01:02:11 von John

Hello Steven,

Well after a long process of working through your advice, including using
reflector, I've trailed it in other content pages and no error appears, so
it looks like the Test conent page did have some kind of missing dependancy
(although I still can't see it for looking).

Anyway, thanks again for your help.

Best regards

John

"John" wrote in message
news:Om6OLYZYIHA.5912@TK2MSFTNGP06.phx.gbl...
> Hello Steven,
>
> Thanks for your reply. I'll answer your questions in turn:
>
> Description - It all worked fine using Bruce's (other thread) suggestion.
> The problem appeared to occur after deleting the content files.
>
> Referencing content that's been removed - No, nothing as far as I can
> tell.
>
> Recompiled - Yes, but no change.
>
> Deploy - Unfortunately I haven't got anywhere that I can easily deploy if
> to at the moment so this is just in the dev environment (VS2008 Pro)
>
> Original version - Alas I didn't keep a copy (deleting a few content files
> didn't feel that significant)
>
> By the way, the compiler error message changes each time you run the page,
> or at least the 'App_Web_######, part does:
>
> Compiler Error Message: BC30652: Reference required to assembly
> 'App_Web__bcsdg1f, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
> containing the type 'ASP.mainmaster_master'. Add one to your project.
>
> My assumption was that it's needing a reference to the Master.Master part,
> but I don't quite understand as it appeared to be quite happy with Bruce's
> Interface type conversion before. So why does it think it needs one now I
> wonder?
>
> Thanks
>
> John
>
>
> "Steven Cheng[MSFT]" wrote in message
> news:FOHngeXYIHA.5204@TK2MSFTNGHUB02.phx.gbl...
>> Hi John,
>>
>> From your description, you're getting some compilation error after
>> applying
>> some changes(together with the one in another thread) to your application
>> ,correct?
>>
>> As you mentioned that you have removed some content page files, is there
>> anything in the content pages that has been referenced by the master
>> pages
>> (or other pages left in the application)? For example, do you have any
>> variable or members in master or other class that reference some certain
>> content page that has been removed?
>>
>> In addition, after you changed the application, have you recompiled the
>> application and deploy it again or is the problem occuring in development
>> environmente even when you use Visual Studio to run it?
>>
>> BTW, if you still have the original version(unchanged one) of your
>> application, I suggest you run it again, and check the following
>> assemby(mentioned in error message):
>>
>> App_Web_i0omzneq.dll
>>
>> you can try locating it from ASP.NET temporary folder and use reflector
>> to
>> see what classes does it include. This may also help some.
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>>
>> ==================================================
>>
>> Get notification to my posts through email? Please refer to
>> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
>> ications.
>>
>>
>>
>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>> issues
>> where an initial response from the community or a Microsoft Support
>> Engineer within 1 business day is acceptable. Please note that each
>> follow
>> up response may take approximately 2 business days as the support
>> professional working with you may need further investigation to reach the
>> most efficient resolution. The offering is not appropriate for situations
>> that require urgent, real-time or phone-based interactions or complex
>> project analysis and dump analysis issues. Issues of this nature are best
>> handled working with a dedicated Microsoft Support Engineer by contacting
>> Microsoft Customer Support Services (CSS) at
>> http://msdn.microsoft.com/subscriptions/support/default.aspx .
>>
>> ==================================================
>>
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> --------------------
>>>From: "John"
>>>Subject: Reference required to assembly error
>>>Date: Sun, 27 Jan 2008 19:00:20 -0000
>>
>>>
>>>Hi there,
>>>
>>>Can anyone decypher what this error is telling me? This is something
>>>that
>>>was working perfectly happily after making some changes recommended by
>> Bruce
>>>Barker (see:
>>>http://groups.google.co.uk/group/microsoft.public.dotnet. framework.aspnet/b
>> rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
>> method+in+master%27s+master#5fab6e75f47ff1c4)
>>>
>>>The only thing I've changed is that I deleted a couple of content page
>> files
>>>that weren't being used.
>>>
>>>Anyway, if you're able to point me in the right direction for tracking
>> down
>>>the problem I'd be very grateful.
>>>
>>>Best regards
>>>
>>>John
>>>
>>>PS the error gets thrown in the Page Load event of the content page,
>>>which
>>>has a master, which itself has a master.
>>>
>>>Compilation Error
>>>Description: An error occurred during the compilation of a resource
>> required
>>>to service this request. Please review the following specific error
>> details
>>>and modify your source code appropriately.
>>>
>>>Compiler Error Message: BC30652: Reference required to assembly
>>>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
>>>containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>
>>>Source Error:
>>>
>>>
>>>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As
>>>System.EventArgs) Handles Me.Load
>>>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>>>
>>>
>>>
>>>
>>
>
>

Re: Reference required to assembly error

am 30.01.2008 03:49:12 von stcheng

Hi John,

Thanks for your followup.

Glad that you've got progress. So you're using isolation method to detect
the problem page. I agree that's a good method though sometimes may cause
more time. Anyway, if you got further results or need any help, please feel
free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: "John"
>Subject: Re: Reference required to assembly error
>Date: Wed, 30 Jan 2008 00:02:11 -0000

>
>Hello Steven,
>
>Well after a long process of working through your advice, including using
>reflector, I've trailed it in other content pages and no error appears, so
>it looks like the Test conent page did have some kind of missing
dependancy
>(although I still can't see it for looking).
>
>Anyway, thanks again for your help.
>
>Best regards
>
>John
>
>"John" wrote in message
>news:Om6OLYZYIHA.5912@TK2MSFTNGP06.phx.gbl...
>> Hello Steven,
>>
>> Thanks for your reply. I'll answer your questions in turn:
>>
>> Description - It all worked fine using Bruce's (other thread)
suggestion.
>> The problem appeared to occur after deleting the content files.
>>
>> Referencing content that's been removed - No, nothing as far as I can
>> tell.
>>
>> Recompiled - Yes, but no change.
>>
>> Deploy - Unfortunately I haven't got anywhere that I can easily deploy
if
>> to at the moment so this is just in the dev environment (VS2008 Pro)
>>
>> Original version - Alas I didn't keep a copy (deleting a few content
files
>> didn't feel that significant)
>>
>> By the way, the compiler error message changes each time you run the
page,
>> or at least the 'App_Web_######, part does:
>>
>> Compiler Error Message: BC30652: Reference required to assembly
>> 'App_Web__bcsdg1f, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null'
>> containing the type 'ASP.mainmaster_master'. Add one to your project.
>>
>> My assumption was that it's needing a reference to the Master.Master
part,
>> but I don't quite understand as it appeared to be quite happy with
Bruce's
>> Interface type conversion before. So why does it think it needs one now
I
>> wonder?
>>
>> Thanks
>>
>> John
>>
>>
>> "Steven Cheng[MSFT]" wrote in message
>> news:FOHngeXYIHA.5204@TK2MSFTNGHUB02.phx.gbl...
>>> Hi John,
>>>
>>> From your description, you're getting some compilation error after
>>> applying
>>> some changes(together with the one in another thread) to your
application
>>> ,correct?
>>>
>>> As you mentioned that you have removed some content page files, is there
>>> anything in the content pages that has been referenced by the master
>>> pages
>>> (or other pages left in the application)? For example, do you have any
>>> variable or members in master or other class that reference some certain
>>> content page that has been removed?
>>>
>>> In addition, after you changed the application, have you recompiled the
>>> application and deploy it again or is the problem occuring in
development
>>> environmente even when you use Visual Studio to run it?
>>>
>>> BTW, if you still have the original version(unchanged one) of your
>>> application, I suggest you run it again, and check the following
>>> assemby(mentioned in error message):
>>>
>>> App_Web_i0omzneq.dll
>>>
>>> you can try locating it from ASP.NET temporary folder and use reflector
>>> to
>>> see what classes does it include. This may also help some.
>>>
>>> Sincerely,
>>>
>>> Steven Cheng
>>>
>>> Microsoft MSDN Online Support Lead
>>>
>>>
>>>
>>> ==================================================
>>>
>>> Get notification to my posts through email? Please refer to
>>>
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
>>> ications.
>>>
>>>
>>>
>>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>>> issues
>>> where an initial response from the community or a Microsoft Support
>>> Engineer within 1 business day is acceptable. Please note that each
>>> follow
>>> up response may take approximately 2 business days as the support
>>> professional working with you may need further investigation to reach
the
>>> most efficient resolution. The offering is not appropriate for
situations
>>> that require urgent, real-time or phone-based interactions or complex
>>> project analysis and dump analysis issues. Issues of this nature are
best
>>> handled working with a dedicated Microsoft Support Engineer by
contacting
>>> Microsoft Customer Support Services (CSS) at
>>> http://msdn.microsoft.com/subscriptions/support/default.aspx .
>>>
>>> ==================================================
>>>
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>>
>>> --------------------
>>>>From: "John"
>>>>Subject: Reference required to assembly error
>>>>Date: Sun, 27 Jan 2008 19:00:20 -0000
>>>
>>>>
>>>>Hi there,
>>>>
>>>>Can anyone decypher what this error is telling me? This is something
>>>>that
>>>>was working perfectly happily after making some changes recommended by
>>> Bruce
>>>>Barker (see:
>>>>http://groups.google.co.uk/group/microsoft.public.dotnet .framework.aspne
t/b
>>>
rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
>>> method+in+master%27s+master#5fab6e75f47ff1c4)
>>>>
>>>>The only thing I've changed is that I deleted a couple of content page
>>> files
>>>>that weren't being used.
>>>>
>>>>Anyway, if you're able to point me in the right direction for tracking
>>> down
>>>>the problem I'd be very grateful.
>>>>
>>>>Best regards
>>>>
>>>>John
>>>>
>>>>PS the error gets thrown in the Page Load event of the content page,
>>>>which
>>>>has a master, which itself has a master.
>>>>
>>>>Compilation Error
>>>>Description: An error occurred during the compilation of a resource
>>> required
>>>>to service this request. Please review the following specific error
>>> details
>>>>and modify your source code appropriately.
>>>>
>>>>Compiler Error Message: BC30652: Reference required to assembly
>>>>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null'
>>>>containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>>
>>>>Source Error:
>>>>
>>>>
>>>>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As
>>>>System.EventArgs) Handles Me.Load
>>>>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
>

Re: Reference required to assembly error

am 30.01.2008 07:41:22 von John

Hi Steven,

Well I think I've finally tracked down the real problem. It appears to be a
problem of Master confusion. The code (in code behind Page Load event),
which calls a method in the page's master's master (MainMaster) below works
fine:

CType(Master.Master, ISetMenus).SetMenu("Products")


I then added a page directive in the aspx page to get a reference to the
page's direct master (LeftNav):

<%@ MasterType VirtualPath="~/LeftNav.master" %>


....and added another call to a method in LeftNav master:

CType(Master.Master, ISetMenus).SetMenu("Products")

Master.SetLeftNavTree("Products", "Products")


Adding this second line produces the compilation error, but either way will
work by itself (ie if you took out the CType line).

Any clues as to why it does this and how I can reference both the direct
master and the master's master at the same time?

Thanks

John



"Steven Cheng[MSFT]" wrote in message
news:8ifm3quYIHA.6844@TK2MSFTNGHUB02.phx.gbl...
> Hi John,
>
> Thanks for your followup.
>
> Glad that you've got progress. So you're using isolation method to detect
> the problem page. I agree that's a good method though sometimes may cause
> more time. Anyway, if you got further results or need any help, please
> feel
> free to post here.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> --------------------
>>From: "John"
>>Subject: Re: Reference required to assembly error
>>Date: Wed, 30 Jan 2008 00:02:11 -0000
>
>>
>>Hello Steven,
>>
>>Well after a long process of working through your advice, including using
>>reflector, I've trailed it in other content pages and no error appears, so
>>it looks like the Test conent page did have some kind of missing
> dependancy
>>(although I still can't see it for looking).
>>
>>Anyway, thanks again for your help.
>>
>>Best regards
>>
>>John
>>
>>"John" wrote in message
>>news:Om6OLYZYIHA.5912@TK2MSFTNGP06.phx.gbl...
>>> Hello Steven,
>>>
>>> Thanks for your reply. I'll answer your questions in turn:
>>>
>>> Description - It all worked fine using Bruce's (other thread)
> suggestion.
>>> The problem appeared to occur after deleting the content files.
>>>
>>> Referencing content that's been removed - No, nothing as far as I can
>>> tell.
>>>
>>> Recompiled - Yes, but no change.
>>>
>>> Deploy - Unfortunately I haven't got anywhere that I can easily deploy
> if
>>> to at the moment so this is just in the dev environment (VS2008 Pro)
>>>
>>> Original version - Alas I didn't keep a copy (deleting a few content
> files
>>> didn't feel that significant)
>>>
>>> By the way, the compiler error message changes each time you run the
> page,
>>> or at least the 'App_Web_######, part does:
>>>
>>> Compiler Error Message: BC30652: Reference required to assembly
>>> 'App_Web__bcsdg1f, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=null'
>>> containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>
>>> My assumption was that it's needing a reference to the Master.Master
> part,
>>> but I don't quite understand as it appeared to be quite happy with
> Bruce's
>>> Interface type conversion before. So why does it think it needs one now
> I
>>> wonder?
>>>
>>> Thanks
>>>
>>> John
>>>
>>>
>>> "Steven Cheng[MSFT]" wrote in message
>>> news:FOHngeXYIHA.5204@TK2MSFTNGHUB02.phx.gbl...
>>>> Hi John,
>>>>
>>>> From your description, you're getting some compilation error after
>>>> applying
>>>> some changes(together with the one in another thread) to your
> application
>>>> ,correct?
>>>>
>>>> As you mentioned that you have removed some content page files, is
>>>> there
>>>> anything in the content pages that has been referenced by the master
>>>> pages
>>>> (or other pages left in the application)? For example, do you have any
>>>> variable or members in master or other class that reference some
>>>> certain
>>>> content page that has been removed?
>>>>
>>>> In addition, after you changed the application, have you recompiled the
>>>> application and deploy it again or is the problem occuring in
> development
>>>> environmente even when you use Visual Studio to run it?
>>>>
>>>> BTW, if you still have the original version(unchanged one) of your
>>>> application, I suggest you run it again, and check the following
>>>> assemby(mentioned in error message):
>>>>
>>>> App_Web_i0omzneq.dll
>>>>
>>>> you can try locating it from ASP.NET temporary folder and use reflector
>>>> to
>>>> see what classes does it include. This may also help some.
>>>>
>>>> Sincerely,
>>>>
>>>> Steven Cheng
>>>>
>>>> Microsoft MSDN Online Support Lead
>>>>
>>>>
>>>>
>>>> ==================================================
>>>>
>>>> Get notification to my posts through email? Please refer to
>>>>
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
>>>> ications.
>>>>
>>>>
>>>>
>>>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>>>> issues
>>>> where an initial response from the community or a Microsoft Support
>>>> Engineer within 1 business day is acceptable. Please note that each
>>>> follow
>>>> up response may take approximately 2 business days as the support
>>>> professional working with you may need further investigation to reach
> the
>>>> most efficient resolution. The offering is not appropriate for
> situations
>>>> that require urgent, real-time or phone-based interactions or complex
>>>> project analysis and dump analysis issues. Issues of this nature are
> best
>>>> handled working with a dedicated Microsoft Support Engineer by
> contacting
>>>> Microsoft Customer Support Services (CSS) at
>>>> http://msdn.microsoft.com/subscriptions/support/default.aspx .
>>>>
>>>> ==================================================
>>>>
>>>>
>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.
>>>>
>>>>
>>>> --------------------
>>>>>From: "John"
>>>>>Subject: Reference required to assembly error
>>>>>Date: Sun, 27 Jan 2008 19:00:20 -0000
>>>>
>>>>>
>>>>>Hi there,
>>>>>
>>>>>Can anyone decypher what this error is telling me? This is something
>>>>>that
>>>>>was working perfectly happily after making some changes recommended by
>>>> Bruce
>>>>>Barker (see:
>>>>>http://groups.google.co.uk/group/microsoft.public.dotne t.framework.aspne
> t/b
>>>>
> rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
>>>> method+in+master%27s+master#5fab6e75f47ff1c4)
>>>>>
>>>>>The only thing I've changed is that I deleted a couple of content page
>>>> files
>>>>>that weren't being used.
>>>>>
>>>>>Anyway, if you're able to point me in the right direction for tracking
>>>> down
>>>>>the problem I'd be very grateful.
>>>>>
>>>>>Best regards
>>>>>
>>>>>John
>>>>>
>>>>>PS the error gets thrown in the Page Load event of the content page,
>>>>>which
>>>>>has a master, which itself has a master.
>>>>>
>>>>>Compilation Error
>>>>>Description: An error occurred during the compilation of a resource
>>>> required
>>>>>to service this request. Please review the following specific error
>>>> details
>>>>>and modify your source code appropriately.
>>>>>
>>>>>Compiler Error Message: BC30652: Reference required to assembly
>>>>>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=null'
>>>>>containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>>>
>>>>>Source Error:
>>>>>
>>>>>
>>>>>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As
>>>>>System.EventArgs) Handles Me.Load
>>>>>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>>
>

Re: Reference required to assembly error

am 31.01.2008 05:36:15 von stcheng

Thanks for your reply John,

Glad to hear your progress. As for the isolated error behavior( two Master
page reference call can not coexists), I also feel abit strange. I suggest
you try remnove the <%@ MasterType VirtualPath="~/LeftNav.master" %>
directive in your content page and call both of the Masters through
interface(also define a interface for your direct Master) to see whether it
works.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
>From: "John"
>Subject: Re: Reference required to assembly error
>Date: Wed, 30 Jan 2008 06:41:22 -0000

>
>Hi Steven,
>
>Well I think I've finally tracked down the real problem. It appears to be
a
>problem of Master confusion. The code (in code behind Page Load event),
>which calls a method in the page's master's master (MainMaster) below
works
>fine:
>
>CType(Master.Master, ISetMenus).SetMenu("Products")
>
>
>I then added a page directive in the aspx page to get a reference to the
>page's direct master (LeftNav):
>
><%@ MasterType VirtualPath="~/LeftNav.master" %>
>
>
>...and added another call to a method in LeftNav master:
>
>CType(Master.Master, ISetMenus).SetMenu("Products")
>
>Master.SetLeftNavTree("Products", "Products")
>
>
>Adding this second line produces the compilation error, but either way
will
>work by itself (ie if you took out the CType line).
>
>Any clues as to why it does this and how I can reference both the direct
>master and the master's master at the same time?
>
>Thanks
>
>John
>
>
>
>"Steven Cheng[MSFT]" wrote in message
>news:8ifm3quYIHA.6844@TK2MSFTNGHUB02.phx.gbl...
>> Hi John,
>>
>> Thanks for your followup.
>>
>> Glad that you've got progress. So you're using isolation method to detect
>> the problem page. I agree that's a good method though sometimes may cause
>> more time. Anyway, if you got further results or need any help, please
>> feel
>> free to post here.
>>
>> Sincerely,
>>
>> Steven Cheng
>>
>> Microsoft MSDN Online Support Lead
>>
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> --------------------
>>>From: "John"
>>>Subject: Re: Reference required to assembly error
>>>Date: Wed, 30 Jan 2008 00:02:11 -0000
>>
>>>
>>>Hello Steven,
>>>
>>>Well after a long process of working through your advice, including using
>>>reflector, I've trailed it in other content pages and no error appears,
so
>>>it looks like the Test conent page did have some kind of missing
>> dependancy
>>>(although I still can't see it for looking).
>>>
>>>Anyway, thanks again for your help.
>>>
>>>Best regards
>>>
>>>John
>>>
>>>"John" wrote in message
>>>news:Om6OLYZYIHA.5912@TK2MSFTNGP06.phx.gbl...
>>>> Hello Steven,
>>>>
>>>> Thanks for your reply. I'll answer your questions in turn:
>>>>
>>>> Description - It all worked fine using Bruce's (other thread)
>> suggestion.
>>>> The problem appeared to occur after deleting the content files.
>>>>
>>>> Referencing content that's been removed - No, nothing as far as I can
>>>> tell.
>>>>
>>>> Recompiled - Yes, but no change.
>>>>
>>>> Deploy - Unfortunately I haven't got anywhere that I can easily deploy
>> if
>>>> to at the moment so this is just in the dev environment (VS2008 Pro)
>>>>
>>>> Original version - Alas I didn't keep a copy (deleting a few content
>> files
>>>> didn't feel that significant)
>>>>
>>>> By the way, the compiler error message changes each time you run the
>> page,
>>>> or at least the 'App_Web_######, part does:
>>>>
>>>> Compiler Error Message: BC30652: Reference required to assembly
>>>> 'App_Web__bcsdg1f, Version=0.0.0.0, Culture=neutral,
>> PublicKeyToken=null'
>>>> containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>>
>>>> My assumption was that it's needing a reference to the Master.Master
>> part,
>>>> but I don't quite understand as it appeared to be quite happy with
>> Bruce's
>>>> Interface type conversion before. So why does it think it needs one
now
>> I
>>>> wonder?
>>>>
>>>> Thanks
>>>>
>>>> John
>>>>
>>>>
>>>> "Steven Cheng[MSFT]" wrote in message
>>>> news:FOHngeXYIHA.5204@TK2MSFTNGHUB02.phx.gbl...
>>>>> Hi John,
>>>>>
>>>>> From your description, you're getting some compilation error after
>>>>> applying
>>>>> some changes(together with the one in another thread) to your
>> application
>>>>> ,correct?
>>>>>
>>>>> As you mentioned that you have removed some content page files, is
>>>>> there
>>>>> anything in the content pages that has been referenced by the master
>>>>> pages
>>>>> (or other pages left in the application)? For example, do you have any
>>>>> variable or members in master or other class that reference some
>>>>> certain
>>>>> content page that has been removed?
>>>>>
>>>>> In addition, after you changed the application, have you recompiled
the
>>>>> application and deploy it again or is the problem occuring in
>> development
>>>>> environmente even when you use Visual Studio to run it?
>>>>>
>>>>> BTW, if you still have the original version(unchanged one) of your
>>>>> application, I suggest you run it again, and check the following
>>>>> assemby(mentioned in error message):
>>>>>
>>>>> App_Web_i0omzneq.dll
>>>>>
>>>>> you can try locating it from ASP.NET temporary folder and use
reflector
>>>>> to
>>>>> see what classes does it include. This may also help some.
>>>>>
>>>>> Sincerely,
>>>>>
>>>>> Steven Cheng
>>>>>
>>>>> Microsoft MSDN Online Support Lead
>>>>>
>>>>>
>>>>>
>>>>> ==================================================
>>>>>
>>>>> Get notification to my posts through email? Please refer to
>>>>>
>>
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
>>>>> ications.
>>>>>
>>>>>
>>>>>
>>>>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>>>>> issues
>>>>> where an initial response from the community or a Microsoft Support
>>>>> Engineer within 1 business day is acceptable. Please note that each
>>>>> follow
>>>>> up response may take approximately 2 business days as the support
>>>>> professional working with you may need further investigation to reach
>> the
>>>>> most efficient resolution. The offering is not appropriate for
>> situations
>>>>> that require urgent, real-time or phone-based interactions or complex
>>>>> project analysis and dump analysis issues. Issues of this nature are
>> best
>>>>> handled working with a dedicated Microsoft Support Engineer by
>> contacting
>>>>> Microsoft Customer Support Services (CSS) at
>>>>> http://msdn.microsoft.com/subscriptions/support/default.aspx .
>>>>>
>>>>> ==================================================
>>>>>
>>>>>
>>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>>> rights.
>>>>>
>>>>>
>>>>> --------------------
>>>>>>From: "John"
>>>>>>Subject: Reference required to assembly error
>>>>>>Date: Sun, 27 Jan 2008 19:00:20 -0000
>>>>>
>>>>>>
>>>>>>Hi there,
>>>>>>
>>>>>>Can anyone decypher what this error is telling me? This is something
>>>>>>that
>>>>>>was working perfectly happily after making some changes recommended by
>>>>> Bruce
>>>>>>Barker (see:
>>>>>>http://groups.google.co.uk/group/microsoft.public.dotn et.framework.asp
ne
>> t/b
>>>>>
>>
rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
>>>>> method+in+master%27s+master#5fab6e75f47ff1c4)
>>>>>>
>>>>>>The only thing I've changed is that I deleted a couple of content page
>>>>> files
>>>>>>that weren't being used.
>>>>>>
>>>>>>Anyway, if you're able to point me in the right direction for tracking
>>>>> down
>>>>>>the problem I'd be very grateful.
>>>>>>
>>>>>>Best regards
>>>>>>
>>>>>>John
>>>>>>
>>>>>>PS the error gets thrown in the Page Load event of the content page,
>>>>>>which
>>>>>>has a master, which itself has a master.
>>>>>>
>>>>>>Compilation Error
>>>>>>Description: An error occurred during the compilation of a resource
>>>>> required
>>>>>>to service this request. Please review the following specific error
>>>>> details
>>>>>>and modify your source code appropriately.
>>>>>>
>>>>>>Compiler Error Message: BC30652: Reference required to assembly
>>>>>>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral,
>> PublicKeyToken=null'
>>>>>>containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>>>>
>>>>>>Source Error:
>>>>>>
>>>>>>
>>>>>>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e
As
>>>>>>System.EventArgs) Handles Me.Load
>>>>>>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>
>
>

Re: Reference required to assembly error

am 31.01.2008 07:50:24 von John

Hi Steven,

Yes, that's a good idea. I'll have a go at the interface route for both.

Thanks agian for all your help.

Best regards

John

"Steven Cheng[MSFT]" wrote in message
news:w5e2aL8YIHA.6844@TK2MSFTNGHUB02.phx.gbl...
> Thanks for your reply John,
>
> Glad to hear your progress. As for the isolated error behavior( two Master
> page reference call can not coexists), I also feel abit strange. I suggest
> you try remnove the <%@ MasterType VirtualPath="~/LeftNav.master" %>
> directive in your content page and call both of the Masters through
> interface(also define a interface for your direct Master) to see whether
> it
> works.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>
> --------------------
>>From: "John"
>>Subject: Re: Reference required to assembly error
>>Date: Wed, 30 Jan 2008 06:41:22 -0000
>
>>
>>Hi Steven,
>>
>>Well I think I've finally tracked down the real problem. It appears to be
> a
>>problem of Master confusion. The code (in code behind Page Load event),
>>which calls a method in the page's master's master (MainMaster) below
> works
>>fine:
>>
>>CType(Master.Master, ISetMenus).SetMenu("Products")
>>
>>
>>I then added a page directive in the aspx page to get a reference to the
>>page's direct master (LeftNav):
>>
>><%@ MasterType VirtualPath="~/LeftNav.master" %>
>>
>>
>>...and added another call to a method in LeftNav master:
>>
>>CType(Master.Master, ISetMenus).SetMenu("Products")
>>
>>Master.SetLeftNavTree("Products", "Products")
>>
>>
>>Adding this second line produces the compilation error, but either way
> will
>>work by itself (ie if you took out the CType line).
>>
>>Any clues as to why it does this and how I can reference both the direct
>>master and the master's master at the same time?
>>
>>Thanks
>>
>>John
>>
>>
>>
>>"Steven Cheng[MSFT]" wrote in message
>>news:8ifm3quYIHA.6844@TK2MSFTNGHUB02.phx.gbl...
>>> Hi John,
>>>
>>> Thanks for your followup.
>>>
>>> Glad that you've got progress. So you're using isolation method to
>>> detect
>>> the problem page. I agree that's a good method though sometimes may
>>> cause
>>> more time. Anyway, if you got further results or need any help, please
>>> feel
>>> free to post here.
>>>
>>> Sincerely,
>>>
>>> Steven Cheng
>>>
>>> Microsoft MSDN Online Support Lead
>>>
>>>
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>>
>>> --------------------
>>>>From: "John"
>>>>Subject: Re: Reference required to assembly error
>>>>Date: Wed, 30 Jan 2008 00:02:11 -0000
>>>
>>>>
>>>>Hello Steven,
>>>>
>>>>Well after a long process of working through your advice, including
>>>>using
>>>>reflector, I've trailed it in other content pages and no error appears,
> so
>>>>it looks like the Test conent page did have some kind of missing
>>> dependancy
>>>>(although I still can't see it for looking).
>>>>
>>>>Anyway, thanks again for your help.
>>>>
>>>>Best regards
>>>>
>>>>John
>>>>
>>>>"John" wrote in message
>>>>news:Om6OLYZYIHA.5912@TK2MSFTNGP06.phx.gbl...
>>>>> Hello Steven,
>>>>>
>>>>> Thanks for your reply. I'll answer your questions in turn:
>>>>>
>>>>> Description - It all worked fine using Bruce's (other thread)
>>> suggestion.
>>>>> The problem appeared to occur after deleting the content files.
>>>>>
>>>>> Referencing content that's been removed - No, nothing as far as I can
>>>>> tell.
>>>>>
>>>>> Recompiled - Yes, but no change.
>>>>>
>>>>> Deploy - Unfortunately I haven't got anywhere that I can easily deploy
>>> if
>>>>> to at the moment so this is just in the dev environment (VS2008 Pro)
>>>>>
>>>>> Original version - Alas I didn't keep a copy (deleting a few content
>>> files
>>>>> didn't feel that significant)
>>>>>
>>>>> By the way, the compiler error message changes each time you run the
>>> page,
>>>>> or at least the 'App_Web_######, part does:
>>>>>
>>>>> Compiler Error Message: BC30652: Reference required to assembly
>>>>> 'App_Web__bcsdg1f, Version=0.0.0.0, Culture=neutral,
>>> PublicKeyToken=null'
>>>>> containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>>>
>>>>> My assumption was that it's needing a reference to the Master.Master
>>> part,
>>>>> but I don't quite understand as it appeared to be quite happy with
>>> Bruce's
>>>>> Interface type conversion before. So why does it think it needs one
> now
>>> I
>>>>> wonder?
>>>>>
>>>>> Thanks
>>>>>
>>>>> John
>>>>>
>>>>>
>>>>> "Steven Cheng[MSFT]" wrote in message
>>>>> news:FOHngeXYIHA.5204@TK2MSFTNGHUB02.phx.gbl...
>>>>>> Hi John,
>>>>>>
>>>>>> From your description, you're getting some compilation error after
>>>>>> applying
>>>>>> some changes(together with the one in another thread) to your
>>> application
>>>>>> ,correct?
>>>>>>
>>>>>> As you mentioned that you have removed some content page files, is
>>>>>> there
>>>>>> anything in the content pages that has been referenced by the master
>>>>>> pages
>>>>>> (or other pages left in the application)? For example, do you have
>>>>>> any
>>>>>> variable or members in master or other class that reference some
>>>>>> certain
>>>>>> content page that has been removed?
>>>>>>
>>>>>> In addition, after you changed the application, have you recompiled
> the
>>>>>> application and deploy it again or is the problem occuring in
>>> development
>>>>>> environmente even when you use Visual Studio to run it?
>>>>>>
>>>>>> BTW, if you still have the original version(unchanged one) of your
>>>>>> application, I suggest you run it again, and check the following
>>>>>> assemby(mentioned in error message):
>>>>>>
>>>>>> App_Web_i0omzneq.dll
>>>>>>
>>>>>> you can try locating it from ASP.NET temporary folder and use
> reflector
>>>>>> to
>>>>>> see what classes does it include. This may also help some.
>>>>>>
>>>>>> Sincerely,
>>>>>>
>>>>>> Steven Cheng
>>>>>>
>>>>>> Microsoft MSDN Online Support Lead
>>>>>>
>>>>>>
>>>>>>
>>>>>> ==================================================
>>>>>>
>>>>>> Get notification to my posts through email? Please refer to
>>>>>>
>>>
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
>>>>>> ications.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Note: The MSDN Managed Newsgroup support offering is for non-urgent
>>>>>> issues
>>>>>> where an initial response from the community or a Microsoft Support
>>>>>> Engineer within 1 business day is acceptable. Please note that each
>>>>>> follow
>>>>>> up response may take approximately 2 business days as the support
>>>>>> professional working with you may need further investigation to reach
>>> the
>>>>>> most efficient resolution. The offering is not appropriate for
>>> situations
>>>>>> that require urgent, real-time or phone-based interactions or complex
>>>>>> project analysis and dump analysis issues. Issues of this nature are
>>> best
>>>>>> handled working with a dedicated Microsoft Support Engineer by
>>> contacting
>>>>>> Microsoft Customer Support Services (CSS) at
>>>>>> http://msdn.microsoft.com/subscriptions/support/default.aspx .
>>>>>>
>>>>>> ==================================================
>>>>>>
>>>>>>
>>>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>>>> rights.
>>>>>>
>>>>>>
>>>>>> --------------------
>>>>>>>From: "John"
>>>>>>>Subject: Reference required to assembly error
>>>>>>>Date: Sun, 27 Jan 2008 19:00:20 -0000
>>>>>>
>>>>>>>
>>>>>>>Hi there,
>>>>>>>
>>>>>>>Can anyone decypher what this error is telling me? This is something
>>>>>>>that
>>>>>>>was working perfectly happily after making some changes recommended
>>>>>>>by
>>>>>> Bruce
>>>>>>>Barker (see:
>>>>>>>http://groups.google.co.uk/group/microsoft.public.dot net.framework.asp
> ne
>>> t/b
>>>>>>
>>>
> rowse_thread/thread/fa2e000be69f8b5b/5fab6e75f47ff1c4?hl=en& lnk=st&q=Access+
>>>>>> method+in+master%27s+master#5fab6e75f47ff1c4)
>>>>>>>
>>>>>>>The only thing I've changed is that I deleted a couple of content
>>>>>>>page
>>>>>> files
>>>>>>>that weren't being used.
>>>>>>>
>>>>>>>Anyway, if you're able to point me in the right direction for
>>>>>>>tracking
>>>>>> down
>>>>>>>the problem I'd be very grateful.
>>>>>>>
>>>>>>>Best regards
>>>>>>>
>>>>>>>John
>>>>>>>
>>>>>>>PS the error gets thrown in the Page Load event of the content page,
>>>>>>>which
>>>>>>>has a master, which itself has a master.
>>>>>>>
>>>>>>>Compilation Error
>>>>>>>Description: An error occurred during the compilation of a resource
>>>>>> required
>>>>>>>to service this request. Please review the following specific error
>>>>>> details
>>>>>>>and modify your source code appropriately.
>>>>>>>
>>>>>>>Compiler Error Message: BC30652: Reference required to assembly
>>>>>>>'App_Web_i0omzneq, Version=0.0.0.0, Culture=neutral,
>>> PublicKeyToken=null'
>>>>>>>containing the type 'ASP.mainmaster_master'. Add one to your project.
>>>>>>>
>>>>>>>Source Error:
>>>>>>>
>>>>>>>
>>>>>>>Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e
> As
>>>>>>>System.EventArgs) Handles Me.Load
>>>>>>>Line 6: CType(Master.Master, ISetMenus).SetMenu("Products")
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>