Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Virtual applications



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.

Jun 23, 2010 16:25

Hi Robert.

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

<location path="pathtoyourservice">
            <remove name="InitializationModule"/>
            <remove name="Initializer"/>
            <remove name="WorkflowRuntime"/>
            <remove name="UrlRewriteModule"/>
            <remove name="WorkflowRuntime" />
            <remove name="UrlRewriteModule" />
            <remove name="Initializer" />
            <remove name="InitializationModule" />

Hope this helps!

BR, Tore

Jun 23, 2010 21:15

Couldn't you just do...





Jun 24, 2010 9:01


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.

Jun 24, 2010 9:46

hi robert

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


Jul 11, 2011 18:56

There's a Stackoverflow question about this: 

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.