Solved

Problem with ASPX files on new intranet server

Posted on 2014-09-15
5
195 Views
Last Modified: 2014-09-17
We recently moved our intranet to a new server in a virtualized environment. The new server is Windows 2012R, iis7 and .net framework 4.0. I created the site folder in iis and then moved the entire folder structure from the old server to the new one. All works fine except any pages with an aspx extension. ASP classic and .html pages are fine.

When trying to navigate to ANY page with an aspx extension, we get "Server Error in '/' Application" error as the page tries to locate /login.aspx. This page does not exist. If we click "back" in the browser and try the link again, it is successful!

And as far as we can tell it isn't being called from any config or aspx page.

I have even tried creating a blank page and naming it .aspx. This page does the same redirection.

I have tried all different authentication modes: anonymous, forms, windows, basic. None work.

Fortunately we only have one page on the site that is affected, but need to figure out the problem before we move forward with more functionality. We have a staff directory built from a database.

Here is the code from the page (I have replaced the IP address for the datasource, the login name and password with x's):
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="Data Source=xxx.xxx.xxx.xxx,1533;Initial Catalog=xxxxxxxx_hub;Persist Security Info=True;User ID=agency;Password=xxxxxxxxx"
            ProviderName="System.Data.SqlClient"
        SelectCommand="SELECT StaffID, Name, Phone, Office, Title, Dept, Email, Extension, { fn LCASE(LEFT (Name, 1)) } AS Letter, Photo FROM [tbl-All-StaffDirectory] ORDER BY Name">
        </asp:SqlDataSource>
0
Comment
Question by:Terri Alekzander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:sammySeltzer
ID: 40325298
Did you try converting your folder to application?

Right-click on the folder and click Convert to Application.
0
 

Author Comment

by:Terri Alekzander
ID: 40325984
Which folder? The main folder for the website?
0
 
LVL 29

Accepted Solution

by:
sammySeltzer earned 500 total points
ID: 40326215
Assuming you have a folder structure:

c:\inetpub\wwwroot\Folder_That_Contains_Your_ASP.NetFiles

Then you would do the following:

1.Open Internet Information Services manager.
2.Expand the web site on the left side.
3.Select the Folder_That_Contains_Your_ASP.NetFiles that you want to convert to the application. Right click and choose Convert To Application.
4.Select the desired application pool.
5.Click Ok and then try again. It should fix your problem.
0
 

Author Comment

by:Terri Alekzander
ID: 40328805
I will try what you suggest. Right now the file that is affected is in the root and is not in a subfolder.
0
 

Author Closing Comment

by:Terri Alekzander
ID: 40328849
Sammy! Thank you so much. Moving the aspx files into a folder and then converting that folder to an application did the trick. I appreciate your help.
0

Featured Post

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
How to filter by key press ? 6 66
Help to debug powershell script 5 57
Sending HTML Formatted Email from ASP.NET 2 53
Disable the weekends on datepicker control 6 51
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

739 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