I have a site www.stf.com and a site www.stfstage.com (where I do all my
testing).
The problem is that www.stfstage.com is only internal and I need to get
access from the outside (without creating a new domain).
I tried to create a Virtual directory inside my stf site so that I would
access it like: www.stf.com/stage/.
I run as www.stfstage.com fine and have for a long time.
But if I try to do it as www.stf.com/stage/ I get the 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: The module 'ScollKeeperMod ule' is already in the
application and cannot be added again
Source Error:
Line 33: </webServices>
Line 34: <httpModules>
Line 35: <add
type="NFission. WebControls.Scr ollKeeperModule ,NFission.WebCo ntrols.ScrollKe eper"
Line 36: name="ScollKeep erModule" />
Line 37: </httpModules>
Source File: C:\Inetpub\wwwr oot\StfStage\we b.config Line: 35
*************** *************** ******
<configuratio n>
<configSections >
<section name="scrollKee per"
type="NFission. WebControls.Scr ollKeeperConfig Handler,NFissio n.WebControls.S crollKeeper"/>
</configSections>
<scrollKeeper default="true">
<page name="testRIA.a spx" scrollKeep="fal se" />
<page name="JpegImage .aspx" scrollKeep="fal se" />
<page name="JpegImage 2.aspx" scrollKeep="fal se" />
<page name="/employer/registerEmploye r.aspx" scrollKeep="fal se" />
</scrollKeeper>
<system.web>
<compilation defaultLanguage ="vb" debug="true" />
<pages validateRequest ="false" />
<customErrors mode="Off" />
<sessionState
mode="StateServ er"
stateConnection String="tcpip=1 27.0.0.1:42424"
cookieless="fal se"
timeout="400"
/>
<authenticati on mode="Forms">
<forms name="staffing"
loginUrl="/applicant/ee_logon.aspx"
timeout="400"
protection="All "
path="/" />
</authentication>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
<httpModules>
<add
type="NFission. WebControls.Scr ollKeeperModule ,NFission.WebCo ntrols.ScrollKe eper"
name="ScollKeep erModule" />
</httpModules>
<httpHandlers >
<add verb="*" path="MetaBuild ers_DialogWindo w.axd"
type="MetaBuild ers.WebControls .DialogImageHan dler,
MetaBuilders.We bControls.Dialo gWindow" />
<add verb="GET"
path="FtbWebRes ource.axd"
type="FreeTextB oxControls.Asse mblyResourceHan dler, FreeTextBox" />
<add verb="GET" path="CaptchaIm age.aspx"
type="WebContro lCaptcha.Captch aImageHandler, WebControlCaptc ha" />
</httpHandlers>
</system.web>
</configuration>
*************** *************** *************** *************** *************** *********
Scrollkeeper is apparently causing the problem but only as a Virtual
directory. It works fine when I access it as www.stfstage.com.
If I take out the ScrollKeeper sections it seems to have a problem with
virtual paths and gets an error:
*************** *************** *************** *************** *************** ************
The virtual path '/skins/mth/MainPage.ascx' maps to another application,
which is not allowed.
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.Http Exception: The virtual path
'/skins/mth/MainPage.ascx' maps to another application, which is not
allowed.
Source Error:
Line 27: navigation = "NavigateTo p" & ".ascx"
Line 28: end if
Line 29: pageControl = LoadControl(the Page)
Line 30: thePlaceHolder. Controls.Add(pa geControl)
Line 31: contentControl =
CType(thePlaceH older.FindContr ol("_ctl0:Navig ation"),Control )
Source File: C:\Inetpub\wwwr oot\StfStage\jo bSeeker\display companyJobs.asp x
Line: 29
*************** *************** *************** *************** *************** ************
My code that is causing the problem is:
tePage = "/skins/" & session("Compan yInitials") & "/" & "MainPage" &
".ascx"
pageControl = LoadControl(the Page)
How can I make this work in my scenario - or can I?
Thanks,
Tom