Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i get errors when i test my aspx file in my browser under iis localhost.i first created website by visual studio's website->copy website menu and placed the folder in my iis localhost's www folder as its rule.the error i get is syntax error in my aspx files first line.but the asp.net website project runs well from visual studio via browser.i created a web application and in not running in localhost then how will it run in hosted server.please solve.
Posted

For some reason, I Can't delete posts right now. Why did you post this three times ?

Is your IIS configured to run ASP.NET ? Doesn't sound like it.
 
Share this answer
 
Man, you must give full details like error, steps, etc., so that we can solve quickly
 
Share this answer
 
See how convoluted the discussion is because you asked the same question three times ? And you make it worse, by adding details as 'answers' to your posts. In future, make ONE post. Then, EDIT it when you want to add details.

"sorry guys now my aspx files run but now i see database error.error follows-
Cannot open database "NationalIdDatabase" requested by the login. The login failed.Login failed for user 'ONLINEPC\ASPNET'

how can it be i used sql server 2005 for my project.server name was given-
localhost\SQLEXPRESS in my project.??"

The error message means what it says. The login failed. Has the server you deployed to got the database installed on it ? I assume so. However, it looks like the connection string you deployed works on your local machine and local SQL Server instance, but does not work now that it's trying to log in to SQL Server on the server machine.
 
Share this answer
 
How do i edit to add next follow question? I posted 3 same q cause it was errors happened somehow.whatever how can i config sql server for localhost?
-Mridul(www.learnearnshare.com i need article writers.)
 
Share this answer
 
hello guys I did not configure any thing.tell me what steps to do that if neccessary. my asp.net is version 2.

in browser i typed http://localhost/test-deploy/voting.aspx
where test-deploy is my website folder.i get the following error-
The file '/MasterPage.master' does not exist

error is in my voting.aspx file's first line.first line is below-
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Voting.aspx.cs" Inherits="VotingWebSite.Voting" %>;

the file Masterpage.master exists in my website.why the error and what to do??
 
Share this answer
 
sorry guys now my aspx files run but now i see database error.error follows-
Cannot open database "NationalIdDatabase" requested by the login. The login failed.Login failed for user 'ONLINEPC\ASPNET'

how can it be i used sql server 2005 for my project.server name was given-
localhost\SQLEXPRESS in my project.?? how?
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900