Problem with username and password in default home page

Feb 2, 2011 at 2:31 PM

ok i am using a connection string of this type in the Web.config file.

<connectionStrings>

<add name="Xrm" connectionString="Authentication Type=Integrated; Server=http://servername/orgname; " />

</connectionStrings>

....

then

<membership default="CrmMembershipProvider">

  <providers>

        <add name="CrmMembershipProvider" type="Microsoft.Xrm.Portal.Web.Security.CrmContactRoleProvider" ConnectionStringName="Xrm"/>

  </providers>

</membership>

 

i want to use intergrated type but whhat is the right  thing to do to get this working. i am getting the below error

  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'Microsoft.Xrm.Portal.Web.Security.MembershipProvider'.

Source Error:

<!-- [HttpException]: Could not load type 'Microsoft.Xrm.Portal.Web.Security.MembershipProvider'. at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) [ConfigurationErrorsException]: Could not load type 'Microsoft.Xrm.Portal.Web.Security.MembershipProvider'. (C:\Users\theo.nikola\Desktop\PORTAL_RTW_R1\Installation\Website\Customer-Portal-R2\Website\web.config line 50) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType) at System.Web.Security.Membership.Initialize() at System.Web.UI.WebControls.LoginUtil.GetProvider(String providerName) at System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) at System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) at System.Web.UI.WebControls.Login.AttemptLogin() at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.pages_login_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->

Server Error in '/' Application.

Configuration Error

 

Line 48:     <membership defaultProvider="CrmMembershipProvider">
Line 49:       <providers>
Line 50:         <add name="CrmMembershipProvider" type="Microsoft.Xrm.Portal.Web.Security.MembershipProvider" ConnectionStringName="Xrm"/>
Line 51:       </providers>
Line 52:     </membership>


Source File: C:\Users\xxxxxx\Desktop\PORTAL_RTW_R1\Installation\Website\Customer-Portal-R2\Website\web.config    Line: 50


Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955



What should i put for username and password and what should the config be for the membership->provider.



Thanks

Feb 2, 2011 at 4:49 PM

I would recommend removing the membership and role provider from your web.config, then browse the website.  ASP.NET treats these a little differently and starts the providers before the site, but the real error you have will be swallowed and you won't see the relevent exception method.  Removing the providers will allow you to see the actual error.  The likely issue is that your CRM connection string is using integrated auth, which means that it will use the identity of the asp.net worker process to authenticate to CRM.  Unless you have turned on integrated auth and set impersonation to true in the web.config, the identity of your worker process is likely a protected asp.net account, which won't be able to connect to CRM.  You can set up a separate worker process and set the identity of that worker process, which will work, or you can change the connection string to type AD and provide domain credentials.  If you do that, remember to encrypt the connection string section.

Shan

Feb 3, 2011 at 7:24 AM
shan_mcarthur wrote:

I would recommend removing the membership and role provider from your web.config, then browse the website.  ASP.NET treats these a little differently and starts the providers before the site, but the real error you have will be swallowed and you won't see the relevent exception method.  Removing the providers will allow you to see the actual error.  The likely issue is that your CRM connection string is using integrated auth, which means that it will use the identity of the asp.net worker process to authenticate to CRM.  Unless you have turned on integrated auth and set impersonation to true in the web.config, the identity of your worker process is likely a protected asp.net account, which won't be able to connect to CRM.  You can set up a separate worker process and set the identity of that worker process, which will work, or you can change the connection string to type AD and provide domain credentials.  If you do that, remember to encrypt the connection string section.

Shan

 <?xml version="1.0"?>
<configuration>
 <configSections>
  <section name="microsoft.xrm.client" type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
     <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    </sectionGroup>
   </sectionGroup>
  </sectionGroup>
 </configSections>
 <appSettings>
  <add key="crm-site" value="Customer Portal"/>
  <add key="Microsoft.Xrm.Portal.Web.CmsServiceBaseUri" value="/Services/Cms.svc"/>
 </appSettings>
 <connectionStrings>
    <add name="Xrm" connectionString="Authentication Type=Integrated; Server=http://servername/orgname; "/>
   
  </connectionStrings>
 <system.web>
  <compilation debug="false">
   <expressionBuilders>
    <add expressionPrefix="Snippet" type="Microsoft.Xrm.Portal.Web.Compilation.SnippetExpressionBuilder, Microsoft.Xrm.Portal"/>
    <add expressionPrefix="SiteSetting" type="Microsoft.Xrm.Portal.Web.Compilation.SiteSettingExpressionBuilder, Microsoft.Xrm.Portal"/>
    <add expressionPrefix="CrmSiteMap" type="Microsoft.Xrm.Portal.Web.Compilation.CrmSiteMapExpressionBuilder, Microsoft.Xrm.Portal"/>
   </expressionBuilders>
   <assemblies>
    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
   </assemblies>
  </compilation>
  <authentication mode="Forms">
      <forms loginUrl ="/login" timeout ="525600"/>
  </authentication>
  <customErrors mode="Off" defaultRedirect="error.htm">
   <error statusCode="404" redirect="/Default.aspx"/>
  </customErrors>
  <trace enabled="true" requestLimit="100" mostRecent="true" pageOutput="false" localOnly="true"/>
  <machineKey validationKey="C59FBF57EDD94E6F4656C924A6A7E5272DDFBBD8C8A1D5D7FAC9FE0F2CF3E0B77C264D790447623880D142BED6946E1B346EF1B43D12865CDF76B11E9A776F95" decryptionKey="43FBE117302DF4D8ACE03AA20A4C26666A4253C91DDA8A82DCD2C0EF5E20E9B2" validation="SHA1" decryption="AES"/>
    <!--membership defaultProvider="CrmMembershipProvider">
      <providers>
        <add name="CrmMembershipProvider" type="Microsoft.Xrm.Portal.Web.Security.MembershipProvider" ConnectionStringName="Xrm"/>
      </providers>
    </membership-->
    <roleManager enabled="true" defaultProvider="CrmRoleProvider">
      <providers>
        <add name="CrmRoleProvider" type="Microsoft.Xrm.Portal.Web.Security.CrmContactRoleProvider"/>
      </providers>
    </roleManager>
    <siteMap enabled="true" defaultProvider="Crm">
      <providers>
        <clear/>
        <add name="Crm" type="Microsoft.Xrm.Portal.Web.CrmSiteMapProvider" securityTrimmingEnabled="true"/>
      </providers>
    </siteMap>
    <!-- change cookieRequireSSL to true for secure SSL sites -->
  <anonymousIdentification enabled="true" cookieName="anonprofile" cookieTimeout="43200" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" cookieless="UseCookies"/>
  <pages viewStateEncryptionMode="Always" validateRequest="true">
   <controls>
    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add tagPrefix="crm" namespace="Site" assembly="Site"/>
    <add tagPrefix="crm" namespace="Microsoft.Xrm.Portal.Web.UI.WebControls" assembly="Microsoft.Xrm.Portal"/>
    <add tagPrefix="events" tagName="EventCalendar" src="~/Controls/EventCalendar.ascx"/>
   </controls>
  </pages>
  <httpHandlers>
   <remove verb="*" path="*.asmx"/>
   <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
   <add verb="*" path="CrmMedia.axd" type="Microsoft.Xrm.Portal.Web.Handlers.MediaHandler, Microsoft.Xrm.Portal"/>
   <add verb="*" path="Cache.axd" type="Microsoft.Xrm.Portal.Web.Handlers.CacheInvalidationHandler, Microsoft.Xrm.Portal"/>
   <add verb="*" path="LiveID.axd" type="Microsoft.Xrm.Portal.Web.Handlers.LiveIdWebAuthenticationHandler, Microsoft.Xrm.Portal"/>
   <add verb="*" path="*.bmp" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.css" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.gif" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.htm" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.html" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.ico" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.jpg" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.js" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.png" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.swf" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.txt" type="System.Web.StaticFileHandler"/>
   <add verb="*" path="*.xml" type="System.Web.StaticFileHandler"/>
  </httpHandlers>
  <httpModules>
   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add name="CrmSiteContextModule" type="Microsoft.Xrm.Portal.Web.SiteContextModule, Microsoft.Xrm.Portal"/>
   <add name="EmbeddedResourceVirtualPathProvider" type="Microsoft.Xrm.Portal.Web.Modules.EmbeddedResourceVirtualPathProviderModule, Microsoft.Xrm.Portal"/>
  </httpModules>
  <httpRuntime maxRequestLength="102400"/>
 </system.web>
 <system.codedom>
  <compilers>
   <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <providerOption name="CompilerVersion" value="v3.5"/>
    <providerOption name="WarnAsError" value="false"/>
   </compiler>
  </compilers>
 </system.codedom>
 <system.serviceModel>
  <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  <services>
   <service name="Xrm.XrmCmsDataService">
    <endpoint binding="webHttpBinding" bindingConfiguration="cmsDataService" contract="System.Data.Services.IRequestHandler"/>
   </service>
  </services>
  <bindings>
   <webHttpBinding>
    <binding name="cmsDataService" maxReceivedMessageSize="104857600"/>
   </webHttpBinding>
  </bindings>
 </system.serviceModel>
 <system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <modules runAllManagedModulesForAllRequests="true">
   <remove name="ScriptModule"/>
   <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add name="CrmSiteContextModule" type="Microsoft.Xrm.Portal.Web.SiteContextModule, Microsoft.Xrm.Portal"/>
   <add name="EmbeddedResourceVirtualPathProvider" type="Microsoft.Xrm.Portal.Web.Modules.EmbeddedResourceVirtualPathProviderModule, Microsoft.Xrm.Portal" preCondition="managedHandler"/>
  </modules>
  <handlers>
   <remove name="WebServiceHandlerFactory-Integrated"/>
   <remove name="ScriptHandlerFactory"/>
   <remove name="ScriptHandlerFactoryAppServices"/>
   <remove name="ScriptResource"/>
   <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   <add name="CrmMedia" verb="*" path="CrmMedia.axd" preCondition="integratedMode" type="Microsoft.Xrm.Portal.Web.Handlers.MediaHandler, Microsoft.Xrm.Portal"/>
   <add name="CacheInvalidation" verb="*" path="Cache.axd" preCondition="integratedMode" type="Microsoft.Xrm.Portal.Web.Handlers.CacheInvalidationHandler, Microsoft.Xrm.Portal"/>
   <add name="LiveId" verb="*" path="LiveID.axd" preCondition="integratedMode" type="Microsoft.Xrm.Portal.Web.Handlers.LiveIdWebAuthenticationHandler, Microsoft.Xrm.Portal"/>
   <add name="Static-bmp" path="*.bmp" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-css" path="*.css" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-gif" path="*.gif" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-htm" path="*.htm" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-html" path="*.html" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-ico" path="*.ico" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-jpg" path="*.jpg" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-js" path="*.js" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-png" path="*.png" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-swf" path="*.swf" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-txt" path="*.txt" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
   <add name="Static-xml" path="*.xml" verb="*" type="System.Web.StaticFileHandler" preCondition="integratedMode"/>
  </handlers>
  <!-- Uncomment if running application in Classic mode -->
  <httpErrors errorMode="Custom">
   <remove statusCode="404"/>
   <error statusCode="404" path="/Default.aspx" responseMode="ExecuteURL"/>
  </httpErrors>
 </system.webServer>
 <microsoft.xrm.client>
  <contexts>
   <add name="Xrm" type="Xrm.XrmDataContext, Xrm"/>
  </contexts>
 </microsoft.xrm.client>
 <runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727"><dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
   </dependentAssembly>
   <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
   </dependentAssembly>
  </assemblyBinding></runtime>
 <location path="Services/Cms.svc">
  <system.web>
   <authorization>
    <allow roles="Customer Portal Administrators"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
</configuration>

the thing is now what user and password should i put in to login to the portal? My crm 4.0 credentials ,my windows credentials or something else? I do that  and i get an incorrect error message.

The thing is with AD i dont know my LDAP://... is .Like the tutorial of http://www.shanmcarthur.net/crm/developers-corner/customer-portal-modifications-for-demo-vpc-without-internet-connectivity at part 3. I dont know how to put for my LDAP link.Never used it before.

Feb 3, 2011 at 11:59 AM
Edited Feb 3, 2011 at 12:28 PM

Manage to get pass the connectionsstring error and used the AD for that after finding the right LDAP but a new error has shown after i entered the crm credentials i have .the error is :

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

 

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

 

Line 37: 						<asp:LoginView runat="server">
Line 38: 							<LoggedInTemplate>
Line 39: 								<%= SiteContext.Current.CurrentUserContact.GetPropertyValue<string>("fullname") %> &ndash;
Line 40: 								<asp:HyperLink NavigateUrl='<%$ CrmSiteMap: SiteMarker=Profile, Url %>' Text='<%$ Snippet: Profile Link Text, Manage Account %>' runat="server" /> &ndash;
Line 41:                                 <asp:LoginStatus ID="LoginStatus1" runat="server" />


Source File: c:\Users\xxxxxx\Desktop\PORTAL_RTW_R1\Installation\Website\Customer-Portal-R2\Website\MasterPages\Default.master    Line: 39

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.masterpages_default_master.__Render__control22(HtmlTextWriter __w, Control parameterContainer) in c:\Users\xxxxxx\Desktop\PORTAL_RTW_R1\Installation\Website\Customer-Portal-R2\Website\MasterPages\Default.master:39
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8686678
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.WebControls.LoginView.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8686678
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) +21
   Microsoft.Xrm.Portal.Web.UI.Adapters.FormRewriterControlAdapter.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +8686633
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8686678
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8686678
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8686678
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

What is this now? Error after an error. Thanks for your time.

 One thing i dont understand in the login and password of the Login page what user and password do we put there? in the example  of this page http://www.shanmcarthur.net/crm/developers-corner/customer-portal-modifications-for-demo-vpc-without-internet-connectivity you enter administrator as username but as password what is entereed???????????????? you say in your thread

Click on the logon link in the header and enter your network credentials:

 network credentials of what ?