473,385 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sharepoint seems to be causing errors in our application

Hi,

We have a large web application, using ASP.NET/C# that runs quite
happily on a Windows 2003 server under IIS, but when we install it on a
server with sharepoint installed it keeps falling over with
NullReference exceptions.

These exceptions appear to be related to core objects such as base or
HttpContext.

We installed twice on the same Windows 2003 Server, once we installed
in wwwroot as part of the Default Web Site and configured sharepoint to
ignore the URL for this application, and the second time we installed
as a new web site (not part of the default).

The new web site version works perfectly, but the site running under
default web site just keeps giving these errors.

On a second Windows 2003 Server without sharepoint the default web site
is working perfectly, so our only working assumption so far is that
this has something to do with Sharepoint, but we don't know what.

I don't even know where to begin looking.

Any gurus got a clue?

Cheers
Dave

Nov 19 '05 #1
5 1296
This

http://www.asaris-matrix.com/mvp-wal...rm.aspx?ID=329

starts off with the standard things that you have already done but then adds
more stuff that seem to be relevant to your problems.

Engelbert
<da*********@zentive.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi,

We have a large web application, using ASP.NET/C# that runs quite
happily on a Windows 2003 server under IIS, but when we install it on a
server with sharepoint installed it keeps falling over with
NullReference exceptions.

These exceptions appear to be related to core objects such as base or
HttpContext.

We installed twice on the same Windows 2003 Server, once we installed
in wwwroot as part of the Default Web Site and configured sharepoint to
ignore the URL for this application, and the second time we installed
as a new web site (not part of the default).

The new web site version works perfectly, but the site running under
default web site just keeps giving these errors.

On a second Windows 2003 Server without sharepoint the default web site
is working perfectly, so our only working assumption so far is that
this has something to do with Sharepoint, but we don't know what.

I don't even know where to begin looking.

Any gurus got a clue?

Cheers
Dave

Nov 19 '05 #2
Looks like exactly what we have done so far. The problems aluded to
sound like what we have, but I would like to try and find the
resollution to the problems and not a work around if possible.

Does anyone have any details on what the security/resource issues are
related to running an ASP.NET application in a virtual host managed by
sharepoint? Remember we have chosen the option to exclude our
application from Sharepoint management.

Thanks
Dave

Nov 19 '05 #3
Could it be a problem with web.config permissions? I would actually try
posting over in
microsoft.public.sharepoint.portalserver.developme nt also to see if they
have any ideas.
--
Shane Young
SharePoint911 - "SharePoint Help...Now!"
"Dave" <da*********@zentive.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Looks like exactly what we have done so far. The problems aluded to
sound like what we have, but I would like to try and find the
resollution to the problems and not a work around if possible.

Does anyone have any details on what the security/resource issues are
related to running an ASP.NET application in a virtual host managed by
sharepoint? Remember we have chosen the option to exclude our
application from Sharepoint management.

Thanks
Dave

Nov 19 '05 #4
I agree Shane, there must be some web.config issues over there.

Remember, that for every setting that is not explicitly defined in the
applications web.config file, the defaults defined in the root (usually
c:\inetpub\wwwroot\web.config) config file! These settings are very
different if you have or dont have WSS or SPS intalled, for example settings
for session state are disabled by default, even the module is remarked,
impersonation is enabled bí default, and the code acess security settings
are set to WSS_Minimal or WSS_medium that can couse serious errors in your
application.

Hope this helps

Peter Jakab

"Shane Young" <Shane @ SharePoint911 dot com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Could it be a problem with web.config permissions? I would actually try
posting over in
microsoft.public.sharepoint.portalserver.developme nt also to see if they
have any ideas.
--
Shane Young
SharePoint911 - "SharePoint Help...Now!"
"Dave" <da*********@zentive.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Looks like exactly what we have done so far. The problems aluded to
sound like what we have, but I would like to try and find the
resollution to the problems and not a work around if possible.

Does anyone have any details on what the security/resource issues are
related to running an ASP.NET application in a virtual host managed by
sharepoint? Remember we have chosen the option to exclude our
application from Sharepoint management.

Thanks
Dave


Nov 19 '05 #5
Peter,

Thanks, that put me on the right track.

I found that SPS turns off session handling and unless an application
explicitly turns it back on, then you get all the errors we were
seeing.

Here are the lines I ended up adding into our applications web.config.

<!--
Set the trust to Full. WSS configures a very restrictive trust
policy that does not allow ASP.NET Web application to run correctly.
-->
<trust level="Full" originUrl="" />
<!--
Enable the session module. This can also be enabled on the WSS
Web.config, but is not enabled by default.
If you receive the following message: Parser Error Message: The
module 'Session' is already in the
application and cannot be added again. You can remove the
following <httpModules></httpModules>
section as session is already enabled on the virtual server.
-->
<httpModules>
<add name="Session"
type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
<!--
Enable session state for all the pages in the Web application.
-->
<pages enableSessionState="true" enableViewState="true"
enableViewStateMac="true" validateRequest="false" />
Works like a charm now.

Thanks all.
Dave

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or...
6
by: Michael S | last post by:
Not sure if I'm posting in the right group but here goes. I am getting the following error when trying to browse to an .aspx page which I have set up in a virtual directory under the default...
3
by: Robin | last post by:
I am trying to get a virtual directory ASP.Net application to work on a Windows 2003 server that has Sharepoint 2003. I have followed the Microsoft knowledgebase but the error message below still...
8
by: William LaMartin | last post by:
I just received my Visual Studio upgrade to 2005 and tried to create a new web site via File | New Web Site with location http. Unfortunately I received the following error: "Visual Web...
15
by: (PeteCresswell) | last post by:
Got a sample of MS's "Advisor Guide To Microsoft Access" in the mail today - accompanied by a sample "Advisor Guide To Microsoft SharePoint". I skimmed both, but the SharePoint explanation is too...
8
by: GaryDean | last post by:
I was advised by a Microsoft speaker at a local .Net conference that "SharePoint" had a lot to offer for asp.net developers. I've spent a few hours hunting down links on Sharepoint Services in...
20
by: Neil | last post by:
What is Sharepoint, and should I care?
0
by: TheNeil | last post by:
Hi, I've recently been working on an C#/ASP.net (v2) web application that queries a couple of internal SQL 2005 databases, connects to Excel (2007) and then makes the resultant .XLS file available...
0
by: jxt1303 | last post by:
I've created an Access 2007 application that has linked tables in a SharePoint 2007 site. Normally, after I open the app and access a form that uses one of these linked tables, you are prompted for...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.