943,936 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 12206
  • ASP.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
May 22nd, 2004
0

loads htm but not aspx

Expand Post »
Hi,
my asp.net app runs on my laptop but when i put it on my webserver, the aspx pages won't load. I'm a pro VB programmer, both computers are on win2000 pro. it says: error in "/" application. I think the code is ok, no trace or debug problems, so it's iis or what?

I'm not familiar with pws, do i have to do special setups or should i just put win2000server on the webserver?

I'm thinking of running a webserver with a static IP as I have to update databases daily, would I still be better off to use a web hoster?

thanks, tommi
Reputation Points: 10
Solved Threads: 1
Newbie Poster
tommi is offline Offline
18 posts
since May 2004
May 22nd, 2004
0

Re: loads htm but not aspx

Did you type the URL directly in? For example www.mywebserver.com/index.aspx if that works, then the reason you aren't seeing your page by just typing www.mywebserver.com is because the page name hasn't been added in in IIS. Go into IIS, locate your website, right-click, go to properties click on the documents tab go to add and add your document "*mypage*.aspx". If this doesn't solve the problem, could you please go through the steps you did in order to publish the site on your web server, usually, you just:

go to Project>copy project
type in your url for your web server
Use frontpage web access method
Copy only the project files needed to run this application

if that doesn't work, could you please explain what method you used in publishing and the exact error.

Hope I helped

Slade
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 23rd, 2004
0

Re: loads htm but not aspx

When you put it on your webserver, did you just copy the files over?

Is .NET Framwork installed on the webserver?

If so, you have create a Virtual Directory in IIS that matches the directory you placed those files in. Asssuming not right into the wwwroot folder.

Slade is correct in asking how did you publish, create or otherwise generate these aspx pages?

We need to know a little more to fully answer your question.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 23rd, 2004
0

Re: loads htm but not aspx

Thanks ALOT for the info. I just copied the aspx pages into a folder I created in c:\inetpub\wwwroot, then created a virtual directory which I'm using in the URL (the URL uses a static IP at this time, no domain yet). So I didn't add the pages in iis or "publish" the site as I would with a frontpage created site. I assumed anything in the virtual directory would be available. I will try the things you have suggested and report back.
tommi
Reputation Points: 10
Solved Threads: 1
Newbie Poster
tommi is offline Offline
18 posts
since May 2004
May 23rd, 2004
0

Re: loads htm but not aspx

Hi,
.net framework is installed. I used notepad or asp.net Web Matrix to write the .aspx pages. I created a virtual directory which points to the folder where I simply copied the pages (and added a bin folder).

I can use the browser to view htm or asp pages via http://webserver/index.htm for example, or use my static ip to view as in http://xx.xx.xx.xx/index.htm or access a virtual directory in both ways (webserver or static ip) such as http://xx.xx.xx.xx/vd/index.htm.

I can add a default document to iis properties, such as index.htm and have it come up.

but aspx pages don't come up.

as far as Project> copy with FP web access method, what software is that in? I'm not using that, should I be using it? Can you create aspx pages in FP or would that be InterDev you are referring to?
Reputation Points: 10
Solved Threads: 1
Newbie Poster
tommi is offline Offline
18 posts
since May 2004
May 23rd, 2004
0

Re: loads htm but not aspx

could you please turn custom errors off in the web.config and I'll have a proper look at the error.
Reputation Points: 115
Solved Threads: 7
Practically a Master Poster
Slade is offline Offline
633 posts
since Mar 2004
May 23rd, 2004
0

Re: loads htm but not aspx

hadn't created a web.config
but did and set custom errors mode=off

thanks, tommi
Reputation Points: 10
Solved Threads: 1
Newbie Poster
tommi is offline Offline
18 posts
since May 2004
May 24th, 2004
0

Re: loads htm but not aspx

Tommi - Just curious, but you mentioned that you used the ASP Web Matrix to create the ASP pages, did you run them from that program as well? The reason I ask is that Web Matrix will create an "on-the-fly" Virtual Root with the port set to 8080. Could you try this and see what the result is, if you haven't already.??

And also give check the following (see attached pic) to verify that aspx is a listed document, and stop & restart IIS.
Attached Thumbnails
Click image for larger version

Name:	untitled.jpg
Views:	214
Size:	25.1 KB
ID:	416  
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 24th, 2004
0

Re: loads htm but not aspx

Hi Paladine,
yes the default.aspx is listed in properties/documents as shown.

aspx pages load ok with web matrix, so web matrix loads index.aspx page on the fly using port 8080 to browser.

also, on other computers (my laptop), i can view these aspx pages in browser. so I'm wondering if it's something with my windows or iis setup or net framework issue on my webserver, as only aspx pages won't load.

on website properties/home directory/ settings-app mappings, aspx is listed with executable path to my .net framework location- but I always get "compilation error", code 128 when loading an aspx page.

thanks, tommi
Reputation Points: 10
Solved Threads: 1
Newbie Poster
tommi is offline Offline
18 posts
since May 2004
May 24th, 2004
0

Re: loads htm but not aspx

Ok, well I did some looking into this error, and it seems to be a random occurring error, with no reason.

I would re-install .NET Framework, and see what happens. I use to get this same error on my Windows 2003 Server, but with a reinstall it cleared right up. Not such an easy task I know.

One other suggestion is to post this error message at ASP.Net Forums as those folks have a ton of experience on .NET. I search the forums already with not results on that error message.

Sorry dude, wish I could help more.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: ASP.NET: Problems with CustomValidator...
Next Thread in ASP.NET Forum Timeline: some fundament





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC