PWA Broken...but everything else works!!!!

S

Stescotty

We have the following running off of 2 VMWare server

1 VMWare server running SQL2005 (with appropriate permissions)
1 VMWare server running WSS and Project Server 2007.

We have installed Project Server, WSS, and Created and provisioned a website
without an issue.
However when accessing the http://server/pwa we received the dreaded
Unexpected Error, with no information in regards to the error. After several
hours of digging and making a change to the web.config file we were able to
see what the error is.

The Error is as follows;
Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.NullReferenceException: Object reference not set to an
instance of an object.
 at
Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri
url)
 at
Microsoft.SharePoint.Administration.SPAlternateUrl.get_ContextUri()
 at
Microsoft.SharePoint.WebControls.SPControl.GetContextWebApplication(HttpContext
context)
 at Microsoft.Office.Server.ServerContext.GetContext(HttpContext
httpContext)
 at Microsoft.Office.Server.ServerContext.get_Current()
 at
Microsoft.Office.Project.Server.WebService.Utility.GetContext()
 at
Microsoft.Office.Project.Server.WebService.Authentication.GetUserByName(Boolean isProjUser, String username)
 --- End of inner exception stack trace ---
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.NullReferenceException: Object reference not set to an
instance of an object.
at
Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri url)
at Microsoft.SharePoint.Administration.SPAlternateUrl.get_ContextUri()
at
Microsoft.SharePoint.WebControls.SPControl.GetContextWebApplication(HttpContext context)
at Microsoft.Office.Server.ServerContext.GetContext(HttpContext httpContext)
at Microsoft.Office.Server.ServerContext.get_Current()
at Microsoft.Office.Project.Server.WebService.Utility.GetContext()
at
Microsoft.Office.Project.Server.WebService.Authentication.GetUserByName(Boolean isProjUser, String username)
--- End of inner exception stack trace ---

Source Error:

The source code that generated this unhandled exception can only be shown
when compiled in debug mode. To enable this, please follow one of the below
steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the
error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given
application to be compiled in debug mode. The first technique will cause only
that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a
memory/performance overhead. You should make sure that an application has
debugging disabled before deploying into production scenario.

Stack Trace:

[SoapException: System.Web.Services.Protocols.SoapException: Server was
unable to process request. ---> System.NullReferenceException: Object
reference not set to an instance of an object.
at
Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri url)
at Microsoft.SharePoint.Administration.SPAlternateUrl.get_ContextUri()
at
Microsoft.SharePoint.WebControls.SPControl.GetContextWebApplication(HttpContext context)
at Microsoft.Office.Server.ServerContext.GetContext(HttpContext
httpContext)
at Microsoft.Office.Server.ServerContext.get_Current()
at Microsoft.Office.Project.Server.WebService.Utility.GetContext()
at
Microsoft.Office.Project.Server.WebService.Authentication.GetUserByName(Boolean isProjUser, String username)
--- End of inner exception stack trace ---]
Microsoft.Office.Project.PWA.PJContext.AuthenticateUserForPWA(Boolean
validateUser, String username, Boolean checkTimebomb) +3694
Microsoft.Office.Project.PWA.PJContext.AuthenticateUserForPWA(Boolean
newCookie) +2166
Microsoft.Office.Project.PWA.PJContext.GetContext(Boolean
isWebServiceCall, Boolean newCookie, Guid siteId, Nullable`1 zone) +616
Microsoft.Office.Project.PWA.PJBaseWebPartPage..ctor() +403
ASP.DEFAULT_ASPX__196255328..ctor() +18

__ASP.FastObjectFactory_app_web_default_aspx__196255328_x46luvjd.Create_ASP_DEFAULT_ASPX__196255328() +31

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +138
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,
String requestType, VirtualPath virtualPath, String physicalPath) +50
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
+503

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +263


Version Information: Microsoft .NET Framework Version:2.0.50727.3074;
ASP.NET Version:2.0.50727.3074

Keep in mind we have blown this server away and rebuilt it several times
because of all the changes we were doing to try to rectify the issues.

Any help or at least the direction would be greatly appreciated.

Steve
 
S

Stescotty

FIXED....Slipstream Sharepoint 3.0 SP2 into the Project Server
INstallter.....Issue resolved.

Stescotty said:
We have the following running off of 2 VMWare server

1 VMWare server running SQL2005 (with appropriate permissions)
1 VMWare server running WSS and Project Server 2007.

We have installed Project Server, WSS, and Created and provisioned a website
without an issue.
However when accessing the http://server/pwa we received the dreaded
Unexpected Error, with no information in regards to the error. After several
hours of digging and making a change to the web.config file we were able to
see what the error is.

The Error is as follows;
Server Error in '/' Application.

System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.NullReferenceException: Object reference not set to an
instance of an object.
 at
Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri
url)
 at
Microsoft.SharePoint.Administration.SPAlternateUrl.get_ContextUri()
 at
Microsoft.SharePoint.WebControls.SPControl.GetContextWebApplication(HttpContext
context)
 at Microsoft.Office.Server.ServerContext.GetContext(HttpContext
httpContext)
 at Microsoft.Office.Server.ServerContext.get_Current()
 at
Microsoft.Office.Project.Server.WebService.Utility.GetContext()
 at
Microsoft.Office.Project.Server.WebService.Authentication.GetUserByName(Boolean isProjUser, String username)
 --- End of inner exception stack trace ---
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.NullReferenceException: Object reference not set to an
instance of an object.
at
Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri url)
at Microsoft.SharePoint.Administration.SPAlternateUrl.get_ContextUri()
at
Microsoft.SharePoint.WebControls.SPControl.GetContextWebApplication(HttpContext context)
at Microsoft.Office.Server.ServerContext.GetContext(HttpContext httpContext)
at Microsoft.Office.Server.ServerContext.get_Current()
at Microsoft.Office.Project.Server.WebService.Utility.GetContext()
at
Microsoft.Office.Project.Server.WebService.Authentication.GetUserByName(Boolean isProjUser, String username)
--- End of inner exception stack trace ---

Source Error:

The source code that generated this unhandled exception can only be shown
when compiled in debug mode. To enable this, please follow one of the below
steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the
error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given
application to be compiled in debug mode. The first technique will cause only
that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a
memory/performance overhead. You should make sure that an application has
debugging disabled before deploying into production scenario.

Stack Trace:

[SoapException: System.Web.Services.Protocols.SoapException: Server was
unable to process request. ---> System.NullReferenceException: Object
reference not set to an instance of an object.
at
Microsoft.SharePoint.Utilities.SPUtility.AlternateServerUrlFromHttpRequestUrl(Uri url)
at Microsoft.SharePoint.Administration.SPAlternateUrl.get_ContextUri()
at
Microsoft.SharePoint.WebControls.SPControl.GetContextWebApplication(HttpContext context)
at Microsoft.Office.Server.ServerContext.GetContext(HttpContext
httpContext)
at Microsoft.Office.Server.ServerContext.get_Current()
at Microsoft.Office.Project.Server.WebService.Utility.GetContext()
at
Microsoft.Office.Project.Server.WebService.Authentication.GetUserByName(Boolean isProjUser, String username)
--- End of inner exception stack trace ---]
Microsoft.Office.Project.PWA.PJContext.AuthenticateUserForPWA(Boolean
validateUser, String username, Boolean checkTimebomb) +3694
Microsoft.Office.Project.PWA.PJContext.AuthenticateUserForPWA(Boolean
newCookie) +2166
Microsoft.Office.Project.PWA.PJContext.GetContext(Boolean
isWebServiceCall, Boolean newCookie, Guid siteId, Nullable`1 zone) +616
Microsoft.Office.Project.PWA.PJBaseWebPartPage..ctor() +403
ASP.DEFAULT_ASPX__196255328..ctor() +18

__ASP.FastObjectFactory_app_web_default_aspx__196255328_x46luvjd.Create_ASP_DEFAULT_ASPX__196255328() +31

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert) +138
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,
String requestType, VirtualPath virtualPath, String physicalPath) +50
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
+503

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +263


Version Information: Microsoft .NET Framework Version:2.0.50727.3074;
ASP.NET Version:2.0.50727.3074

Keep in mind we have blown this server away and rebuilt it several times
because of all the changes we were doing to try to rectify the issues.

Any help or at least the direction would be greatly appreciated.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top