locked
Does latest dotnet framework required manually adding handler in web config RRS feed

  • Question

  • User-418973555 posted

    having running the app in dotnet framework 4.5, no problem at all

    but when running on 4.6.1, it is not functioning

    however, when tried 

     <urlMappings enabled="true">
          <add url="~/Default2.aspx" mappedUrl="~/SSEHandler.ashx"/>
        </urlMappings>
    
    
      </system.web>

    it seems to work, but the output is different, only raw data without any interface or css have displayed,

    Tuesday, February 25, 2020 4:37 AM

Answers

  • User753101303 posted

    The "bin" folder is usually for DLLs and I never even tried to serve files from this folder. Actually I would expect all downloads from this folder being blocked. Could it be that something was done to unblock this folder (which is likely a bad idea).

    It is hard to help as each post seems to discuss some entirely new issue...

    Edit: checked my local IIS Express config and it seems to be registered in https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/hiddensegments/ which seems to confirm that you are not supposed to be able to download something from this folder by default.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 27, 2020 4:08 PM

All replies

  • User753101303 posted

    Hi,

    One step at a time. So you mean you added a  SSEHandler.ashx to your project but it doesn't serve the expected content ?  Rather than telling that "it doesn't work", it is best to tell what happens (F12 network could perhaps hep, do you have 404 or maybe an http 500 status ???)

    Tuesday, February 25, 2020 5:06 PM
  • User-418973555 posted

    no, it might be it necessary needs to manually adding handler markup in web config 

    since it might be the upgrade version of IIS (Internet Information Service)

    Wednesday, February 26, 2020 1:42 AM
  • User753101303 posted

    You are moving from IIS 6 to IIS 7 or later? it works differently as shown at https://docs.microsoft.com/en-us/iis/application-frameworks/building-and-running-aspnet-applications/aspnet-integration-with-iis#aspnet-integration-architecture but I don't remember we had an issue for this upgrade.

    Anyway finding which unknown change caused some unkown error is really a hard guess. I prefer to always start from the actual problem (http status code and server side logs such as the Windows event log and/or IIS logs) and then  it's usually much more quick to find what caused the particular error you see.

    Edit : you added urlMappings as an attempt to solve your error ? Similarly if you know which error you have, it should be much easier to do something that could fix this issue compared with just trying random things until to find by chance what is fixing your unknown problem.

    Wednesday, February 26, 2020 1:53 PM
  • User-418973555 posted

    seems that  <script src="Bin/jquery-1.7.2.min.js"></script> did not work in this project, but it did work in another similar project

    then substitute with  <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> and it works

    Thursday, February 27, 2020 2:05 AM
  • User753101303 posted

    The "bin" folder is usually for DLLs and I never even tried to serve files from this folder. Actually I would expect all downloads from this folder being blocked. Could it be that something was done to unblock this folder (which is likely a bad idea).

    It is hard to help as each post seems to discuss some entirely new issue...

    Edit: checked my local IIS Express config and it seems to be registered in https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/hiddensegments/ which seems to confirm that you are not supposed to be able to download something from this folder by default.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 27, 2020 4:08 PM