Click here to Skip to main content
15,881,852 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Parameter 'xxxxx' not found in the collection Pin
jkirkerx7-Jul-12 12:30
professionaljkirkerx7-Jul-12 12:30 
GeneralRe: Parameter 'xxxxx' not found in the collection Pin
Jassim Rahma8-Jul-12 4:19
Jassim Rahma8-Jul-12 4:19 
GeneralRe: Parameter 'xxxxx' not found in the collection Pin
Jassim Rahma8-Jul-12 4:25
Jassim Rahma8-Jul-12 4:25 
GeneralRe: Parameter 'xxxxx' not found in the collection Pin
Jassim Rahma8-Jul-12 4:41
Jassim Rahma8-Jul-12 4:41 
GeneralRe: Parameter 'xxxxx' not found in the collection Pin
jkirkerx8-Jul-12 10:31
professionaljkirkerx8-Jul-12 10:31 
GeneralRe: Parameter 'xxxxx' not found in the collection Pin
jkirkerx7-Jul-12 8:46
professionaljkirkerx7-Jul-12 8:46 
QuestionCombine the two columns as a single column in excel file and insert into database Pin
kumar.ranjith.k30-Jun-12 21:20
kumar.ranjith.k30-Jun-12 21:20 
Questionasp.net 2010 custom control Pin
classy_dog30-Jun-12 20:02
classy_dog30-Jun-12 20:02 
I am having problem with one line compiling in a production C# 2010 web form application. The line of code that is having the problem is either of the two following lines:
<%@ language="c#" debug="true" trace="false" %>
<%@ Register TagPrefix="mp" namespace="Microsoft.Web.Samples.MasterPages" assembly="MasterPages" %>


the error message is: 'Error 1 Could not load file or assembly 'MasterPages' or one of its dependencies. The system cannot find the file specified.

I am hoping you can tell me what is wrong. Could a url to iis7 local server be incorrect?

I orginally had the folloing 3 extra lines of code of code that contained error messages:
Error 2 Unknown server tag 'mp:contentcontainer'. C:\Users\Sup\TestPage.aspx 14
Error 3 Unknown server tag 'mp:content'. C:\Users\Sup\TestPage.aspx 16
Error 4 Unknown server tag 'mp:content'. C:\Users\Sup\TestPage.aspx 22

I fixed the above error message by adding the following to the web config file:

<system.web><pages><controls>
  <add assembly="MasterPages" namespace="Microsoft.Web.Samples.MasterPages" tagPrefix="mp" />
        <add src="~/sub/TestMasterPage.ascx" tagName="contentcontainer" tagPrefix="mp" />	
  </controls></pages></system.web>


The following is code for TestPage.aspx that is causing the error:
<%@ language="c#" debug="true" trace="false" %>
<%@ Register TagPrefix="mp" namespace="Microsoft.Web.Samples.MasterPages" assembly="MasterPages" %>

<script runat="server">
    void ClickedCapitalize(object o, EventArgs e) {
        capitalized.Text = Server.HtmlEncode(tb1.Text.ToUpper());
    }

    void SayHello(object o, EventArgs e) {
        name.Text = Server.HtmlEncode(tb2.Text);
    }
</script>

<mp:contentcontainer runat="server" MasterPageFile="sub/TestMasterPage.ascx">

<mp:content id=region1 runat="server">
    <a href="MasterPages.htm" runat="server">Relative link test</a><br>
    <asp:textbox id=tb1 runat="server"/><asp:button text=Capitalize onclick=ClickedCapitalize runat="server"/>
    <asp:literal id=capitalized runat="server"/>
</mp:content>

<mp:content id="region2" runat="server">
    <asp:textbox id="tb2" runat="server"/><asp:button text="Say hello" onclick="SayHello" runat="server"/>
    Hello <asp:literal id="name" text="[name goes here]" runat="server"/>!
</mp:content>

</mp:contentcontainer>

AnswerRe: asp.net 2010 custom control Pin
Sandeep Mewara30-Jun-12 23:30
mveSandeep Mewara30-Jun-12 23:30 
Questiondebug aspx pages directly Pin
dcof30-Jun-12 13:49
dcof30-Jun-12 13:49 
AnswerRe: debug aspx pages directly Pin
Sandeep Mewara30-Jun-12 23:25
mveSandeep Mewara30-Jun-12 23:25 
GeneralRe: debug aspx pages directly Pin
dcof1-Jul-12 5:45
dcof1-Jul-12 5:45 
GeneralRe: debug aspx pages directly Pin
David Mujica2-Jul-12 5:15
David Mujica2-Jul-12 5:15 
QuestionC# 2010 linkage through master pages Pin
dcof29-Jun-12 19:38
dcof29-Jun-12 19:38 
AnswerRe: C# 2010 linkage through master pages Pin
Sandeep Mewara30-Jun-12 6:45
mveSandeep Mewara30-Jun-12 6:45 
GeneralRe: C# 2010 linkage through master pages Pin
dcof30-Jun-12 8:23
dcof30-Jun-12 8:23 
GeneralRe: C# 2010 linkage through master pages Pin
Sandeep Mewara1-Jul-12 1:38
mveSandeep Mewara1-Jul-12 1:38 
AnswerRe: C# 2010 linkage through master pages Pin
frostcox30-Jun-12 12:48
frostcox30-Jun-12 12:48 
QuestionHost server Characteristics Pin
WebMaster29-Jun-12 9:32
WebMaster29-Jun-12 9:32 
Generalxsl fo to xslt Pin
indian14329-Jun-12 8:37
indian14329-Jun-12 8:37 
GeneralTo save file in a stream instead of a physical location Pin
indian14329-Jun-12 5:58
indian14329-Jun-12 5:58 
QuestionAutomatically Sychronize TFS workitems update with custom tool Pin
amit sahu2029-Jun-12 1:36
amit sahu2029-Jun-12 1:36 
QuestionCCTV camera on ASP web Page Pin
sandeep Nishad29-Jun-12 0:19
sandeep Nishad29-Jun-12 0:19 
AnswerRe: CCTV camera on ASP web Page Pin
Sandeep Mewara29-Jun-12 3:42
mveSandeep Mewara29-Jun-12 3:42 
Questionhow to sent mail using smtp.bizmail.yahoo.com Pin
gyanendragope28-Jun-12 23:42
gyanendragope28-Jun-12 23:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.