?
Solved

asp.net 4.0 on new IIS7.5 server

Posted on 2013-01-24
5
Medium Priority
?
870 Views
Last Modified: 2013-01-25
New install of 2008R2 added role IIS7.5

Have very little experience with 7.5,  90% of my sites run on 6.0. and asp.net 2.0

Copied a asp.net 4.0 site to the iis7.5 webserver. Created a new website and set the bindings.


I did see that Framework 4 Client profile and 4 Extended are installed, do I need to download more?

Surprised there was not a asp.net application pool already defined so I created a Classic 4.0 app pool, but when I run the site I get a 404 error.

When I changed it back to default apppool I get an ASP.NET error unrecognized target framework, but it does the find the site.

Is there something I need to do to set permission for the new app pool?

Or am I on the wrong track entirely?

Thanks,

Rolf
0
Comment
Question by:rolfg
  • 3
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
binaryevo earned 2000 total points
ID: 38818659
You shouldn't have to.  Did you map the site to the directory where the site resides ( im sure you already checked that though )?  Ive never deployed a site per say the way your doing it, I typically grab the full .net framework.  I would suggest trying that out to see if maybe that would be the fastest way to get your site up and working since it probably involves the least amount of work.  Once you install that make sure that the app pool is pointed to the right version of the framework and your site should work.  Is there anything in the .net app that has dependencies ( may want to check this also )?
0
 

Author Comment

by:rolfg
ID: 38818698
It's actually a bit more complicated.

I reinstalled the os, the old inetpub/wwwroot directory were still there from before the install.

All I did was create a website and point it to that pre existing directory. And then added the asp.net 4 pool since it was not there... I do not recall having to do this on other installs.

Wondering if I missed something during the install.

Rolf
0
 

Author Comment

by:rolfg
ID: 38819129
Baffled by the fact that the framework 4.0 app pools were not listed on the iis server, only 2.0 even though Programs and features said they were, I downloaded the full 4.0 framework and re-installed.

Choices were repair and remove, confirming it was installed. Did repair and voila the 4.0 application pools showed up. I deleted the one I had created, picked the one that came from the installer and the site works.
0
 

Author Comment

by:rolfg
ID: 38819240
I've requested that this question be closed as follows:

Accepted answer: 0 points for rolfg's comment #a38819129
Assisted answer: 250 points for binaryevo's comment #a38818659

for the following reason:

Thanks!
0
 
LVL 14

Expert Comment

by:binaryevo
ID: 38819164
So my suggestion for installing the full .net version turned out to fix the issue ( regardless of which option you picked on install ).  I would appreciate the points.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question