0
Reply

Why can't the sample "101 Visual Basic and C# Code Samples" work on remoting web site?

mycwcgr

mycwcgr

Aug 25 2005 9:18 PM
1.7k
I have done the sample code "Security" in the package "101 Visual Basic and C# Code Samples" (http://www.microsoft.com/downloads/details.aspx?FamilyId=08E3D5F8-033D-420B-A3B1-3074505C03F3&displaylang=en). The sample "Security" can work well in local IIS, but when I upload to Free ASP.NET 2.0 Beta 2 Hosting (https://www.hostmysite.com/aspnet/) ,the sample "Security" cannot work , why? I think maybe there are some problem with SQL 2005 Express database.


The following is content in web.config


 <connectionStrings>
  <add name="App_DataConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
   providerName="System.Data.SqlClient" />
 </connectionStrings>





The error info when I try to login into system.

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Please try the following:

  • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
  • If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
  • Click the Back button to try another link.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


Technical Information (for support personnel)

  • Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
  • Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.