Click here to Skip to main content
15,891,033 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

It looks like some configuration issue. Most basic reason could be using ASP.Net version 1.1 instead of 2.0 (where as website is designed in 2.0)

Use Run -> 'inetmgr'
Find you website hosted in 'Defualt Web Site'. Right click the website hosted and click Properties.

Check if the application Name is assigned to the website.
Now, in ASP.NET tab, check 'ASP.Net version'. Based on the framework websote is designed, update it and save it.

Then reset the IIS. (Run -> 'iisreset')

Hope that helps.

Thanks,
Sandeep.
 
Share this answer
 
hi thanks
i got solution but now i got database error.error is-
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.??
 
Share this answer
 
v3
can you tell me the error details completely so that i can solve the issue
 
Share this answer
 
He HAS given all the details, he just ignored me when I Said not to post more than once, he posted the same thing three times. His problem is that his code cannot log into the DB on his server, that, and he does not listen.
 
Share this answer
 
hi christian
I posted 3 posts cause of site errors.even i cant delete 2 articles now.

hi please answer me as i am facing database access error as i mentioned above.is sql server is not supported in localhost? if i use hosted server then how to configure everything to run applications??
 
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