Menu
Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
ASP.NET
Web Deployment
Error when I am hosting my ASP.NET sites
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Star" data-source="post: 170596" data-attributes="member: 51241"><p>Hi Bress,</p><p></p><p>It seems that you havent deployed your files properly to the server. Please kindly follow this steps and hope it will help you:</p><p></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">1. Open your project via Visual Studio tool</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">2. On the Solution Explorer window, right click your project and select "Publish Website"</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">3. Please publish your website to your local folder, such as C:\Project</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">4. You will see all the files and subfolders on C:\Project, however, you will not see any code-behind files</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">5. Please upload whatever you see on C:\Project to the server via FTP</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">Please note that if your website does not even work on your local PC, it will never ever work on the server. This is why it is important to ensure that your site works on your local PC first</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'">Also, please kindly add a customError tag on your web.config so that you can view the error message directly (if in case there is an error). This can be something like:</span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"><span style="font-family: 'Courier New'"><customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"></span></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"><span style="font-family: 'Courier New'"><error statusCode="403" redirect="NoAccess.htm" /></span></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"><span style="font-family: 'Courier New'"><error statusCode="404" redirect="FileNotFound.htm" /></span></span></span></p><p><span style="color: #333333"><span style="font-family: 'Tahoma'"><span style="font-family: 'Courier New'"></customErrors></span></span></span></p></blockquote><p></p>
[QUOTE="Star, post: 170596, member: 51241"] Hi Bress, It seems that you havent deployed your files properly to the server. Please kindly follow this steps and hope it will help you: [COLOR=#333333][FONT=Tahoma]1. Open your project via Visual Studio tool[/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma]2. On the Solution Explorer window, right click your project and select "Publish Website"[/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma]3. Please publish your website to your local folder, such as C:\Project[/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma]4. You will see all the files and subfolders on C:\Project, however, you will not see any code-behind files[/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma]5. Please upload whatever you see on C:\Project to the server via FTP [/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma]Please note that if your website does not even work on your local PC, it will never ever work on the server. This is why it is important to ensure that your site works on your local PC first[/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma]Also, please kindly add a customError tag on your web.config so that you can view the error message directly (if in case there is an error). This can be something like: [/FONT][/COLOR] [COLOR=#333333][FONT=Tahoma][FONT=Courier New]<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors>[/FONT][/FONT][/COLOR] [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
ASP.NET
Web Deployment
Error when I am hosting my ASP.NET sites
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom