Setting up the portal in a sub directory with only one application (root)
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngibuyspy' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Jeff Giesbrecht
I'm hosting with compay who stipulates only one application per account. The application is also the root folder.

I would like to install the portal in a subdirectory (/portalsdk)

I have changed all references from Request.ApplicationPath and "~" to PortalSettings.Application Path.

I then added the following sub to the configuration.vb file:

Public Shared ReadOnly Property ApplicationPath() As String
Get
Dim req As HttpRequest = HttpContext.Current.Request
If req.ApplicationPath = "/portalsdk" Then
Return [String].Empty
Else
Return req.ApplicationPath
End If
End Get
End Property

I'm thinking that I need to add some information in the sub so that the correct folder is returned however I'm not sure how to do that.

The error I'm getting is:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 33:
Line 34: ' Ensure that the visiting user has access to the current page
Line 35: If PortalSecurity.IsInRoles(_portalSettings.ActiveTab.AuthorizedRoles) = False Then
Line 36: Response.Redirect(PortalSettings.ApplicationPath+"/Admin/AccessDenied.aspx")
Line 37: End If

Source File: M:\web\users\V011U29FIK\html\portalsdk\DesktopDefault.aspx Line: 35

Thanks for all the help.

Jeff Giesbrecht

--

http://OwnYourOwnBusinessNow.com
by
http://HealingWithSugars.com
--

Reply to this message...
 
    
Brian Desmond
Read the IBS FAQ's at aspsmith.com - there is one about having a portal
in the root directory.

--Brian Desmond
Click here to reveal e-mail address

-----Original Message-----
From: Jeff Giesbrecht [mailto:Click here to reveal e-mail address]
Sent: Saturday, July 13, 2002 1:56 PM
To: aspngibuyspy
Subject: [aspngibuyspy] Setting up the portal in a sub directory with
only one application (root)

I'm hosting with compay who stipulates only one application per account.
The application is also the root folder.

I would like to install the portal in a subdirectory (/portalsdk)

I have changed all references from Request.ApplicationPath and "~" to
PortalSettings.Application Path.

I then added the following sub to the configuration.vb file:

Public Shared ReadOnly Property ApplicationPath() As String
Get
Dim req As HttpRequest = HttpContext.Current.Request
If req.ApplicationPath = "/portalsdk" Then
Return [String].Empty
Else
Return req.ApplicationPath
End If
End Get
End Property

I'm thinking that I need to add some information in the sub so that the
correct folder is returned however I'm not sure how to do that.

The error I'm getting is:
Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

Source Error:

Line 33:
Line 34: ' Ensure that the visiting user has access to the
current page
Line 35: If
PortalSecurity.IsInRoles(_portalSettings.ActiveTab.AuthorizedRoles) =
False Then
Line 36:
Response.Redirect(PortalSettings.ApplicationPath+"/Admin/AccessDenied.as
px")
Line 37: End If

Source File: M:\web\users\V011U29FIK\html\portalsdk\DesktopDefault.aspx
Line: 35

Thanks for all the help.

Jeff Giesbrecht

--

http://OwnYourOwnBusinessNow.com
by
http://HealingWithSugars.com
--

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/2002

Reply to this message...
 
    
Jeff Giesbrecht
Brian,

I think my question was misunderstood. I want to have my portal in a subdirectory not the root directory. However my hosting company only allows one application per virtual server. This application is set up for the root directory.

So I'm trying to run a portal in a subdirectory (/portalvb) from an IIS application in the root (/)

Thanks,

Jeff Giesbrecht

[Original message clipped]

--

http://OwnYourOwnBusinessNow.com
by
http://HealingWithSugars.com
--

Reply to this message...
 
    
Tom Ward
Jeff,

I have not read your entire thread but I have set up an IBS portal at a =
host that wants the code at the root. What you need to do is go ahead =
and place the code in a sub directory using FTP just like you would do =
on your own server. Then in the Root directory that the host setup for =
you there should be a default.aspx or default.asp or some other default =
type file. Edit this file and place a "response.redirect" to you =
subdirectory. It should look like this <% =
response.redirect("/portalvsvb/default.aspx") %> where portalvsvb is the =
name of your subfolder. This of coarse is an asp command and might need =
to be slightly different if you use html or some other default type =
file.

Hope this helps

Thomas G. Ward

-----Original Message-----
From: Jeff Giesbrecht [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 16, 2002 9:55 AM
To: aspngibuyspy
Subject: [aspngibuyspy] RE: Setting up the portal in a sub directory =
with only one application (root)

Brian,

I think my question was misunderstood. I want to have my portal in a =
subdirectory not the root directory. However my hosting company only =
allows one application per virtual server. This application is set up =
for the root directory.

So I'm trying to run a portal in a subdirectory (/portalvb) from an IIS =
application in the root (/)

Thanks,

Jeff Giesbrecht

[Original message clipped]

--

http://OwnYourOwnBusinessNow.com
by
http://HealingWithSugars.com
--

| [aspngibuyspy] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Jeff Giesbrecht
Whoa Jerry!!

Yes I also use Maximumasp as my host. However my response from them has been a little different. Dominic and Duncan have both been extreamly helpful and I have been told developers are working right now to fin a fix for the portal issue later this week.

They have a KB article on getting the store up and running. I was sent a link to another article on a different site on installing the portal in a sub directory. Basically it mentioned that you had to change all the Request.ApplicationPath to PortalSettings.ApplicationPath with a little sub in the configuration.vb(c#) file.

I made that change however I'm still getting the same error and my portal isn't running. The url to my portal is at http://eaglewings.com/portalsdk

I can understand not wanting to backoff on security, etc however not being a hardward guru I don't understand why a server can't be set up to allow multipule applications per virtual server. *Sigh*

If anyone has information on running the portal in a subdirectory to the main IIS Application directory I should would love to hear about it.

Thanks,

Jeff Giesbrecht

---------- Original Message ----------------------------------
From: "Braun, Jerry" <Click here to reveal e-mail address>
Reply-To: "aspngibuyspy" <Click here to reveal e-mail address>
Date: Tue, 16 Jul 2002 15:41:52 -0400

[Original message clipped]

--

http://OwnYourOwnBusinessNow.com
by
http://HealingWithSugars.com
--

Reply to this message...
 
    
Steven A Smith (VIP)
Unfortunately, my FAQ on this topic at www.aspsmith.com is incomplete. If
someone would please send me the full code for a working implementation of
this, I'll gladly post it and attribute it to you if you like.

Thanks,
Steve

Steven Smith, MCSE+Internet, Microsoft MVP: ASP.NET
Click here to reveal e-mail address
President, ASPAlliance.com
http://aspalliance.com The #1 ASP.NET Community
http://aspsmith.com ASP.NET Training for ASP Developers

Learning ASP.NET? Get My Book: ASP.NET By Example
http://amazon.com/exec/obidos/ASIN/0789725622/stevenatorasp/
----- Original Message -----
From: "Jeff Giesbrecht" <Click here to reveal e-mail address>
To: "aspngibuyspy" <Click here to reveal e-mail address>
Sent: Tuesday, July 16, 2002 11:54 AM
Subject: [aspngibuyspy] RE: Setting up the portal in a sub directory with
only one application (root)

[Original message clipped]

one application per virtual server. This application is set up for the root
directory.
[Original message clipped]

Reply to this message...
 
 
System.NullReferenceException
System.Web.HttpContext
System.Web.HttpRequest




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com