Tag ERROR Options
Ig_p118
Posted: Saturday, October 28, 2006 10:27:49 AM
Rank: Fanatic

Joined: 7/21/2006
Posts: 255
Location: Salerno - Italy
I have these error with ASPNET tag into template:

Server Error in '/' Application.


StartIndex cannot be less than zero.
Parameter name: startIndex
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex




The template is:

<?ASPNET_FORM>
<?UMBRACO_MACRO macroAlias="2ndLevelNavigation" ></?UMBRACO_MACRO>
<div>

<h1><UMBRACO_GETITEM field="PageHeader"/></h1>
<?UMBRACO_GETITEM field="MainContent"/>

<?UMBRACO_MACRO macroAlias="MemberLogin" LogOutOnly="0" LoggedInText="Benvenuto, %%NAME%%" SignOutLinkText="%%NAME%% Logged Out"></?UMBRACO_MACRO>

<p id="bottomInfo">
<?UMBRACO_GETITEM field="#LastUpdate"/>
<?UMBRACO_GETITEM field="updateDate" formatAsDate="true"/>, <?UMBRACO_GETITEM field="#createdBy"/> <?UMBRACO_GETITEM field="writerName"/></p>
</div>
<?ASPNET_FORM>

Thank you

Red Consulting s.a.s - Umbraco from v1.0
PeterD
Posted: Saturday, October 28, 2006 10:57:08 AM

Rank: Fanatic

Joined: 7/20/2006
Posts: 485
Location: NL
Biagio wrote:

The template is:

<?ASPNET_FORM>
<?UMBRACO_MACRO macroAlias="2ndLevelNavigation" ></?UMBRACO_MACRO>
<div>

<h1><UMBRACO_GETITEM field="PageHeader"/></h1>
<?UMBRACO_GETITEM field="MainContent"/>

<?UMBRACO_MACRO macroAlias="MemberLogin" LogOutOnly="0" LoggedInText="Benvenuto, %%NAME%%" SignOutLinkText="%%NAME%% Logged Out"></?UMBRACO_MACRO>

<p id="bottomInfo">
<?UMBRACO_GETITEM field="#LastUpdate"/>
<?UMBRACO_GETITEM field="updateDate" formatAsDate="true"/>, <?UMBRACO_GETITEM field="#createdBy"/> <?UMBRACO_GETITEM field="writerName"/></p>
</div>
<?ASPNET_FORM>

Thank you


You need to close the tag properly:
Code:

<?ASPNET_FORM>
</?ASPNET_FORM>


Working on an events-calendar with recursion. Post requests on my blog!
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.