[Help] very confused, publish WebMatrix

Discussion in 'ASP.NET / ASP.NET Core' started by BoBoDev, Oct 24, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello, I have trying to get this working for months. And the process is unsuccessful and painful. There isn't a clear straight forward instruction and the ticket helper guys just tell me to ask here.

    So,

    You know the new WebMatrix from MS? I am building my site using it and I need to publish it. For so long without clear help from the ticket guys, I finally found out from ASP .Net forum that I need to use Web Deploy, not FTP.

    I tried to connect to the host using Web Deploy, and I couldn't do it.

    I have,
    server: https://web702.discountasp.net:8172/MsDeploy.axd
    username: my main control panel name (not FTP one)
    password: my main control panel password
    SiteName: www.mydomin.com/
    Destination URL: www.mydomin.com/

    Those are all the feilds avaliable on Web Matrix deploy utility.
    I clicked the test connection, and it said my user and password is not good, but, I already used my main name and password. There is no telling if my SiteName is good or not, because I can do www.asd.com and it also tells me I used the wrong password.


    Can someone kindly enough to tell me how to "publish webmatrix sample using web deploy" from start to finish, covering all cases from IIS setup on control panel to WebDeploy connection setup and all? I already enabled Web Deploy from IIS Manager Modules and restared the IIS. Nothing works.

    I am feeling really down on this. For so many months, I still can't even try publish a sample web build from WebMatrix. Please help this clueless dumb BoBo. :(

    Thank you so much.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Did you enable IIS Manager access for the control panel user? Web deploy requires IIS manager access.
     
  3. ...Who told you that you have to use the Web Deploy option to publish?
    I just tested tested the FTP option on my IIS7 account and it worked.
     
  4. Hello
    for #1)
    I am using control panel user, which is the default of all account. And it is IIS Manager access enabled.

    For #2)
    I used FTP and this is what I get. I have asked this to ticket guys already. I still can't get this resolved.

    I asked the ASP.Net forum directly, and they said I should use web deploy because not all files are published.

    Code:
    Configuration 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: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
    
    Source Error: 
    
    
    Line 255:            <providers>
    Line 256:                <add name="AspNetSqlMembershipProvider"
    Line 257:                    type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Line 258:                    connectionStringName="LocalSqlServer"
    Line 259:                    enablePasswordRetrieval="false"
    
    Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config    Line: 257 
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 
    
    

    So, what am I suppose to do? T-T
     
  5. What version of web matrix are you using? Beta 1 or Beta 2?
     
  6. I am using Beta2 right now, but, I tried both Beta1 and Beta2.
     
  7. Use beta 2.

    And add this to your web.config


    <connectionStrings>
    <add name="LocalSqlServer" connectionString="x" providerName="System.Data.SqlClient"/>
    </connectionStrings>

    If you still have an issue, please post the exact error message you are getting and let me know what web server your site is hosted on. You can find this in your control panel.
     
  8. Thank you so much. :D:D Tears in joy. My site is runing ok now. I am able to run my code and show the page. Thank you thank you thank you.
     
  9. mjp

    mjp

    Chuck to the rescue!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page