[SOLVED] Application.MapPath Application.WiseJ 2

Answered
0
0

Hi,

I’m use VBNET, inside a Module with Wisej 2 Application.MapPath

return C:\Program Files (x86)\IIS Express\ , but in 1.5.x work

Application.StartupPath return empty string

how should i do now?

regards

Cristian

  • You must to post comments
Best Answer
1
0

Hi Frank,

I have found the problem, solved!!! The file web.config

I realized that the problems were many more, for example it did not stop at the messagebox.

OLD web.config

<modules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Core”/>
</modules>
<handlers>
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler”/>
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Core”/>
</handlers>

 

NEW web.config

<modules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Framework”/>
</modules>
<handlers>
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Framework”/>
</handlers>

when we migrate a project we need to edit web.config file

regards

Cristian

  • Frank (ITG)
    Thanks Cristian for clarifying that issue. For the move from Wisej 1.5 to 2 we strongly recommend to take a look at the readme file as there are a few points to consider / modify. web.config is one of them. Best regards, Frank
  • Cristian Zerbinati
    Sorry Frank, my fault that I have not read the readme file. But where I can found it?
  • You must to post comments
0
0

Hi Frank,

your are right, with the old project migrated from 1.5.x to wisej 2.x I have the problem, but if I do a new wisj2 project there is no problem.

I’m investigating, the project is large

thank you

Cristian

  • You must to post comments
0
0

Hi Christian,

where is Application.StartupPath empty for you ? In 1.5. or 2.0 ?
Can´t reproduce here.
Can you please share a code snippet how you use it, when and where it is working and where it fails ?

Thanks in advance.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.