473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Unknown error when web site is published

This is a really weird one and very odd.

I have written a web site using VS2005 and .Net 2.0, all works very well
when running it locally. However when I publish it to my web server (hosted
by HELM), I get unknown errors when I connect to some of the aspx pages,
however if I keep surfing around my web site the pages suddenly start
working for no apparent reason. Once each page has been displayed at least
once that particular page won't thow an error again, however on another
machine I can have the same problem (although it appears not to be quite so
bad).

Anyone have any ideas what might be causing this behaviour. Web server not
loading the pages properly until their cached properly? Is there any code I
can use to slow down the loading of the pages - I'm grabbing at straws
here!!

I have put an friendly error page so at least the user doesn't see the ugly
..NET error
Any help / pointers will be greatly appreciated.

TIA

Tim
Feb 3 '07 #1
3 1360
Are you using the web site project that comes with the pre-SP1 version fo VS
2005? I'm asking because you mention jumping around seems to work after a
page is called once. In the web site project, pages are compiled more on the
fly than in VS 2003 web projects. That means they don't get pre-compiled.
One of the biggest issues that comes about is when you're sharing classes
from other directories. Those files don't usually get compiled in the order
we would expect. A new project was introduced soon after the launch of VS
2005 called the Web Application Project. This mimics the web project from
previous versions of VS and enables you to pre-compile the entire site. I
don't know which project type you're using, but it seems to fit this
scenario.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Timbo" <me@home.comwrote in message
news:OH*************@TK2MSFTNGP04.phx.gbl...
This is a really weird one and very odd.

I have written a web site using VS2005 and .Net 2.0, all works very well
when running it locally. However when I publish it to my web server
(hosted by HELM), I get unknown errors when I connect to some of the aspx
pages, however if I keep surfing around my web site the pages suddenly
start working for no apparent reason. Once each page has been displayed
at least once that particular page won't thow an error again, however on
another machine I can have the same problem (although it appears not to be
quite so bad).

Anyone have any ideas what might be causing this behaviour. Web server
not loading the pages properly until their cached properly? Is there any
code I can use to slow down the loading of the pages - I'm grabbing at
straws here!!

I have put an friendly error page so at least the user doesn't see the
ugly .NET error
Any help / pointers will be greatly appreciated.

TIA

Tim


Feb 3 '07 #2
Hi Mark,

Thank you for your reply, When looking as the version of VS2005 is says
8.0.50727.762 (SP.050727-7600).

I took a look on the Microsoft download site and VS2005 SP1 also says
version 50727.762 so I guess I already have it.

Am I correct? If so any other ideas?

Kind Regards

Tim

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
Are you using the web site project that comes with the pre-SP1 version fo
VS 2005? I'm asking because you mention jumping around seems to work after
a page is called once. In the web site project, pages are compiled more on
the fly than in VS 2003 web projects. That means they don't get
pre-compiled. One of the biggest issues that comes about is when you're
sharing classes from other directories. Those files don't usually get
compiled in the order we would expect. A new project was introduced soon
after the launch of VS 2005 called the Web Application Project. This
mimics the web project from previous versions of VS and enables you to
pre-compile the entire site. I don't know which project type you're using,
but it seems to fit this scenario.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Timbo" <me@home.comwrote in message
news:OH*************@TK2MSFTNGP04.phx.gbl...
>This is a really weird one and very odd.

I have written a web site using VS2005 and .Net 2.0, all works very well
when running it locally. However when I publish it to my web server
(hosted by HELM), I get unknown errors when I connect to some of the aspx
pages, however if I keep surfing around my web site the pages suddenly
start working for no apparent reason. Once each page has been displayed
at least once that particular page won't thow an error again, however on
another machine I can have the same problem (although it appears not to
be quite so bad).

Anyone have any ideas what might be causing this behaviour. Web server
not loading the pages properly until their cached properly? Is there any
code I can use to slow down the loading of the pages - I'm grabbing at
straws here!!

I have put an friendly error page so at least the user doesn't see the
ugly .NET error
Any help / pointers will be greatly appreciated.

TIA

Tim



Feb 3 '07 #3
Tim,
The next thing to check is the project type. Usually if you
right-click the project and choose properties, you'll receive a dialog on
the screen with a good number of vertically laid out tabs (mine has 9,
beginning with Application and ending with Code analysis). The Web Site
project is usually a shorter list and not setup as tabs if I remember
correcltly. The big difference is the creation process. Even with SP1 you
can still create the old web site project. To create the Web Site project
you would use File | New | Web Site. If you used this method to create the
project then that would mean it's this problematic web site project template
that shipped with the initial launch of VS 2005. If you used the File | New
| Project, and selected the ASP.Net Web Application project type then you're
using the new version that compiles into one dll. One way to check is to see
if you have a ton of strangely named dll files, usually made up of the page
name plus a bunch of numeric text. If so then you're using the web site
project and not the asp.net web application. I believe there is a conversion
process to make it easier, but I don't remember since as soon as the add-on
was available pre-sp1 I started from scratch with the new application
project type.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Timbo" <me@home.comwrote in message
news:eM**************@TK2MSFTNGP02.phx.gbl...
Hi Mark,

Thank you for your reply, When looking as the version of VS2005 is says
8.0.50727.762 (SP.050727-7600).

I took a look on the Microsoft download site and VS2005 SP1 also says
version 50727.762 so I guess I already have it.

Am I correct? If so any other ideas?

Kind Regards

Tim

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:uh**************@TK2MSFTNGP04.phx.gbl...
>Are you using the web site project that comes with the pre-SP1 version fo
VS 2005? I'm asking because you mention jumping around seems to work
after a page is called once. In the web site project, pages are compiled
more on the fly than in VS 2003 web projects. That means they don't get
pre-compiled. One of the biggest issues that comes about is when you're
sharing classes from other directories. Those files don't usually get
compiled in the order we would expect. A new project was introduced soon
after the launch of VS 2005 called the Web Application Project. This
mimics the web project from previous versions of VS and enables you to
pre-compile the entire site. I don't know which project type you're
using, but it seems to fit this scenario.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Timbo" <me@home.comwrote in message
news:OH*************@TK2MSFTNGP04.phx.gbl...
>>This is a really weird one and very odd.

I have written a web site using VS2005 and .Net 2.0, all works very well
when running it locally. However when I publish it to my web server
(hosted by HELM), I get unknown errors when I connect to some of the
aspx pages, however if I keep surfing around my web site the pages
suddenly start working for no apparent reason. Once each page has been
displayed at least once that particular page won't thow an error again,
however on another machine I can have the same problem (although it
appears not to be quite so bad).

Anyone have any ideas what might be causing this behaviour. Web server
not loading the pages properly until their cached properly? Is there
any code I can use to slow down the loading of the pages - I'm
grabbing at straws here!!

I have put an friendly error page so at least the user doesn't see the
ugly .NET error
Any help / pointers will be greatly appreciated.

TIA

Tim




Feb 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lars-Erik Aabech | last post by:
Hi! Guess it's my day again.. Tried to deploy a test release of a new asp.net web today, and got a terrible error. The web is running swell on three development computers, but when it's copied...
2
by: rsphere | last post by:
my app is running just fine on my home dev box. no compilation errors at all. when i move the whole file structure to my hosted site i get the following error when opening the main page: ...
0
by: schoenfeld1 | last post by:
I've published shareware and have distributed the installation package as an MSI. I noticed once an "Unknown Publisher" error when I downloaded and installed my software on some machine, but I...
0
by: clickon | last post by:
I am working on a portal web application that is largely modular. I have been working on it on a "development" website. Some sections have been tested and are complete. I decided to set up a...
14
by: brett | last post by:
I have an ASP.NET 2.0 web application that runs fine on my local machine. However, once I upload it, I get this error: Parser Error Description: An error occurred during the parsing of a...
5
by: John | last post by:
Hi When I try to install a published app using a url like http://www.mydomain.com/publish.htm, it starts the download but then comes up with the eror given at the end below. I am installing the...
3
by: Brent White | last post by:
I am trying to publish a web service project that works on my local machine just fine. I can access it by going to: http://localhost/service1.asmx and get the properties page. I then...
0
by: Gtu108 | last post by:
Hi, I am getting an error while uploading a published version of site. The error is like : Description: An error occurred during the parsing of a resource required to service this request....
0
by: Jonathan Crawford | last post by:
Hi I have had theis error four a week now. I am completely questioning my future as a ms programmer. As far as i am aware I have done nothing wrong. The site worked for 4 years in .Net 1 and iI...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.