London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Virtual applications

Vote:
 

Hello,

When I add an virtual application under an EPiServer website (cms 6) in IIS 7 I get an errormessage. Both the rootwebsite and the virtual application runs in integrated mode.

The error message:

 

Compiler Error Message:

 
Line 35:     }
Line 36:     
Line 37:     public virtual EPiServer.Personalization.SubscriptionInfo, EPiServer SubscriptionInfo {
Line 38:         get {
Line 39:             return ((EPiServer.Personalization.SubscriptionInfo, EPiServer)(this.GetPropertyValue("SubscriptionInfo")));


Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\tpv4\359c80b7\b0aff9a4\App_Code.gvq_n_dt.0.cs Line: 37

 

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

 

 

The virtual directory is just an ordinary .net application, it doesnt matter what it contains, not even a simple .htm-file works. Are you not supposed to add virtual applications under an EPiServer site? I've googled for it with no good answears.

#40942
Jun 23, 2010 16:25
Vote:
 

Hi Robert.

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

#40944
Jun 23, 2010 21:15
Vote:
 

Couldn't you just do...

<system.webServer>
  <modules>
    <clear/>
  </modules>
</system.webServer>

 

 

 

#40955
Jun 24, 2010 9:01
Vote:
 

Hi,

It did not help removing the httpModules for my virtual application.

I got som more information, when I run my virtual application in classic mode I can get it to work with htm-files. So far, so good. But when I navigate to an .ashx-file I get an error saying something like "this look like a script and will not be handled by the statis file handler" I can understand that cause my .ashx handler has the preCondition="integratedMode". So I than add a new ashx-handler:

<add path="*.ashx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" preCondition="classicMode" responseBufferLimit="0" />

And now I get the exact same errormessage described in my first post.

#40957
Jun 24, 2010 9:46
Vote:
 

hi robert

did you found any solution for your problem?
I tried the solution Tore proposed, but without any success.

BR
xuan

#52199
Jul 11, 2011 18:56
Vote:
 

There's a Stackoverflow question about this:

http://stackoverflow.com/questions/1073170/invalid-token-in-class-struct-or-interface-after-checkout 

#52200
Jul 11, 2011 21:52
* 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.