I have a WCF Service library written in .NET 4.0. I have a WCF application (in order to host this service in IIS) within the same solution. It contains the WCF library assembly reference and a service.svc file pointing to the service from the library along with a web.config that is a replica of the WCF service library's app.config. The WCF application is set to host the service in IIS7 (the virtual directory has been set). The same solution contains an ASP.NET Webforms solution to which I have added a service reference pointing to the WCF service I hosted in IIS (as mentioned).
When i start an instance of this ASP.NET Web application, I get a message saying that "The WCF service has been hosted" and the ASP.NET application can access the data from it correctly. However, when i try and access this data via a service reference added to an MVC 2 Web Application on the same machine in a different solution (pointing to the service hosted in IIS), I get a "The remote server returned an error: (405) Method Not Allowed." protocol exception . However, the MVC application is able to access the service data if I manually invoke an instance of the WCF Application that I was using to host the WCF Service Library from the other solution.
I am using VS2010 Beta 2 as my development IDE. I have been stuck with this issue for a while now. Any help would be appreciated.
i had a file upload control,2 buttons and ddl.
one button to insert uploaded image to database and the other to view image as thumbnail..
after i browse the image and before it is stored in db if any postback occurs the filename in textbox dissappears.
once i click on view button image appears but path dissappears before image is inserted in db...
i am using ASP.Net with c# to develop dynamic web site with backend(database)of mysql and when i search sample code of third membership provider, i got one from this site(The Code Project) and i used it as the steps telling me but when i run my asp.net configuration the error says Could not load type 'Andri.Web.MySqlMembershipProvider'. i couldn't understand it. what shall i do could someone telling me please? i am just a beginer for all of the things, i just doing things by reading reference.
I found the article from where you're implementing that. In point 3, the author is asking to add two files to App_Code folder, those file can be download from the link provided at the top namely 'Download source files'
Don't forget to mark 'Good Answer', if you find it really a good one
I want to do is,i have 2 dropdownboxes having names like Country and states ,when i select country then state dropdown box must give respective country's states.Give me way or logic to do this.....
I got little bit idea , i dont knw its true or wrong? its like i can use onchange event of dropdownbox and sql query.....for sql query i required table having fields country and states...
Is it right way?
Last Visit: 31-Dec-99 19:00 Last Update: 2-Feb-23 18:24