|
Home > Archive > Microsoft Content Management Server > February 2005 > Blank Page When Changing the Inherits page directive in a UserControl???
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Blank Page When Changing the Inherits page directive in a UserControl???
|
|
|
| Dear Group,
Quick Question:
On my template I am calling a UserControl called HeadTags.ascx.
In the Page diretives I have Inherits="LEFCMS.CustomControls.HeadTags",
but when I change Inherits="LEFCMS.CustomControls.HeadTags" to
Inherits="LEFCMS.HeadTags", the CMS pushes a blank page without error
to the brower...
Is it normal to get a blank page like this???
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=utf-8"></HEAD>
<BODY></BODY></HTML>
Since I would expect to see an error, I was wondering if you could try
this on your local instance and let me know what happens...
Best regards,
| |
|
| I have found some info on the blank MCMS page, but I am still having
problems understanding how it is related to what I have seen with my
UserControl...
Please see this Blog:
A blank page is returned when you request a MCMS 2002 resource that you
do not have permissions to access
http://spaces.msn.com/members/ajaymistry/Blog/cns!1pQ1XJoc8DzgOX5hnBk8iS4Q!226.entry
| |
|
| I have verified that this is a MCMS 2002 issue and not a .NET issue.
In a simple .NET Web Application I get the following error:
Server Error in '/WebApplication2' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.
Parser Error Message: Could not load type
'WebApplication22.WebUserControl1'.
Source Error:
Line 1: <%@ Control Language="vb" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.vb"
Line 2: Inherits="WebApplication22.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line 3: <P>User Control:</P>
Source File: c:\inetpub\wwwroot\WebApplication2\WebUs
erControl1.ascx
Line: 1
| |
| Stefan [MSFT] 2005-02-22, 7:48 am |
| Hi Cello,
that is more an ASP.NET than a MCMS problem.
Please follow up on an ASP.NET related newsgroup.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109021763.239136.126950@z14g2000cwz.googlegroups.com...
> I have verified that this is a MCMS 2002 issue and not a .NET issue.
> In a simple .NET Web Application I get the following error:
>
> Server Error in '/WebApplication2' Application.
> --------------------------------------------------------------------------
------
>
> Parser Error
> Description: An error occurred during the parsing of a resource
> required to service this request. Please review the following specific
> parse error details and modify your source file appropriately.
>
> Parser Error Message: Could not load type
> 'WebApplication22.WebUserControl1'.
>
> Source Error:
>
>
> Line 1: <%@ Control Language="vb" AutoEventWireup="false"
> Codebehind="WebUserControl1.ascx.vb"
> Line 2: Inherits="WebApplication22.WebUserControl1"
> TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
> Line 3: <P>User Control:</P>
>
>
> Source File: c:\inetpub\wwwroot\WebApplication2\WebUs
erControl1.ascx
> Line: 1
>
| |
|
|
| Stefan [MSFT] 2005-02-23, 7:50 am |
| Hi Cello,
the error message you posted seems not to be related to the article you
pointed to.
Could you please tell me why you assume that this is related?
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109094205.118981.116610@o13g2000cwo.googlegroups.com...
> Dear Stefan,
>
> I will have to respectfully disagree with you at this time. My example
> proves that this is a MSCMS 2002 issue and Microsoft seems to be aware
> of it as well.
>
> Please see
> http://support.microsoft.com/defaul...kb;EN-US;838231
>
> Best regards,
>
> Cello
>
| |
|
| Well,
That was the only thing I could find on it and the output was the same,
a blank page.
Stefan, have you tried doing what I have outlined in my original post
whithin your development environment? What happens? Do you get an
error message or a blank page?
Best regards,
Marcello
| |
| Stefan [MSFT] 2005-02-23, 5:59 pm |
| Hi Cello,
I did not have time to try it.
Does the scenario apply?
Are you trying to request a resource where you don't have rights to?
If yes, please request the hotfix from Microsoft and test if it resolves
your issue.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109167284.063548.231490@l41g2000cwc.googlegroups.com...
> Well,
>
> That was the only thing I could find on it and the output was the same,
> a blank page.
>
> Stefan, have you tried doing what I have outlined in my original post
> whithin your development environment? What happens? Do you get an
> error message or a blank page?
>
> Best regards,
>
> Marcello
>
| |
|
| Dear Stefan,
Please scratch the hotfix idea as I might have tried to attach more
meaning to it than required. Here is the real issue I am trying to
resolve:
On my template I am calling a UserControl called HeadTags.ascx.
In the Page diretives I have Inherits="LEFCMS.CustomControls.HeadTags",
but when I change Inherits="LEFCMS.CustomControls.HeadTags" to
Inherits="LEFCMS.HeadTags", the CMS pushes a blank page without error
to the brower... I am also not seeing other errors bubble up as
espected... I have been developing on this server for over 14 months
now and I have never seen this behavior before.
Is it normal to get a blank page like this???
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=utf-8"></HEAD>
<BODY></BODY></HTML>
Since I would expect to see an error, I was wondering if you could try
this on your local instance and let me know what happens...
Best regards,
| |
| Stefan [MSFT] 2005-02-23, 5:59 pm |
| Hi Cello,
here is how MCMS works to give you an idea why this cannot be an MCMS
problem:
- The request comes in to MCMS
- MCMS ISAPI filter rewrites the incoming request to the following format:
/templateproject/template.aspx?NRMODE=Published&...
- After this the ISAPI filter passes this over to IIS which passes the
request over to ASP.NET.
What does this mean: MCMS is not responsible on the content returned for
pages, user controls or what soever as it is not involved!
The only thing MCMS serves itself are resource gallery items - and in this
situation you can get the blank page. If a resource gallery item is
involved.
For all posting content the only MCMS stuff are: console control,
placeholder controls which are normal ASP.NET server and user web controls.
MCMS does in no way interact with a user control!
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109168474.451811.256410@z14g2000cwz.googlegroups.com...
> Dear Stefan,
>
> Please scratch the hotfix idea as I might have tried to attach more
> meaning to it than required. Here is the real issue I am trying to
> resolve:
>
> On my template I am calling a UserControl called HeadTags.ascx.
>
> In the Page diretives I have Inherits="LEFCMS.CustomControls.HeadTags",
>
> but when I change Inherits="LEFCMS.CustomControls.HeadTags" to
> Inherits="LEFCMS.HeadTags", the CMS pushes a blank page without error
> to the brower... I am also not seeing other errors bubble up as
> espected... I have been developing on this server for over 14 months
> now and I have never seen this behavior before.
>
> Is it normal to get a blank page like this???
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=utf-8"></HEAD>
> <BODY></BODY></HTML>
>
>
> Since I would expect to see an error, I was wondering if you could try
> this on your local instance and let me know what happens...
>
> Best regards,
>
| |
|
| Thank you for your prompt reply,
Yes, I am totally aware of the inner workings of MCMS and that is why I
am so confused...
I have created an ASP.NET Web App as a test and tested the same "bad"
code. Interestingly enough, the ASP.NET DOES publishe an error like
this:
Server Error in '/WebApplication2' Application.
------------------------------------------------------------=AD------------=
--------
Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.
Parser Error Message: Could not load type
'WebApplication22.WebUserControl1'.
Source Error:
Line 1: <%@ Control Language=3D"vb" AutoEventWireup=3D"false"
Codebehind=3D"WebUserControl1.ascx.vb"
Line 2: Inherits=3D"WebApplication22.WebUserControl1"
TargetSchema=3D"http://schemas.microsoft.com/intellisense/ie5" %>
Line 3: <P>User Control:</P>
Source File: c:\inetpub\wwwroot\WebApplication2\WebUs
erControl1.ascx
Line: 1
But, somehow, this error is not being shown whithin a MCMS template...
Wierd, hum???
Best regards,
Marcello
| |
| Stefan [MSFT] 2005-02-23, 5:59 pm |
| Hi Cello,
please MCMS enable the project and check if the behaviour changes.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109169650.519096.155110@o13g2000cwo.googlegroups.com...
Thank you for your prompt reply,
Yes, I am totally aware of the inner workings of MCMS and that is why I
am so confused...
I have created an ASP.NET Web App as a test and tested the same "bad"
code. Interestingly enough, the ASP.NET DOES publishe an error like
this:
Server Error in '/WebApplication2' Application.
------------------------------------------------------------_---------------
-----
Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.
Parser Error Message: Could not load type
'WebApplication22.WebUserControl1'.
Source Error:
Line 1: <%@ Control Language="vb" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.vb"
Line 2: Inherits="WebApplication22.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line 3: <P>User Control:</P>
Source File: c:\inetpub\wwwroot\WebApplication2\WebUs
erControl1.ascx
Line: 1
But, somehow, this error is not being shown whithin a MCMS template...
Wierd, hum???
Best regards,
Marcello
| |
|
| Can you please send some info on MCMS Enabling a project?
Thank you,
Cello
| |
| Stefan [MSFT] 2005-02-23, 5:59 pm |
| Hi Cello,
sure!
In VS.NET choose:
- Project - Enable as MCMS Project
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109173035.884734.320740@z14g2000cwz.googlegroups.com...
> Can you please send some info on MCMS Enabling a project?
>
> Thank you,
>
> Cello
>
| |
|
| Simply Enabling MCMS Project did not cause the error to go blank. What
do you suggest I do next?
Best regards,
Cello
| |
| Stefan [MSFT] 2005-02-23, 5:59 pm |
| Hi Cello,
then copy the working page to the project where you have seen the problem.
If you have the same repro, then it is something different in the two pages
you are testing.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109175617.361661.324880@l41g2000cwc.googlegroups.com...
> Simply Enabling MCMS Project did not cause the error to go blank. What
> do you suggest I do next?
>
> Best regards,
>
> Cello
>
| |
|
| Ha! Interesting...
When I "Enabled MCMS Project" on the server with the blank page issue,
I get the following popup error in VS.NET:
"Microsoft Development Environment"
Could not create virtual directory 'http://localhost/BlankPageTest/CMS'
in location 'c:\program files\microsoft content...\server\IIS_CMS\'.
So truthfully, I can't tell if my previous test was valid...
Any ideas? It is starting to seem this is a permission issue...
Best regards,
Cello
| |
| Stefan [MSFT] 2005-02-24, 7:51 am |
| Hi Cello,
looks as if you are not working on the default website.
Check this article:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm#AF0A8BBF-1488-450F-ADD1-E555312ADEC9
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------
"Cello" <mjaspan@gmail.com> wrote in message
news:1109186031.196373.257700@o13g2000cwo.googlegroups.com...
> Ha! Interesting...
>
> When I "Enabled MCMS Project" on the server with the blank page issue,
> I get the following popup error in VS.NET:
>
> "Microsoft Development Environment"
>
> Could not create virtual directory 'http://localhost/BlankPageTest/CMS'
> in location 'c:\program files\microsoft content...\server\IIS_CMS'.
>
> So truthfully, I can't tell if my previous test was valid...
>
> Any ideas? It is starting to seem this is a permission issue...
>
> Best regards,
>
> Cello
>
| |
|
| Dear Stefan,
You are correct, after figuring my way around this issue, everything
came clear and my issue has been resolved.
For the benefit of the group, it is important to note that the article
above may not address your needs if you have setup two websites on port
80 and one of them is stoped. It is apparent that VS.NET cannot tell
if the site is stoped or not and will give an error.
Best regards,
Cello
|
|
|
|
|