Security :: Unable To Create Web Service In IIS
Nov 24, 2010
I'm having VS 2008 and OS vista. When I try to create a web service in IIS it gives me a error tht I shud run the VS 2008 as admin then create a web service. When I run as admintrator and create the web service then no problem. Is it possible to create the web service without running as administrator?
View 6 Replies
Similar Messages:
Jan 27, 2010
i am writing following code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
[Code]....
wen i m running this code its giving me "access id denied" exception..
View 2 Replies
Jan 25, 2011
I have previleges to create folder and create files in the remote windows 2003 server. But I am not able to create im ny Website.
View 2 Replies
Jan 14, 2011
I have a web application. This application needs to perform a search on folders located on 2 different machines. I can use impersonation for this. But -
a. I don't want to use network service account
b. I want to impersonate just the search part of the code.
c. Specifying encrypted user name / password in web.config is one option. But this would be the last option.
Can I use a custom service account for the application pool for this? If yes, then how to impersonate a specific part of code using this?
View 3 Replies
May 25, 2010
My WCF Client calls my WCF Service which then calls ASMX Web Service. The problem is i have configured my wcf client and wcf service to windows credentials type but when wcf service calls asmx service the user credentials (default windowsidentity) is not passed to asmx service.
In WCF Service i am able to get user identity by using : Thread.CurrentPrincipal.Identity.Name;
WCF Service - i have disabled anonymous access and enabled windows authentication. ASMX Web Service - i have disabled anonymous access and enabled windows authentication.
WCF Service Config
[Code]....
View 1 Replies
May 24, 2012
I developed a web service in VS2010 on my local machine, wrote a consumer of it also locally, and that all works.
I copied the dll and the asmx file to our server, and I am getting an error when I try to invoke it from a browser (also still on the server machine) to make sure it correctly exposes its web methods, but it is not, it is saying "Could not create type 'Service'". That error comes from this line:
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/WarrantyDuplicate.cs" Class="Service" %>
There other web services in the same folder on the server that all work fine so I don't believe it's an IIS setup thing.
This is my first web service in C# and when I created it in VS I did think it odd that the code behind file went into App_Code (as you can see from the line in the asmx file) and is just named dot-cs rather than asmx-dot-cs. But since it worked fine locally, I wasn't sure that mattered.
View 2 Replies
Mar 17, 2011
How to create an instance of web service without adding web service reference? How to identify the server address/name where the web service is hosted from C# code?
View 1 Replies
Aug 30, 2010
How to create simple web service in VS2010 Professional (trial version). There is no template to do this. I am not trying to create WCF service here.
View 2 Replies
Jan 23, 2010
I am writing two ASP.NET apps. One is a web service that provides xml data and the other is a web client that will use the service to display and manipulate data. I would like for the web service to do the membership authentication and authorization. Is there any way to simply point the login controls in my client application to the web service instead of to a database. I assume I would have to provide the necesarry methods in my web service interface, which would then use the membership provider database I created and pass the results back through to the client.
Is this possible? I have seen many articles on security provisioin from a web service but none has really been what I am looking for. I was hoping that, since my service and my client are both written in ASP.NET, there might be some built functionality that would benefit me.
View 8 Replies
Jan 20, 2011
i want to create a web service which consists of CRUD operations Create, Retrieve, Update and Delete. creating web methods on insert and update operations.
View 2 Replies
Jan 5, 2011
I am trying to consume a Web Service via my ASP.NET website. I added a Web Reference and was able to consume the Web Service locally. Then I moved it to my Server and it fails with a message of "No connection could be made because the target machine actively refused it".
View 2 Replies
Feb 13, 2010
I have developed a wcf service for asp.net ajax client. It includes the following steps.
(1) Created WCF sevice contract with the operation "DoWork()" which will take string as input and retun string as output.
(2)Implemented the above operation contract(attributed the implementation class with aspnetcompatibility requirement as enabled).
(3)Added the webscriptenabled to endpoint in web.config file.
(4)Hosted the wcf servie.
(5)Downloaded the javascript file from the service.(e.g.,http://localhost/service1.svc/js)
Client
(1)Opend new asp.net webapplication.
(2)Added the downloaded .js file.
(3)Given the scripts path for ajaxscript manager as both .js file and service url.
e.g
<asp:ScriptManager
ID="id1"
runat="server">
<Scripts>
<asp:ScriptReference
Path="http://localhost:3443/Service1.svc/js/"
/>
<asp:ScriptReference
Path="~/js1.js"
/>
</Scripts>
</asp:ScriptManager>
(4)With this I am unable to call service method
View 2 Replies
Feb 16, 2011
I work for a financial company that has many branches all over the world. Their network security is no 1 on their network priority list. Even the workstation I use is locked down pretty tight, so I don't have the ability to change or install anything. The firewalls are also pretty much very well controlled and I can't really do much, outside of the network, other than browse the web.
My problem is related to all of this...I wanted to create a web app that queries the Google Maps api to get info about the location clicked on a map, by using their reverse geocoding api.If I type the following into my browser, I get the results I require:
http://maps.googleapis.com/maps/api/geocode/xml?latlng=-26.0323760475938,28.0514430999756&sensor=true
When I use that url within my app, I get an "Unable to connect to remote server" error. I can only assume that this is related to our restrictions on the firewall, as if I publish the page to my web site (outside the company network), and run it, it works perfectly.
I decided that I would build a small web service with the required code in it to return the data I need. I have written the web service and published it to my site. When I test it by browsing to the asmx file location on my site, I get the usual info presented about the web service.
My problem is that when I try adding the web service to my mapping app, I get the following error, and the "Add Reference" button is disabled:
There was an error downloading 'http://www.carrollsoft.za.bz/mailclient/service.asmx'.
Unable to connect to the remote server.A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed...I thought that web services were supposed to be able to get around firewalls, because they use port 80? Our proxy server isn't on port 80, so I added the following to the web config on my mapping app, but I still get the same error:
<system.net>
<defaultProxy>
<proxy usesystemdefault="False" proxyaddress="mybrowserproxyname:1234" [code]....
View 2 Replies
Dec 15, 2010
I have to invoke SSIS packages from web service in the most secure way. I think that windows authentication will be secure but i am not sure. I do not have much knowledge about how to achieve this and the information on the internet is very distributed.
View 1 Replies
Feb 4, 2011
I have a web service which is accessible from the browser. When I try to access the same web service which is hosted on Windows Server 2008 R2, from an excel Macro, it says
Run-time error '-2147220991' (80040201)':
Server was unable to process request --> The request failed with HTTP status 404: Not Found.
The excel macro works fine when I try to access the same web service on the other server(Windows 2000 Server)
The web service is developed using .Net 2.0.
I'm posting the URL for the web service for your reference.
URLs which are not being accessible from Excel.
[URL]
[URL]
URLs which are being accessible from Excel.
[URL]
[URL]
Both Web services and Excel macros are old applications which have been running fine for years. The only change is that the application is being migrated to a new server(MCDEAGDWEB202) which has Windows Server 2008 R2 and SQL Server 2008.
The Old server(MCDEAGLWEB005B) has Windows Server 2000 and SQL Server 2000.
View 4 Replies
May 28, 2010
I have added a web service as a reference to a windows application using "AddWebRefrence" option. And I am unable to access the funtions in the web service but instead i get the functionnames followed by the completedeventargs and completedeventhandler.
What am I doing wrong and how can i access the funtions in the web service.
View 3 Replies
May 21, 2010
I'm not able to call a service using the scriptmanager and javascript. But when I include the service into the project i call it. but when i seperate it in another project. I'm not able to call.
<asp:ScriptManager runat="server" ID="sm" EnablePageMethods="true" EnableScriptGlobalization="true">
<Services>
<asp:ServiceReference Path="http://localhost:2794/Service1.svc" InlineScript="false" />
[code]...
View 1 Replies
Sep 3, 2010
I am trying to run a sample WCF ADO.Net Data Sertice on my IIS, which give me message The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /testing_wcf_service/WcfDataService1.svc/Web Config File as
<?xml version="1.0"?>
<configuration>
<system.web>
[code]...
View 1 Replies
Apr 30, 2010
I receive the following error, when trying to consume Wcf service:
"An existing connection was forcibly closed by the remote host". Consuming the service works fine when the host and the client are on the same machine. When I move the client to Hyper-V virtual machine (I didn't try it on a real computer) - it throws the error. Both firewalls are turned off Do you know what can cause such behaviour? Here are the details:
Both the client (hyper-v) and the service are on Windows server 2008 R2
Service url - http://wcftest/CalculatorService.svc (wcftest is the website and is mapped in the hosts file to localhost)
Service config:
[Code]....
Client config:
[Code]....
Are there any configuration settings which I'm missing?
View 1 Replies
Mar 31, 2011
I have a website(X) hosted on a Windows server .
This Website is running under a AppPool= "CustomAppPool" ( Im using a specific AD Username and Password as the credentials for the apppool)
Website Is running under Credentials "DomainNameUsrName"
This Website should access a WCF service which is running under "MAchineNameASPNET" process
When i try to get the details of the calling method (UsrName) from the client calling the WCF ..... Im unable to to do so
I am always gettting the MachineNameASPNET as the credentials
How can i get the "DomainNameUsrName" from the callign website
View 1 Replies
Feb 16, 2011
i am running with an unfamilier issue with jquery ajax and wcf service . i have created a simple wcf service and trying to show it on a asp.net label... the wcf service just returns a string which has to b shown on a label. the url has been set on jquery ajax url to call the wcf service using rest. but somehow i am not getting the desired thing done . the ajax cannot retrieve the data from the wcf service , here are the code snippets.
The Ajax Portion in default.aspx :
[Code]....
The Service Contract for WCF :
[Code]....
The implemented Method :
[Code]....
and the Web.Config :
[Code]....
can someone figure out here i am going wrong .... that the ajax is unable to retrieve the data from the above wcf Service .. its just a very basic and simple one .. but unable to figure out the Real Prblem.
View 1 Replies
Nov 9, 2010
I have got this error
Unable to connect to the remote server
when I call the web service from the windows service. But I can visit this web service through IE and I also wrote another console application to call the web service and it works fine, too.
The exception infomation is below:
A socket operation was attempted to an unreachable network 127.0.0.1:8888
Here is my code:
WebImageSVC webSvc = new WebImageSVC();
ConfigManager.LoadConfigManager();
webSvc.Url = ConfigManager.WebSvcAddress;
webSvc.Proxy = null;
webSvc.CanUpload(0, "");
I try many methods, like turn off the firewall and anti-virus software, set the web services proxy property to null. but still cannot solve this issue.
View 2 Replies
Dec 8, 2010
i have added a service reference but i am unable to access the methods, there is a method call "GetContactById" which i can see when i add the service but i am unsure how i can get to this in code. i have tried creating an instance first but i get this error
Error 116 Core.omnetService.OMWCoreSoap' is a 'type', which is not valid in the given context
omnetService.OMWCoreSoap test = omnetService.OMWCoreSoap();
test.GetContactById(strKey, UserId.ToString());
what is the best way to solve this?
View 4 Replies
Mar 23, 2011
i am using VS 2008, whiile working on the walkthroughs of restful services(http://msdn.microsoft.com/en-us/library/dd203052.aspx), i did not find any template for the ADO.net services. Could you please direct me to the link where i can download/install the required template or package.
View 1 Replies
Mar 15, 2010
I have installed/compiled mono, xsp and mod_mono. But how do I configure apache to use it? I tried including the mod_mono.conf file and apache does see the module and loads it but when I visit an asp page I getService Temporarily UnavailableThe server is temporarily unable to service your request due to maintenance downtime or capacity problems.
View 2 Replies