bmsjeff
asked on
Server 2008 Standard ASP.NET issue
Fresh install of Server 2008 Standard 32bit
Looking to move an existing website to an internal server.
I am using the Default Web Site
Using IIS7
I created a directory "Test"
I converted the "Test" directory to an Application Directory
When I go to www.domain.com/Test/login/login.aspx
I get:
(HTTP 500 Internal Server Error)
When I go to www.domain.com/Test/login/login.txt
I can view the file
Is this a permissions issue, or do I need to configure something to allow the ASP to work correctly?
Looking to move an existing website to an internal server.
I am using the Default Web Site
Using IIS7
I created a directory "Test"
I converted the "Test" directory to an Application Directory
When I go to www.domain.com/Test/login/login.aspx
I get:
(HTTP 500 Internal Server Error)
When I go to www.domain.com/Test/login/login.txt
I can view the file
Is this a permissions issue, or do I need to configure something to allow the ASP to work correctly?
ASKER
Switching to Classic ASP now gives a different message:
XML Parsing Error: no element found
Location: http://www.domain.com/Test/login/login.aspx
Line Number 1, Column 1:
XML Parsing Error: no element found
Location: http://www.domain.com/Test/login/login.aspx
Line Number 1, Column 1:
ASKER
Scratch the above. The XML error is when I use Firefox. IE still gives the HTTP 500 error.
ASKER
Here is the latest.
I placed the following code in the Test directory (www.domain.com/test/):
<%@ Language="VBScript" %>
<html>
<head>
<title>ASP Test Page</title>
</head>
<body>
<%
'Display the current system date and time
Response.write "Today's date and time is " & Now()
%>
</body>
</html>
When I go to:
www.domain.com/test/test.asp
I get:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
I placed the following code in the Test directory (www.domain.com/test/):
<%@ Language="VBScript" %>
<html>
<head>
<title>ASP Test Page</title>
</head>
<body>
<%
'Display the current system date and time
Response.write "Today's date and time is " & Now()
%>
</body>
</html>
When I go to:
www.domain.com/test/test.asp
I get:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Hi,
I am a little bit confused:
Do you want to run ASP.NET - then your test should go to www.domain.com/test/test.aspx
Or do you want to run classic plain old ASP?
Thanks.
Rainer
I am a little bit confused:
Do you want to run ASP.NET - then your test should go to www.domain.com/test/test.aspx
Or do you want to run classic plain old ASP?
Thanks.
Rainer
ASKER
My bad. Here is the new info.
I am now using:
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
lblVersion.Text = "Your server is running ASP.NET and the version is " & System.Environment.Version .ToString( )
End Sub
</script>
<html>
<head>
<title>ASP.NET Version</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label ID="lblVersion" runat="server"></asp:Label >
</form>
</body>
</html>
I placed this code in following three places...
When I go to:
www.domain.com/test.aspx -- The code works
When I go to:
www.domain.com/test/test.aspx -- I receive this error:
Server Error in '/Test' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.We bForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 58: <add assembly="Microsoft.Report Viewer.Com mon, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A" />
Line 59: -->
Line 60: <add assembly="Microsoft.Report Viewer.Web Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
Line 61: <add assembly="Microsoft.Report Viewer.Com mon, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/>
Line 62: <add assembly="Microsoft.Report Viewer.Win Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D 50A3A"/></ assemblies >
Source File: C:\inetpub\wwwroot\Test\we b.config Line: 60
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.We bForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a' could not be loaded.
When I go to:
www.domain.com/test/login/test.aspx -- I receive the HTTP 500 error
(I assume this is because of the error in web.config???
With this, I know that ASP.NET is now working. I just need to narrow down the issue with the web.config file.
I am now using:
<%@ Page Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
lblVersion.Text = "Your server is running ASP.NET and the version is " & System.Environment.Version
End Sub
</script>
<html>
<head>
<title>ASP.NET Version</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label ID="lblVersion" runat="server"></asp:Label
</form>
</body>
</html>
I placed this code in following three places...
When I go to:
www.domain.com/test.aspx -- The code works
When I go to:
www.domain.com/test/test.aspx -- I receive this error:
Server Error in '/Test' Application.
--------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.We
Source Error:
Line 58: <add assembly="Microsoft.Report
Line 59: -->
Line 60: <add assembly="Microsoft.Report
Line 61: <add assembly="Microsoft.Report
Line 62: <add assembly="Microsoft.Report
Source File: C:\inetpub\wwwroot\Test\we
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.We
When I go to:
www.domain.com/test/login/test.aspx -- I receive the HTTP 500 error
(I assume this is because of the error in web.config???
With this, I know that ASP.NET is now working. I just need to narrow down the issue with the web.config file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello,
I would suggest you to convert test directory to the virtual directory (Application) that will load test as a separate application and local web.config file (kept in test directory) will also load. Make sure that you have enabled required version of ASP.net on the application pool belongs to website and virtual directory. Also, please change the mode of application pool and give a try. e.g. classic to integrated
Regards,
Sanjay Santoki
I would suggest you to convert test directory to the virtual directory (Application) that will load test as a separate application and local web.config file (kept in test directory) will also load. Make sure that you have enabled required version of ASP.net on the application pool belongs to website and virtual directory. Also, please change the mode of application pool and give a try. e.g. classic to integrated
Regards,
Sanjay Santoki
ASKER
This put me on the right track. I had to move over some dll's and all is well.
This may also be relevant: How to Enable Classic ASP on IIS7