Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deploy ASP.NET Web Application to IIS 6

Status
Not open for further replies.

paullem

Programmer
Jan 21, 2005
80
GB
Hi,

I have written a new website using Visual Studio 2008 and am trying to deploy it to IIS 6 without much success. I am mainly getting the error "Resource cannot be found". HTTP 404. I am new to ASP.NET and IIS so would be grateful if anyone could point me in the right direction. All the training manuals I have fall short of the IIS bit!

Many Thanks
 
Hi Mark,

Yes, ASP.NET scripts are allowed to execute.

Paul
 
OK, that rules that out. Let's try some other steps:

1. What have you done to set up you web application in IIS? 2. Have you created a web site/virtual directory? Do you have an ASP.NET tab in the properties of the web site/virtual directory?
3. If so, is it set to use the correct version of ASP.NET?
4. Have you set a default document?

Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
I created a new website then created a virtual directory. ASP.NET version is 2.0 on the ASP.NET tab of the Web Site and Virtual Directory. On the Documents tab of the Website
and Virtual Directory I've ticked 'Enable Default Content Page' and have only Default.aspx in the list.
 
You don't need to create a new website and a new virtual directory, one or the other should suffice. I suggest for now you just stick with using the Default Web Site -> New Virtual Directory for testing purposes to make sure we can get this up and running for you.

Once you've set up this new virtual directory, make sure you click the "Create" button in the properties (Virtual Directory tab) so that the application name is populated. Then, try right clicking the site and choose Browse to see if your page is displayed. You may also want to try from IE and make sure you have friendly error messages turned off.



Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
Hi,

I don't appear to have a "Create" button on the tab. I'm using IIS 6.0 if this makes any difference. I've attached a screen print if it helps.
 
OK, that's fine, the create button isn't there because you have already set up the application correctly (it's named IMS, and just for info, if you click the remove button you will see the create button appear).

From what I can see so far, it doesn't look as though you've done much wrong so it may be a framework issue. Can you click the "Configuration" button near the bottom of that image, and on the next screen see is .aspx files are listed in the "Application Extensions" listbox?

Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
Hi,

I've checked everything you suggested and it all looks OK. I tried doing a Browse on the Virtual Directory and the following error message was displayed:
<providerOption name="CompilerVersion" value="v3.5"/>

The server currently has .NET 2.0 framework installed. I went to the microsoft website and tried to install .NET 3.5 on the server but the install appears to hang part way through.
 
So, was the .aspx file listed in the "Application Extensions" listbox? Either way, I'd probably suggest running "aspnet_regiis -i" from the 2.0 framework folder just to make sure.


Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
Hi,

The .aspx files are listed in the "Application Extensions" listbox and I've run "aspnet_regiis -i" I tried a Browse again and the line "<providerOption name="CompilerVersion" value="v3.5"/>" is being highlighted as an error in the web.config file. The message: "Parser Error Message: Child nodes not allowed" is also being displayed. This is what makes me think it is a .NET version problem. But when I try to download and run version 3.0 or 3.5 it appears to hang.......what am I doing wrong??????

Paul
 
Hi,

Just to let you know that I finally managed to load .NET Framework 3.5 on the server and the website works fine.

Thanks for your help,

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top