Web administration tool

Last post 03-08-2007 11:31 AM by Ramzi.Aynati. 10 replies.

Sort Posts:

  • Web administration tool

    03-04-2007, 4:23 AM
    • Member
      point Member
    • sailalc
    • Member since 03-03-2007, 7:17 AM
    • Posts 7
    I am using VS 2005 and SQL Dev 2005. When trying to configure security in web administration tool i am geting an error unable to connect to datasource. Please post a reply.
  • Re: Web administration tool

    03-04-2007, 7:25 AM
    • Contributor
      2,240 point Contributor
    • Ramzi.Aynati
    • Member since 03-01-2007, 4:22 AM
    • Lebanon
    • Posts 531

    an easy way to solve your solution.

    Create a testing page and drag and drop a login control to this page. save all. then try using ur web admin tool.

    If it doesnt work, send me ur web.config in order to have a look.

    Regards
    Ramzi
    --------------------------------------------
    Dont Forget to mark the post as answered once replied.
  • Re: Web administration tool

    03-04-2007, 10:21 PM
    • Contributor
      2,315 point Contributor
    • GeorgeZ
    • Member since 11-16-2006, 6:09 AM
    • UpC
    • Posts 552

    What is your error message

     

  • Re: Web administration tool

    03-05-2007, 11:38 PM
    • Member
      point Member
    • sailalc
    • Member since 03-03-2007, 7:17 AM
    • Posts 7

    Thanks for the reply. I have tried but still the problem exists.Even I am not able to add a mdf file to the solutio explorer. here is is the web.config contents.

    <?xml version="1.0"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config.comments usually located in
        \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
     <appSettings/>
     <connectionStrings/>
     <system.web>
      <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            -->
      <compilation debug="true"/>
      <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
      <authentication mode="Windows"/>
      <!--
                The <customErrors> section enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.

            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
     </system.web>
    </configuration>
      

  • Re: Web administration tool

    03-06-2007, 1:09 AM
    Answer
    • Contributor
      2,240 point Contributor
    • Ramzi.Aynati
    • Member since 03-01-2007, 4:22 AM
    • Lebanon
    • Posts 531

    Well I think something is not generating right

    Nonetheless

    try including a connection string to ur database and try again

    <

    connectionStrings>

    <

    clear/>

    <

    add name="LocalSQLServer" connectionString="Data Source=localhost;Initial Catalog=catalog;Persist Security Info=True;User ID=sa;Password=sa"/>

    </

    connectionStrings>

    Inform me what happens

    Regards
    Ramzi
    --------------------------------------------
    Dont Forget to mark the post as answered once replied.
  • Re: Web administration tool

    03-07-2007, 3:58 AM
    • Member
      point Member
    • sailalc
    • Member since 03-03-2007, 7:17 AM
    • Posts 7

    Thanks for the reply.

     

    Even after doing that also I am geting the error " Unable to  connect to datasource". As per your request here is the web.config file. Kindly go through it. Even I am not able to add a database using solution explorer. 

    <?xml version="1.0"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config.comments usually located in
        \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
     <appSettings/>
     <connectionStrings/>
     <system.web>
      <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            -->
      <compilation debug="true"/>
      <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
      <authentication mode="Windows"/>
      <!--
                The <customErrors> section enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.

            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
     </system.web>
    </configuration>

  • Re: Web administration tool

    03-07-2007, 4:12 AM
    • Contributor
      2,240 point Contributor
    • Ramzi.Aynati
    • Member since 03-01-2007, 4:22 AM
    • Lebanon
    • Posts 531

    try changing the authentication mode like so:

    And include a connection string as i mentioned in a previous post. 

    <

    authentication mode="Forms">

    <

    forms name="myAppCookie" />

    </

    authentication>
    Regards
    Ramzi
    --------------------------------------------
    Dont Forget to mark the post as answered once replied.
  • Re: Web administration tool

    03-07-2007, 8:35 AM
    • Member
      162 point Member
    • Simo A.
    • Member since 03-07-2007, 9:58 AM
    • Posts 35

    Delete the xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0" atribute from configuration tag. This usually generates weird errors at runtime.

    You can't have everything...Where would you put it?...
    Joy, frustration, excitement, madness, aha's, headaches ... codito ergo sum!
  • Web administration tool -> Security ERROR....

    03-07-2007, 8:59 AM
    • Member
      2 point Member
    • Durgesh
    • Member since 03-06-2007, 7:06 PM
    • Posts 1

    I also have same problem...

    I can't open my Security link under WAT(Web Administration Tool)...

    I have also tested by creating New Web Application.. But unfortunately it dosent work....

    can anyone tell me how to drop aspnetdb table in SQLEXPRESS and regenerate it...(I thing there is a problem in database)

    here ia ERROR MSG which i get when i click on Security link under WAP

    There is aproblem with your data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button to be redirected to a page where you can choose a new data store...

    The following message may help in diagnosing the proble,: AN error occured while attempting to initialize a System.Data.SqlClient.SqlConnection object. The value that was provided for the connection string may be wrong, or it may contain an invalid syntax. Parameter name: connectionString

     

    Please Reply me...

    Thanks in advance....

  • Re: Web administration tool

    03-08-2007, 10:57 AM
    • Member
      point Member
    • sailalc
    • Member since 03-03-2007, 7:17 AM
    • Posts 7

    Thanks for the replies. 

    I have added con string. Changed authentication mode to forms. deleted the xmlns tag. Now I am geting a deferent error message as follows 

    There is aproblem with your data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button to be redirected to a page where you can choose a new data store...

    The following message may help in diagnosing the problem. The entry Local sqlserver has already been added.(c:\inetpub\wwwroot\website6\web.config line 13.

    at the boottom "Select data source" commond button

    Actually initially i was using sql express edition. Later i installed an new instance of sql dev 2005 edition. Is it likely to cause problem?

     

     

  • Re: Web administration tool

    03-08-2007, 11:31 AM
    • Contributor
      2,240 point Contributor
    • Ramzi.Aynati
    • Member since 03-01-2007, 4:22 AM
    • Lebanon
    • Posts 531

    Add the following also

    <

    roleManager enabled="true" defaultProvider="SqlRoleProvider">

    <

    providers>

    <

    clear/>

    <

    add name="SqlRoleProvider" connectionStringName="LocalSQLServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

    </

    providers>

    </

    roleManager>
    Regards
    Ramzi
    --------------------------------------------
    Dont Forget to mark the post as answered once replied.
Page 1 of 1 (11 items)