WCF / ASMX :: FTP Directory Listing In Windows Application But Not In Windows Service?

Dec 13, 2010

Iam using ftp client wrapper class for accessing ftp.

iam able to download files from ftp when used in windows application

when i try to use the same code with windows service i get an error

the error is

"The underlying connection was closed: An unexpected error occurred on a receive. "

this error i get on directory listing

the stack trace is:

[Code]....

Note:

FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer

soruce code:

[Code]....

View 5 Replies


Similar Messages:

WCF / ASMX :: Enable Integrated Windows Authentication On Web Service?

Feb 9, 2011

I have just started building an asp.net web service with visual studio 2005. However whenever i try and run the site i get this message, saying "debugging failed because integrated windows authentication is not enabled". I am at a loss of how to correct this problem.

View 1 Replies

WCF / ASMX :: Read/write Registry In Windows Server 2008 Using Web Service?

Dec 9, 2010

I create web service for Reading and writing the registry. It works fine in win-xp. But its not working when I published it in win-2008 server. It shows me http 500 error.

My Code is:

set Reg:
string key = @"SOFTWAREWow6432NodeMyCompanyMyProjectSettings";
string valuename = "Allow";
setRegistryValue(key, valuename, Value);
Get Reg:
string key = @"SOFTWAREWow6432NodeMyCompanyMyProjectSettings";
string valuename = "Allow";
return Convert.ToInt32(getRegistryValue(key, valuename));

View 2 Replies

WCF / ASMX :: Windows Communication Foundation Service Returning Xml / Json Data?

Aug 25, 2010

I Need by service contract to return the xml/json result depending on the request type. function which will convert my result set (i am using linq to sql) so that i do not need to create the xml format for the result set by iterating through the table row many times.What is the suitable way to do that.

I need a kind of short cut method which will convert the table data to xml result.Had i been using asp.net mvc i would have been able to generate the xml data by overriding the the ExecuteResult method in the ActionResult and giving Conetnt-Type = "text/xml" as OP.But since i am using Wcf i don't have the controller context(as controller context is the parameter that needs to be passed to Execute Result).

My present code for converting the table data to the xml format is below.

public XDocument UsersLists(string authToken)
{
bool IsAuthenticated = Authenticate(authToken);
XDocument xDoc = new XDocument();
XElement root = new XElement("Users");

[Code]....

I need to eliminate this way of generating xml for each table records.

View 1 Replies

C# - How To Consume Windows Communication Foundation (WCF) By A Windows Service

Jul 28, 2010

When i create a Windows Service for getting information from a Web Application(ASP.NET c#) for scheduling some task in the client machine.

To consume WCF from the web application. I added WCF reference to Window Service project as a service reference, everything seems fine. It updated app.config file, added service reference etc.
it was not working.

[Code]....

View 1 Replies

Architecture :: Using Windows Service In Web Application?

Sep 10, 2010

I wanna embed the windows service in the web application. I have seen few posts in the web. where they generate separate exe for the windows service and use it as an installable.

The same process i tried doing it but it threw an OS error in my server which is windows 2000 and didnt supported the executable.

However the website of mine runs fine in the same server. Thus i was thinking if i cd embed the same code in the web application.

Also, in my case the website of mine takes job for simulation. These jobs are taken for simulation execution and nearly takes 12hrs for completion and if they are not completed within twelve hours then they are supplied extra twelve hours to complete the simulation jobs.

The simulation executables are a series of executable and bat files.

The results of the simulation gets updated in the tables of MySql and hence are displayed to the user.

View 2 Replies

C# - Window Application Or Windows Service?

Sep 2, 2010

I want to create a popup application that will run against my sql database and Fire a popup everymorning at the user machine to ask a question. the response will be send back to the Database. Prety easy with Windows service BUT not with a POpup or Interface.

View 3 Replies

Installing Windows Application On Client System (Example: Windows Update From Microsoft Site)

Nov 23, 2010

I have a ASP.NET application. From that, User register, User will get email after registration. My Req : When user click on link provided in email. Then it should go to my ASP.Net application page . That page should install a wincows application on Client system through web ( I was inspired by Microsoft Windows update from Microsoft site)

View 1 Replies

Can Windows Service Application Share A Bin Folder With A Web Application

Jan 5, 2011

I have some common dlls that are referenced by both a windows service application and a asp.net web application. I don't want to make separate copies of the dlls and I also don't want to put those dlls into GAC. I try to put that service application under the same root folder as the web application so that they can share the same bin folder. I am not quite sure if this will cause any problems? I did find the web application had random session timeout, but not very often. Not sure if it was caused by the shared dlls.

View 1 Replies

WCF / ASMX :: How To Access A Wcf Service Hosted On A Server Running On A Virtual Machine On A Windows 2008 R2 Hyperv

Jul 14, 2010

I am trying to access a wcf service hosted on a server running on a virtual machine on a windows 2008 R2 hyperv. When i access this service when running my asp.net website through code everything works fine how ever when i deploy the application on the local IIS , in the deployed mode i am getting an securityaccessdeined exception. My Asp.net app is running on a IIS server on another virtual machine. The stack trace is as given below :

Environment Info: My asp.net app has built on .NET 4.0 framework using VS2010. My WCF services are based on .NET2.0 framework.
Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 14-07-2010 13:56:54

Event time (UTC): 14-07-2010 08:26:54

Event ID: dd1986e7e7dc4473beb908754c75a580

Event sequence: 4

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1/ROOT/StratosTest-1-129235696025728041

Trust level: Full

Application Virtual Path: /StratosTest

Application Path: C:inetpubwwwrootStratosTest

Machine name: MC-NEWCODE

Process information:

Process ID: 1752

Process name: w3wp.exe

Account name: IIS APPPOOLASP.NET v4.0 Classic

Exception information:

Exception type: SecurityAccessDeniedException

Exception message: Access is denied.

Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()

at Default2.Page_Load(Object sender, EventArgs e)

at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:

Request URL: http://localhost/StratosTest/Dashboard.aspx

Request path: /StratosTest/Dashboard.aspx

User host address: ::1

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOLASP.NET v4.0 Classic

Thread information:

Thread ID: 4

Thread account name: IIS APPPOOLASP.NET v4.0 Classic

Is impersonating: False

Stack trace: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at VMMService.IVirtualMachineManagementService.GetAllVirtualMachines()

at Default2.Page_Load(Object sender, EventArgs e)

at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

View 1 Replies

Configuration :: Set File For Windows Service Application?

Nov 6, 2010

I have a visual studion 2010 solution with two projects

1 . A class libarary

[Code]....

2. A windows service application

[Code]....

The service application is used to convert .dbf files to xml. The convertion is done using the classlibary project wich is called by the windows service application. This class library project has some values hard coded. like the path to look for the .dbf file

const string sourcePath = @"F:forms";
const string pathToDbfStructure = @"F:formsstructure.dbf";
const string pathToBackupFile = @"F:ackup";

I want to make these hard coded values changable. like moving them to an app.config file. To which project I have to add the app.config file (classlibary or windows service)? How can I use the value from configuration file in classlibrary ?

View 3 Replies

C# - Create Deployment Application For Windows Service?

Sep 24, 2010

I am currently working in a project where it is having multiple asp.net web applications, windows services. Now we have a requirement that I need to create an Setup application should do the following tasks automatically create database, install web applications in IIS virtual directories, install windows services and modify all configuration files do necessary checks before starting deployment. Which tool preferably open source / freeware help me in developing above setup/deployment application?

View 1 Replies

Write To Event Log From A Windows Service Application?

Dec 4, 2010

In my windows service application (c#), I am checking if an event log exists then write to that event log, otherwise create new event log and write to it. But it always writes to the generic "Application" event log. Do I need to change some settings?

[Code]....

View 10 Replies

VS 2010 - Web Service To Write To Windows Application Log

Nov 29, 2012

I am writing a web service for a customer. I tested it locally fine using a consumer, but he is having an issue calling it from his jquery, so he asked for logging.I figured I would use the Windows Event Log for this purpose. after I added the event log and was testing it locally via the consumer, I had an error saying The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. So what I did to solve that was restart Visual Studio with administrator privelege so the event logs could be searched. And I am writing to my event log locally with no other issues.

My question is, when my customer intalls this new version of my web service, will it be able/unable to search the logs and if unable, how can it be given admin privelege so it is able, or again is that a bad idea?

View 1 Replies

WCF / ASMX :: Passing Value From Web Application To Windows Application?

Aug 17, 2010

I have a web page where I used a gridview and a button.When selecting rows in the grid and click on the button another windows application fires.I need to pass the values of the selected rows to the windows application.

Rightnow I'm saving the values in an xml file and fetch the values in the windows application.But this is not practical when creating xml files with random numbers(Scan125.xml,Scan7867.xml,etc).

View 1 Replies

Active Directory/LDAP :: PROJECT: Single-sign-on For Internet/application And Windows?

Jun 18, 2010

I'm analizing this situation:

-I've ASP.NET intranet application

-I've to centralize users' passwords in my domain and have visibility of them.

-Each user must change his own password each 3 months.

-Each user must have only one password for the access to Windows,Intranet application and ERP application

Is there a way to block all user accounts periodically and asking them to insert the new password after the logon to windows?after that i could make a query that update the passwrod in Intranet and ERP application.

View 1 Replies

Installation :: Uninstall .net Windows Application From Different Windows User

Jul 7, 2010

We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.

View 3 Replies

Windows Application Needs To Connect To Web Service To Pull Data?

Sep 22, 2010

I have an existing windows .net application that has an access database as the backend.

I want to place the access database on a web server and it was suggested that I create a web service in order to communicate with the database.

I've been looking at some tutorials but am still confused about the basic config needed. Here's some questions I have:

1) Does the web service need to be created inside my current project by right clicking on the solution and choosing to add a new web site...and then selecting web service?

2) If it's set up like this, what files do I place onto the web server?

3) Where does the database reside? Do I need to place the database inside the web server that I create?

4) My current project has existing sql that gets data and I'm uncertain how to re-write in order to retreive the data. e.g. which part goes into the client and which part goes to web service pages? here's an example of a procedure that currently exists...I'm getting data to populate a dropdown:

[code]....

View 8 Replies

Installation :: Execute Application Where Windows XP Service Pack 3 Is Installed?

Oct 23, 2010

I want to execute my asp.net application where Windows XP Service Pack 3 is installed + VS 4.0 framework is installed and IIS 5.1 is installed. The program is not running yet. It shows me an erro message that "Server is unavailable" Is it possible to run the application on this machine. I also tried aspnet_regiis -i and -c command

View 3 Replies

C# .net Windows Application Setup Not Running In Windows 7

Apr 12, 2010

i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it.

View 2 Replies

Migrate Application Running In Windows 2000 Server To Windows Server 2008?

Mar 10, 2010

Currently we are running an application build in VB6,ASP,Commerce Server2000 and Sql Server 2000. This application is running in Windows 2000 server.Now we are planning to migrate Windows server 2000 to Windows 2008.Will this application run in Windows 2008 or do we need to upgrade this application to dotnet and Sql 2008?

View 1 Replies

Active Directory/LDAP :: LDAP - Directory Entry Issue With Out User And Password Using Impersonate And Windows Authentication?

Feb 8, 2010

LDAP - directory entry issue with out user and password using impersonate and windows authentication

View 1 Replies

Installation :: Development To Web Movement: Directory Listing Denied - This Virtual Directory Does Not Allow Contents To Be Listed

Oct 27, 2010

I made a web form on a development website of mine (we'll call it dev.somewhere.com) and tried to publish it out to the web (we'll call it [URL]) in a subfolder. I named it default.aspx like I was supposed to and it worked flawlessly on the dev site. When I published it out the web, I wound up getting the following error when trying to get to the subfolder: [URL] Directory Listing Denied

This Virtual Directory does not allow contents to be listed. Confused and flustered, I tried to go to [URL], but I wound up with some error that won't tell me the problem. Instead it tells me to change the my web.config to read <customErrors mode="Off"/>.

View 1 Replies

VS 2005 Virtual Directory - Windows Server 2003

Apr 9, 2010

I have made a Virtual Directory in XP. I have files with no extension. When I click on those files they are downloaded perfectly from a XP Server. However when I made the server on Windows 2003 Server. I got problems downloading these files. What should I do in Windows 2003 Server Settings? Or should I do something with my code. I am pretty sure that I will not have to disturb my code as it is running fine on XP

View 6 Replies

Security :: Login Using Authentication Against Windows Active Directory?

Jul 30, 2010

I am using Visual web Developer 2010 Express.

I want to create a small intranet web site with a login page that will authenticate against groiups of users in Active Directory. So for example if someone in Group A logs in they can get to web page X and if someone from Group B logs on they can get to web page Y. Is it possible to do this with the login controls without writing code? I thought it would be a fairly standard thing to do.

View 7 Replies







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