Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Help with network path error!

Reply
Thread Tools

Help with network path error!

 
 
rcoco
Guest
Posts: n/a
 
      04-18-2007
I'M HAVING THIS PROBLEM WITH MY WEBSITE, I DEPLOYED IT ON TO TE
SERVER
AND ON THE SERVER IT WORKS WELL BUT WHEN i TRY TO INSERT DATA WHEN ON
CLIENT I GET THIS ERROR:
[COMException (0x80070035): The network path was not found]
System.DirectoryServices.DirectoryEntry.Bind(Boole an throwIfFail)
+705
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_AdsObj ect() +10
System.DirectoryServices.PropertyValueCollection.P opulateList() +234
System.DirectoryServices.PropertyValueCollection.. ctor(DirectoryEntry
entry, String propertyName) +56
System.DirectoryServices.PropertyCollection.get_It em(String
propertyName) +97
Dash_Board.DashBoard.dgis_ItemCommand(Object source,
DataGridCommandEventArgs e) in c:\inetpub\wwwroot\dash_board
\dashboard.aspx.cs:156
System.Web.UI.WebControls.DataGrid.OnUpdateCommand (DataGridCommandEventArgs
e) +109
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(O bject source,
EventArgs e) +507
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
+26
System.Web.UI.WebControls.DataGridItem.OnBubbleEve nt(Object source,
EventArgs e) +106
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
+26
System.Web.UI.WebControls.LinkButton.OnCommand(Com mandEventArgs e)
+121
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.Ra*
isePostBackEvent(String
eventArgument) +115
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+138
System.Web.UI.Page.ProcessRequestMain() +1292
I'm using windows authentication and I'm adding identity
impersonate="true".
And here is the behind code:

System.Web.UI.WebControls.TextBox st6=new
System.Web.UI.WebControls.TextBox();
st6=(System.Web.UI.WebControls.TextBox)e.Item.Cell s[0].FindControl("txtname*");
SqlCommand myCommand=new
SqlCommand();myCommand.Connection=con;myCommand.Co mmandText="insert
into DashBoard (ObjectiveAchieved,Objective,MoodToday,Name) values
(@ObjectiveAchieved, @Objective,@MoodToday,@Name)";
myCommand.Parameters.Add(new SqlParameter("@Name",SqlDbType.Text));
string
DomainUser=System.Security.Principal.WindowsIdenti ty.GetCurrent().Name.Repl*
ace("\
\","/");
System.DirectoryServices.DirectoryEntry ADEntry = new
System.DirectoryServices.DirectoryEntry("WinNT://"+DomainUser);
myCommand.Parameters["@Name"].Value=st6.Text=(ADEntry.Properties["FullName"].Value.ToString());

Where could I be going wrong?
Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with writing a file to a Network path (UPN) pxpilot ASP .Net 1 04-25-2008 01:01 AM
File sharing in wireless network - network path not found =?Utf-8?B?SmFtZXM=?= Wireless Networking 5 08-24-2006 09:12 PM
Server.MapPath() croaking with "failed to map path", but path is legal awbacker@gmail.com ASP .Net 0 05-12-2005 10:50 PM
Bizzare: Invalid path to Access mdb, path is good Keith-Earl ASP .Net 1 05-03-2004 03:25 PM
Tomcat returning 404 error when using additional path (/servlet/myServlet/extra/path/info) Mupota Muchelemba Java 1 02-04-2004 12:43 AM



Advertisments