Adding virtual directory to EpiServer sollution

Vote:
 

Hi everybody,

I've developed an EPiServer sollution for a customer. They want to add a web project that they already have developed into this sitestructure without having to "build" it into the episerver project.

My first thought was to add a virtual directory and run it from there. However, this gives me the following error-message when trying to access the files in this directory:


###########################################
Kompileringsfeil
Beskrivelse: Det oppstod en feil under kompilering av en ressurs som er nødvendig for at denne forespørselen skal fungere. Gå gjennom bestemte feildetaljer nedenfor og endre konfigurasjonsfilen.

Kompilatorfeilmelding: CS1519: Invalid token ',' in class, struct, or interface member declaration

Kildefeil:

 

Linje 116: }
Linje 117:
Linje 118: public virtual EPiServer.Personalization.SubscriptionInfo, EPiServer SubscriptionInfo {
Linje 119: get {
Linje 120: return ((EPiServer.Personalization.SubscriptionInfo, EPiServer)(this.GetPropertyValue("SubscriptionInfo")));

Kildefil: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\solvkroken\95c5aae1\abac6979\App_Code.isgvat6o.0.cs Linje: 118

###################################

Does anyone know how to get this to work?

Regards,
Frode 

#29383
Apr 23, 2009 23:13
Vote:
 
#29384
Edited, Apr 24, 2009 2:38
Vote:
 
I don't think the line 120 cast "(EPiServer.Personalization.SubscriptionInfo, EPiServer)" is valid syntax (including the assemly name in the cast). That probably has nothing to do with the virtual directory, but at least it seems to be causing the compiler error.
#29385
Apr 24, 2009 7:24
Vote:
 

Hi Frode.

Have you tried to remove the EPiServer httpModules for your virtual directory?

<location path="pathtoyourservice">
    <!--IIS6-->
    <system.web>           
        <httpModules>
            <remove name="InitializationModule"/>
            <remove name="Initializer"/>
            <remove name="WorkflowRuntime"/>
            <remove name="UrlRewriteModule"/>
        </httpModules>
    </system.web>
    <!--IIS7-->
    <system.webServer>
        <modules>
            <remove name="WorkflowRuntime" />
            <remove name="UrlRewriteModule" />
            <remove name="Initializer" />
            <remove name="InitializationModule" />
        </modules>
    </system.webServer>
</location>

Hope this helps!

BR, Tore

#29386
Apr 24, 2009 7:59
Vote:
 

Have you checked this thread:

http://world.episerver.com/Forum/Pages/Thread.aspx?id=22195&epslanguage=en

 

Your problem looks a lot like the problem with two different EPiServer-dll versions.

 

Andreas

#29387
Apr 24, 2009 8:48
Vote:
 

Thank you so much Tore!

Your hint solved the problem immediately, and saved my weekend.

Have a nice weekend everybody.

 BR,

Frode 

 

#29388
Apr 24, 2009 9:46
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.