Same Problem I discussed here
http://forums.asp.net/t/1899534.asp...pplication see the last reply In that...What security I should add here?
And I tried one more way....as below...I Added below line in DNN web.config file
compilation debug="true
Now I am getting error like below
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: 'http://www.w3.org/TR/xhtml1/DTD/xht...strict.dtd">
I dont know where is the problem...My DNN webservice is in Desktop module and the code below
<%@ WebService Language="VB" Class="WebServiceDNNUser" %>
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports DotNetNuke.Entities.Users
http://www.site.com/")> _
_
Public Class WebServiceDNNUser
Inherits System.Web.Services.WebService
#Region "GetUsername()"
_
Public Function GetUsername() As String
Dim strUsername As String = ""
' Get the current user
Dim objUserInfo As UserInfo = UserController.GetCurrentUserInfo()
' If the user is not -1 they are logged in
If objUserInfo.UserID > -1 Then
strUsername = objUserInfo.Username
End If
Return strUsername
End Function
#End Region
End Class