HELP get this error:The format of the specified domain name is inv

P

pettsen

I have developed an asp.net application in Microsoft Visual Web Developer
2008 Express Edition, and all works fine, but after i moved to an Intranet
server (2003), i get the error down below.

HELP.....

Server Error in '/adtool' Application
--------------------------------------------------------------------------------

The format of the specified domain name is invalid. (Exception from HRESULT:
0x800704BC)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The format
of the specified domain name is invalid. (Exception from HRESULT: 0x800704BC)

Source Error:


Line 15: Dim objSysInfo = CreateObject("ADSystemInfo")
Line 16: ' Currently logged in User
Line 17: Dim objUser = GetObject("LDAP://" & objSysInfo.UserName)
Line 18: Dim stringstart = InStr(objUser.EmailAddress, "@") + 1
Line 19: Dim stringlength = stringstart - 1


Source File: E:\adtool\Default.aspx.vb Line: 17

Stack Trace:


[COMException (0x800704bc): The format of the specified domain name is
invalid. (Exception from HRESULT: 0x800704BC)]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type
objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
+934
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +448986
_Default.Page_Load(Object sender, EventArgs e) in
E:\adtool\Default.aspx.vb:17
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2603
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top