WCF / ASMX :: Deploying Running Test Webservice On Localhost Development Computer?

Dec 30, 2010

I created a simple web service in VS2010 (C# - XP Professional SP3 development computer -- running .Net 3.5/4.0) that just does the basic "Hello World" and changes Temperatues from Farenhet to Celcius functions and ran fine in VS2010. I then created a directory in C:Inetpubwwwrootwebsvcvs10a (of the same development computer). In the localhost IIS I converted this to an application directory (properties/create application). I tried to deploy my web service here using the publish wizard of VS2010 but was getting errors stating that the URL was not in the correct format, so I decided to just copy myService1.asmx, Web.Config, and the bin folder (which contains the compiled assembly) directly to C:Inetpubwwwrootwebsvcvs10a. Then from the localhost IIS I tried to browse myService1.asmx and received the following error:

Configuration Error
Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error: [Code]....

Source File: c:inetpubwwwrootwebsvcvs10aweb.config Line: 6

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

--I tried changing the targetFramework to 3.5 in web.config, but that did not fix the problem. I then removed the targetFramework attribute from web.config and then got this error message:

Could not load file or assembly 'myVS2010Websvc' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

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.BadImageFormatException: Could not load file or assembly 'myVS2010Websvc' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

What can I / should I do to resolve this problem so that I can deploy this web service project to localhost -- don't I already have .Net 4.0 runtime on this machine? It is the same machine that is running VS2010.

View 2 Replies


Similar Messages:

WCF / ASMX :: Call Webservice From Different Computer On Different Network

Mar 28, 2011

I have created web service and deployed on server after creating proxy server ..........

when i browse the URL used in proxy server from different computer on same network, it works fine..... but when i browse the same URL on computer on different network, it wont work.....

how do i call webservice from different network

View 1 Replies

WCF / ASMX :: Create Test Platform Using C# - Invalid Webservice

Aug 18, 2010

I am writting a client applicatin that acesses a webservice written by another company. I need to test against this webservice but since it is live I need another place to test with. I don't have access to the code from the webservice but have added a reference to my project. I would like to create a test platform using C# which will run on IIS and not Java. I have created a basic webserive using both the NetBeans platform and the VS/C# platform. The problem I am having is if I dynamically change the web address from one to the other my client application complains that the webservice is invalid. I have verified all the calls are the same.

Are there any setting with VS/C# that allow me to configure it to behave more like the Java webservice? I don't have the server support to host the Java application for full testing along with other problems using the Java version. I have run both services in the "WCF Test Client" and can see where the WCF service uses the varibles for request and the Java uses body/request but can't get the WCF to follow that format. I read somewhere about changing the OperationContract with SoapRpcMethod but then the mentod is not longer exposed. I also tried a Web Service in .NET 3.5 instead of a WCF server but that seems to be more trouble and does not help.

Error message:

The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).

View 7 Replies

WCF / ASMX :: Test Webservice - How To Enter The Values: Dept="sales" And StaffNo="abc" ?

Mar 31, 2011

I have three working webservices and one I am trying to do. The new one is very similar to a working one. I'm not sure how to test the webservice. I can open it and get the two input boxes for knownCategoryValues and category. What do I enter in these textboxes?

The working method uses 2 sql parameters, but I'm not sure how I enter these in the textboxes. In my example I want to enter the following values: Dept="sales" and StaffNo="abc"Here is method, but what do I enter to test it?

<WebMethod()> _
Public Function GetGrades(ByVal knownCategoryValues As String, ByVal category As String) As CascadingDropDownNameValue()
Dim strConnection As String = DBConnectionString[code].....

View 3 Replies

DataSource Controls :: Test Sql Connection From Localhost To Internet Host?

May 21, 2010

Can you test your connection from localhost to internet host Sqlserver Database

View 4 Replies

Loopback - Why Can't Make An Http Request To The ASP.NET Development Server On Localhost

Apr 5, 2010

I have an ASP.NET project (VS2008 on Windows 7 with either webforms, MVC1, or MVC2 -- all the same result for me) which is just the File->New hello world web project. It's using the default ASP.NET development server, and when I start the server with F5, the browser never connects and I get a timeout. I tried to debug this by telnetting to the development server's port while it was running, and I got the same result:

C:Usersfarmercs>telnet localhost 54752 Connecting To localhost...Could not open connection to the host, on port 54752: Connect failed I can see in the system tray that the server thinks it's running, and a netstat -a -n command shows that there is indeed an active TCP listener on that port.

This worked in the not-too-distant past, and I could work on web projects using the development server. One thing that has changed since then was that I installed the Microsoft Loopback Adapter to accommodate a local development Oracle installation. I'm not sure this is the problem, but it seems a likely culprit.

I also tried to hit the port using the server name itself (http://mycomputername:54752) but with the same result. So, what could be blocking me from connecting? And if it's the loopback, then what is a good way for me to retain my ability to connect to my development Oracle server while still being able to use the ASP.NET development server?

View 1 Replies

C# - Retrieving Client User Name And Computer Name Within Webservice?

Jan 22, 2011

I have web service on server! This service is calling from the clients applications!

Now how i can get user name and computer name of clients that using this service, for example if application from Clint1 calling this service i want to get computer name and user name of Clint1?

View 1 Replies

Configuration :: Session Value Becomes Null On Deploying - Works Fine With Development?

Aug 16, 2010

My Session gets null after redirecting to other page,

Below written is my code in login page:

protected
void btnLogin_Click(object
sender, ImageClickEventArgs e)
{
// saving login history calling submit function to save login details in database
callsubmitfunctionofDatalayer();
//saving session
Session["Username"] = txtUsername.Text;

[Code]....

View 3 Replies

How To Check In .NET MVC View If Site Is Running On Localhost Or 127.0.0.1

Jul 9, 2010

How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1?

View 2 Replies

Installation :: Localhost Not Running / How To Configure And Use All The Stuffs

May 22, 2010

i even dont know how to configure and use all the stuffs and just want to start learning..

when i type localhost in my IE..it shows IE cannot display the webpage..

View 2 Replies

Development And Test Environment Practices?

Jul 7, 2010

This question is for ASP.NET and SQL Server developers. What are your best practices with respect to setting up your development and test environment? I'm interesting in the following issues: How many tiers do you recommend and what goes on on each tier? Just dev, test, and production or perhaps dev, test, staging, and production? Which types of applications and/or servers should run on actual physical hardware and which can get away with a VM? What are your strategies for loosely coupling users from web sites, web developers from their web/app/DB servers, and DB developers from their DB servers?

How do developers stay "DRY?" What are the pros and cons to putting web, app, and DB servers on their own machines? Does putting servers on separate machines in order to minimize contention for a machine's resources trump any NIC and network latencies that might be introduced by putting them on different machines? How do you configure your web apps to minimize contention for resources (e.g. virtual directories, separate application pools, etc.) How and how often do you refresh your databases on each tier? Do you just refresh the data or both the data and objects?

View 1 Replies

Ideal Dev / Test / QA Environment For Development?

May 26, 2010

I am working to rebuild my company's dev/test/QA environment. We have 10-15 programmers that are involved in a number of projects. They currently all develop locally on their PCs and use the dev environment for testing. We currently do not have a QA environment, so deployments are frequently a pain because bugs are usually found after something has gone live. Here's what I envision:

Doing away with everyone's local admin privileges and making everyone develop on a dev server. Create a QA environment that is identical to our production systems. This will allow them to test deployments. Create a new test environment that is more locked down than the dev server so that proper testing can be done. What are your thoughts? What is the best way to set up an environment like this? We develop ASP .NET applications using MS Visual Studio 2008.

View 6 Replies

Tdd - Test-drive WebForms Development?

Dec 16, 2010

How do you test-drive ASP.NET WebForms development in VS08?

View 2 Replies

DataSource Controls :: Running On Different Computer - Path Will Auto Change

Jul 26, 2010

I created a DataSet(right-click project-->add new item-->DataSet) and then a TableAdaptor to it with table from database. However, when i bring the project to others computer and run, it has error.

I look into the DataSet in xml and found that the path to database is actually on the computer that created the DataSet(C:DOCUMENTS AND SETTINGSUSERDESKTOPPROJECT NAMEAPP_DATADATABASENAME.MDF)

My database file is located at the App_data folder. May i know is there a way to config so that whenever i run the project on different computer, the path will auto change?

View 2 Replies

Configuration :: File Not Found Error When Running Under LocalHost?

Oct 30, 2010

I have a fairly big ASP.NET 3.5 website that refuses to open any page via the 'View in Browser' option of VS2010, i.e. the LocalHost facility does not work. All I get is a 'File Not Found' error.

Two other ASP.NET 4.0 sites (which are much simpler and do not have any SQL Server connections) can be viewed without any problem via the LocalHost service.

View 9 Replies

Architecture :: Best Practices For Test & Development Environments?

Jul 9, 2010

This question is for ASP.NET and SQL Server developers. What are your best practices with respect to setting up your development and test environment? I'm interesting in the following issues:

1. How many tiers do you recommend and what goes on on each tier? Just dev, test, and production or perhaps dev, test, staging, and production?

2. Which types of applications and/or servers should run on actual physical hardware and which can get away with a VM?

3. What are your strategies for loosely coupling users from web sites, web developers from their web/app/DB servers, and DB developers from their DB servers?

4. How do developers stay "DRY?"

5. What are the pros and cons to putting web, app, and DB servers on their own machines? Does putting servers on separate machines in order to minimize contention for a machine's resources trump any NIC and network latencies that might be introduced by putting them on different machines?

6. How do you configure your web apps to minimize contention for resources (e.g. virtual directories, separate application pools, etc.)

7. How and how often do you refresh your databases on each tier? Do you just refresh the data or both the data and objects?

View 1 Replies

Specified Cast Is Not Valid Error On Development But Not On Test Server?

Sep 1, 2010

I have a .Net 2 solution with some asp classic pages.I get a specified cast is not valid error when I access the page on my local. Below is the vb function where I get the Error:

Public Function Retrieve(ByVal vntSeqId As String, ByRef vntPart As String, ByRef vntPartKey As String, ByRef vntEntDate As String _
, ByRef vntStatus As String, ByRef vntOrigGblId As String, ByRef vntOrigNetId As String, ByRef vntOrigName As String, ByRef vntOrigPhone As String _ [code]...

At first, I thought the problem is with the source code and we were thinking the source code we have is different with the ones deployed on test and prod servers. But when I tried to upload it on the test server, I don't get the specified cast is not valid error.

View 1 Replies

WCF / ASMX :: Passing Variable From Dropdownlist.selectedvalue To Asmx Webservice

Nov 10, 2010

On my page I have a dropdown for country.

On my asmx service I want to get the value of the dropdownlist to filter the next input which will be state/providence.

My code on the asmx:

[Code]....

I want to add another clause to the WHERE statement to restrict Country = @Country so I will need to get that value to the web service.

View 2 Replies

Write Use Case(s) & Test Driven Development For Binding A Gridview?

Mar 9, 2011

I'm still trying to understand and use Use Cases and Test Driven Development, but having a hard time crossing the line. I'm hoping someone can provide a good example of how setting a datasource and/or databinding a gridview could be accomplished using Test Driven Development.reate an aspx page and add the gridview control to it.create a method in the code behind called BindGrid(datacollection,gridview) that passes the collection and gridview to a method in a class outside my website so I can actually write the Unit test for the method, and returns a databound gridview.On the BindGrid method, I right click and select "Create Unit Test" which creates a new test project for me with an outline test for my BindGrid() method.Now I guess there are a number of test I could write, for example:testTrueDataCollectionBindstoGridView() to see if the collection datatype actually binds? I'm not sure the other test to write?This is how I currently understand I would go about TDD and Unit testing my example. It feels very clumsy and I'm hoping for some feedback as to what I'm doing wrong, and ideas for improvement.How would you go about writing a test for a collection binding to a control? For example say I wanted to bind a dictionary to a drop down list. What test should I be writing, and how would I go about writing them?

View 3 Replies

WCF / ASMX :: Bulk Insert Data Into Asmx Webservice?

Feb 24, 2011

I have datatable consist of 20 records and i want to bulk insert into sqlserver through the asmx webservice. Can anybody guide to me or provide Sample BusinessLogic and webservice code.

View 1 Replies

Visual Studio 2008 - Test Multiple Domains Using Web Application Development Server?

Mar 25, 2010

I am developing a single web application that will dynamically change its content depending on which domain name is used to reach the site. Multiple domains will point to the same application. I wish to use the following code (or something close) to detect the domain name and perform the customizations:

[code]....

I would like to test the functionality of the above using the ASP.NET development server. I created mappings in the local HOSTS file to map [URL] to 127.0.0.1, and [URL] to 127.0.0.1. I then browse to the application with the browser using [URL] (etc).

When I try to test this code using the ASP.net development server the [URL] always says localhost. It does NOT capture the host entered in the browser, only localhost.

Is there a way to test the URL detection functionality using the development server?

View 1 Replies

Visual Studio :: Running Project With VS Development Server?

Feb 25, 2011

I'm attempting to run/debug an ASP.NET MVC project under .NET 4.0 using VS2010's Dev Web Server. The server appears to spawn successfully and an instance of IE Explorer opens. However, the browser never seems to find the page. The browser just "spins" showing only a white page...no error message.VS is configured to randomly select a port, although I get the same results when configuring numerous static ports.The ASP.NET project is the start-up project.

View 2 Replies

Web Development - Deploy Webservice From Team Foundation Server To IIS

Feb 10, 2011

I have locally made a simple helloworld web service (.asmx) that I want to test.

I have an enviroment where I already have it uploaded to the Team Foundation server, in NAMECustomerApplicationsTestServiceTestServiceservice.asmx (the whole project is located in that structure).

The TF server and the IIS server are on the same machine.

Now, how do I deploy service.asmx file so I locally can get a path to the service like this: [URL]

View 1 Replies

WCF / ASMX :: Deploying / Publishing A Web Service?

Nov 16, 2010

This is probably a very basic question. I'm a web service newbie. I've created a web service (that runs fine locally) and now I need to put it on our web server so that it can be accessed. How in the heck do I do this? I'll be using IIS 6.1 on a Windows Server 2008 machine. Here's what I've done:

Moved my code to the inetpub/wwwroot/MyService folder(service is now under default web site in IIS as expected)Converted to Application

When I try to browse, it tells me the file can't be found. I'm sure I've either done something wrong or missed a step somewhere.

View 2 Replies

WCF / ASMX :: (500) Internal Server Error / Posting XML From To Localhost?

Sep 15, 2010

I was given a new Win 7 machine for development and converted our project to it. Everything is working fine except posting a an XML from to localhost. I'm getting the famous (500) Internal Server Error. (previous machine was Vista...) I had also upgraded from VS2008 to VS2010.

There is nothing in the event log, and the IIS log shows that the web server does get the hit: 2010-09-15 15:03:13 W3SVC1 MYCOMPUTER ::1 POST /xml/MRPImport.asmx/UploadForecast - 81 - ::1 HTTP/1.1 - - - localhost:81 500 0 0 280

Below is the code that was working perfectly fine until the upgrade.

Dim oWeb As New System.Net.WebClient()
oWeb.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
Dim bytArguments As Byte() = System.Text.Encoding.ASCII.GetBytes(strXMLData)
Dim bytRetData As Byte() = oWeb.UploadData(ToURL, "POST", bytArguments)

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved