Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: ASPDNSFUsernameTokenManager

  1. #1
    Cefajoe is offline Junior Member
    Join Date
    Feb 2010
    Posts
    2

    Question ASPDNSFUsernameTokenManager

    Hi Guys,

    I'm trying to get a demo site working with WSI. The test client is erroring with the following

    System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later ---> System.ApplicationException: WSE842: The service pipeline could not be created. ---> System.Configuration.ConfigurationErrorsException: WSE032: There was an error loading the microsoft.web.services3 configuration section. ---> System.Configuration.ConfigurationErrorsException: WSE040: Type AspDotNetStorefront.ASPDNSFUsernameTokenManager could not be loaded. Please check the configuration file. (C:\inetpub\wwwroot\AspDotNetStorefront\web.config line 202)
    at System.Configuration.BaseConfigurationRecord.Evalu ateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
    at System.Configuration.BaseConfigurationRecord.Evalu ate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSe ctionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey, Boolean getLkg, Boolean checkPermission)
    at System.Configuration.BaseConfigurationRecord.GetSe ction(String configKey)
    at System.Web.HttpContext.GetSection(String sectionName)
    at Microsoft.Web.Services3.Configuration.WebServicesC onfiguration.get_Current()
    --- End of inner exception stack trace ---
    at Microsoft.Web.Services3.Configuration.WebServicesC onfiguration.get_Current()
    at Microsoft.Web.Services3.Configuration.WebServicesC onfiguration.get_MessagingConfiguration()
    at Microsoft.Web.Services3.WseProtocol.ModifyInitiali zedExtensions(PriorityGroup group, SoapExtension[] extensions)
    at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
    --- End of inner exception stack trace ---
    --- End of inner exception stack trace ---

    The install for WSI refers to copying code into the app_code folder of the web site, but I dont have a folder called app_code, or a file called ASPDNSFUserNameTokenManager

    Any one able to shed any light?

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    This is the downloadable demo version you are using, correct? Looks like the ASPDNSFUsernameTokenManager.cs file might be missing a #define statement on top of that class. Open that file and find the '#if WSE3' line in the App_Code\ASPDNSFUsernameTokenManager.cs file and add this line immediately above it.
    Code:
     #define WSE3

  3. #3
    Cefajoe is offline Junior Member
    Join Date
    Feb 2010
    Posts
    2

    Default

    Thanks, for the reply,

    Yes I'm using the demo, but that file dosn't exist in the demo version. Is there another way to test it?

  4. #4
    Mike The Last Boyscout is offline User
    Join Date
    Nov 2008
    Posts
    254

    Default

    In the demo, you can do a sample import and just uncheck the WSE3 authentication portion (which is responsible for that error). The fix that Alfred recommended will work in the full version, but since you don't have access to that file in the demo, you can just use the method described above.