473,466 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Request format is unrecognized

I've this problem: i'm trying to build a method that outputs an object like
this:

public class Autenticazione
{

public string Username
{
set
{
Username=value;
}

get
{
return Username;
}

}

public string Password
{
set
{
Password=value;
}

get
{
return Password;
}

}

The WebService implementation is this:

public class Service1 : System.Web.Services.WebService
{
public static Autenticazione aut;
public Service1()
{
InitializeComponent();
aut = new Autenticazione();
aut.Username="username di prova";
aut.Password="password di prova";
}
[WebMethod]
public Autenticazione get_Autenticazione()
{
return aut;

}

When i try to call the method, i receive this response:
Request format is unrecognized.

Is there anyone who can help me?

Thanks

Francesca

Nov 23 '05 #1
2 1628
it was suprising. you didn't get StackOverFlowException
try this instead
public class Autenticazione
{
private string m_userName;
private string m_password;
public string Username
{
set
{
m_userName = value;
}

get
{
return m_userName;
}

}

public string Password
{
set
{
m_password = value;
}

get
{
return m_password;
}

}
public class Service1 : System.Web.Services.WebService
{
public Service1()
{

InitializeComponent();
}
[WebMethod]
public Autenticazione get_Autenticazione()
{
Autenticazione aut = new Autenticazione();
aut.Username="username di prova";
aut.Password="password di prova";
return aut;

}
}
regards
erymuzuan
Nov 23 '05 #2

i forgot try/get use, Thanks.

"erymuzuan" wrote:
it was suprising. you didn't get StackOverFlowException
try this instead


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: qbsu21th | last post by:
Dear Sir/Madam, I'm writing a small VB6.0 and Access 2002 application in XP OS. I selected the data control property RecordSource, I got the "Unrecognized database format 'xxx/xx/*.mdb' " error....
14
by: L Mehl | last post by:
I tested a FE/BE application developed in A2000 on a A2002 machine and got this message when exiting the app. Clicking the only available button "OK", exits the application, as intended. The FE...
7
by: timmso | last post by:
I'm using Ado.net in an asp.net project with an Access backend. Whenever I try to do a simple Select or Update, I inevitably see the error "Unrecognized database format". I'm using Access 2000. ...
1
by: Trygve Lorentzen | last post by:
Hi, my webservice is running on Win2000 SP4, IIS 5.0 fully patched, connecting to a MySQL database and mainly returning Typed DataSet's from webmethods. After running for a while, generally a...
0
by: Merighi | last post by:
I've this problem: i'm trying to build a method that outputs an object like this: public class Autenticazione { public string Username { set { Username=value;
2
by: Dave | last post by:
running server 2003, .net 1.1, developing with vs 2003. i have a simple one function webservice that takes 4 string inputs. calling it with http post from simple form made by cutting out the demo...
1
by: Rabbit | last post by:
Can anyone tell me why my web developed in .net 2.0, using Access database (.mdb). working fine at my development machines, but when I deploy it onto new Windows Server 2003, the web returns...
6
by: James12345 | last post by:
i have created a database for our advisors to log their call types. It is being run on about 10 different machines. Every couple of weeks, when someone tries to open it, the error Unrecognized...
1
by: syed_razi | last post by:
I have a VB 6.0 application using Access as backend. It is being used on a local area network. The backend database is password protected. The problem is that the database gives me a run time...
4
by: Hepburn08 | last post by:
Hi, I need some help opening a corrupt Microsoft Access database file. I get an error message that says "unrecognized database format". Since I can't open it, I can't export the data to another new...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.