Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
GeneralRe: datatable column size Pin
pmarfleet11-Dec-07 2:47
pmarfleet11-Dec-07 2:47 
Generalerror in execution of SSIS package.. Pin
tasumisra11-Dec-07 1:05
tasumisra11-Dec-07 1:05 
GeneralRe: error in execution of SSIS package.. Pin
pmarfleet11-Dec-07 2:48
pmarfleet11-Dec-07 2:48 
GeneralRe: error in execution of SSIS package.. Pin
mecca15-Feb-09 7:17
mecca15-Feb-09 7:17 
Generaldatagridview cell size limit Pin
arkiboys11-Dec-07 0:31
arkiboys11-Dec-07 0:31 
GeneralPop3 mail attachment download Pin
energeticsridhar11-Dec-07 0:18
energeticsridhar11-Dec-07 0:18 
GeneralRe: Pop3 mail attachment download Pin
m@u11-Dec-07 2:10
m@u11-Dec-07 2:10 
Generalunable to find database of webservice Pin
Member 447840010-Dec-07 23:53
Member 447840010-Dec-07 23:53 
I have created given below method which saves xml file and passes xml file name to database through client but there is an error message::::
which states like this::Server was unable to process request. ---> Cannot open database "client_server" requested by the login. The login failed.
Login failed for user 'WLINKCOMP3\ASPNET'.
wlinkcomp3 is the comp where web service is residing.......


[WebMethod]
public void ret_xml(XmlDocument file, string file_name)
{
int hi = 0;
string total_file_name = "Client_Information_" + file_name+".xml";
string path_image = "images/" + total_file_name;
file.Save(Server.MapPath(path_image));

thisConnection = new SqlConnection(connection);



SqlCommand myCommand = new SqlCommand("SELECT * FROM client_name", thisConnection);
thisConnection.Open();
myCommand.ExecuteNonQuery();

rdr = myCommand.ExecuteReader(CommandBehavior.CloseConnection);

while (rdr.Read())
{
string present = rdr["client_name"].ToString();
if (present == file_name)
{
hi = 1;
}

// thisConnection.Open();


}
rdr.Close();
if (hi == 1)
{
SqlCommand myCommand1 = new SqlCommand("INSERT into client_name(client_name) values ('" + file_name + "') ", thisConnection);
myCommand1.ExecuteNonQuery();
}
thisConnection.Close();
}


now given below is the client part
which generates xml files and passes the file name to web server....
Service aaa2 = new Service();
aaa2.ret_xml(xml_doc, StrFileName2);
could anybody help me...
thanking in advance Smile | :)
GeneralRe: unable to find database of webservice Pin
pmarfleet11-Dec-07 2:31
pmarfleet11-Dec-07 2:31 
GeneralCustom Form.Region under Win 2000 Pin
Stevo Z10-Dec-07 23:51
Stevo Z10-Dec-07 23:51 
GeneralXML Reader/Writer Pin
half-life10-Dec-07 23:48
half-life10-Dec-07 23:48 
GeneralRe: XML Reader/Writer Pin
Christian Graus10-Dec-07 23:57
protectorChristian Graus10-Dec-07 23:57 
GeneralRe: XML Reader/Writer Pin
half-life11-Dec-07 0:05
half-life11-Dec-07 0:05 
GeneralRe: XML Reader/Writer Pin
andypaxo10-Dec-07 23:59
andypaxo10-Dec-07 23:59 
GeneralRe: XML Reader/Writer Pin
Stevo Z11-Dec-07 0:30
Stevo Z11-Dec-07 0:30 
GeneralRe: XML Reader/Writer Pin
half-life11-Dec-07 1:20
half-life11-Dec-07 1:20 
Generaldatagridview cell validation Pin
arkiboys10-Dec-07 23:44
arkiboys10-Dec-07 23:44 
GeneralRe: datagridview cell validation Pin
CKnig11-Dec-07 0:25
CKnig11-Dec-07 0:25 
GeneralRe: datagridview cell validation Pin
arkiboys11-Dec-07 0:32
arkiboys11-Dec-07 0:32 
Generalsize of an empty class Pin
.NET- India 10-Dec-07 23:26
.NET- India 10-Dec-07 23:26 
GeneralRe: size of an empty class Pin
CKnig10-Dec-07 23:28
CKnig10-Dec-07 23:28 
GeneralRe: size of an empty class Pin
.NET- India 10-Dec-07 23:31
.NET- India 10-Dec-07 23:31 
GeneralRe: size of an empty class Pin
CKnig10-Dec-07 23:38
CKnig10-Dec-07 23:38 
GeneralRe: size of an empty class Pin
.NET- India 10-Dec-07 23:47
.NET- India 10-Dec-07 23:47 
GeneralRe: size of an empty class Pin
CKnig10-Dec-07 23:54
CKnig10-Dec-07 23:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.