Hi

I create web site using asp.net,It publish in windows server 2003.when I type URL in internet explore its sows all the aspnet file(.aspx) file,after that I click on default.aspx file,but it wont works,its generate "page cannot found".I tried it in my local machine and server machine,but its that didn't work.Please help me .


Thanks

Dani AI

Generated

Short diagnosis: a directory listing of .aspx and .cs files with a "page cannot found" when clicking default.aspx means IIS is serving files instead of passing .aspx requests to ASP.NET. Typical causes are ASP.NET not registered/allowed in IIS, the folder not configured as an application/virtual directory, or a deployment that left source files exposed instead of deploying compiled output.

Quick checklist (Server 2003 / IIS 6):

  • Verify the ASP.NET Web Service Extension is allowed in IIS Manager (otherwise .aspx won’t be executed).
  • Re-register ASP.NET for the installed Framework version (run from an elevated command prompt). Example:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
  • Convert the site folder to an IIS application (right‑click the virtual directory → Properties → Create).
  • Confirm handler mapping: .aspx must point to the aspnet_isapi.dll for the matching Framework folder.
  • Ensure Default Document includes default.aspx and disable Directory Browsing (directory listing is a security risk).

Deployment and troubleshooting notes:

  • Seeing .cs files on the server indicates a wrong deployment. Do not leave source files on the site. For Web Application projects the compiled DLL must be in the bin folder; for Web Site projects use Publish/Precompile.
  • Check NTFS permissions so the IIS user (IUSR or the app pool identity) has Read + Execute on the site folder.
  • Inspect IIS logs (typically under %SystemRoot%\System32\LogFiles\W3SVC*) and Event Viewer for the exact 404 or ASP.NET error code; that narrows the problem quickly.
  • To rule out page code issues, deploy a tiny test page that only writes text and confirm it executes; if the test runs, the problem is in the application code or web.config.

This expands on ’s virtual-directory point and ’s IIS advice, and addresses ’s note about server-side code by giving steps to distinguish handler/mapping/deployment issues from runtime code faults.

Recommended Answers

All 8 Replies

Hi

I create web site using asp.net,It publish in windows server 2003.when I type URL in internet explore its sows all the aspnet file(.aspx) file,after that I click on default.aspx file,but it wont works,its generate "page cannot found".I tried it in my local machine and server machine,but its that didn't work.Please help me .


Thanks

Please post the screen shot of tha error. I will help u.

Here I have attached the file

calling a page from server should be...

or Name/YourProjectName/

which will call the your page...

can u tell me how u have done your project Deployment..?

Hi

I forget to tell this is first time I m publish web site I build and publish using visual studio.After that I copy link and past it in internet explorer,its show all aspx and cs files,then I click on default.aspx file,but it never works.


Tank50

Hi

I forget to tell this is first time I m publish web site I build and publish using visual studio.After that I copy link and past it in internet explorer,its show all aspx and cs files,then I click on default.aspx file,but it never works.


Tank50

Hey you have to configure it in IIS properly.

I think this will help you.

>asp.net+page cannot found

There may be several reasons:

1. Your page might contains some code that doesn't terminate the page execution at server side. (Possibly a recursive method or something like that)

2. IIS or development server not started yet!

configure the IIS properly,check the code correcly because some of the unwanted codes does not execute the page properly.


web development services

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.