How to create a web.config file to get SoapExtension loading?

后端 未结 2 1214
礼貌的吻别
礼貌的吻别 2021-01-18 04:13

I need to use a SoapExtension subclass (which I have created), but it seems that this class can only be initialized through a web.config file. I ha

2条回答
  •  被撕碎了的回忆
    2021-01-18 04:50

    I found out how to / where to insert the web.config content in the app.config file:

    I had to insert it after ApplicationSettings and userSettings elements. This is the only place where it doesn't generate any error at runtime. So no need for a web.config file, although I still would like to know how to configure the app, if someone has the answer.

    
    
      
      
      
      
      
      
      
        
          
            
          
        
      
      
        
        
      
    
    

    My SoapExtension seems to be correctly initialized now, and the message filtering works fine.

提交回复
热议问题