.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How can i solve this issue wcf upload/download service ?? !!

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :SharePoint

Hi wcf guys,

 Iam into a problem and i really want you guys to give me an idea to solve my problem as soon as possible with the most easiest way possible..Problem given below : 

 Have created a wcf service that uploads and downloads files and folders to the client using basicHttpBinding.As we all know that as it is wcf it can be used in WAN or through the internet as well...Now if i host my service on a server and i have a firewall on which a static ip is configured which can be accessed by outsiders ......Suppose my static ip is and i acess my service through this ip from anywhere ,iam able to do so...

  My aplication uploads  files so the source willl be a local folder path that is to be uploaded and my destination is "\\server-ip\Sharedfolder"..so that my folder gets uploaded to the shared folder that is on the server.

  The PROBLEM is , as iam using the application in WAN and i access the service through static ip (obviously) ,what will be my destination for uploading ?? as i CANNOT have or access a shared folder on WAN !! In this case how will the uploading feature work in WAN?? what do i need to do now??Iam not allowed to create a shared folder and publicly access it,therefore my uploading destination folder cannot be created or accessed..


Please do give me a clear

View Complete Post

More Related Resource Links

web service file download and upload



I am trying to create a web service that can check a location for file and if available get the contents.

Also this web service has to upload the file using ftp after making changes locally.

Any pointers in this direction.



Download issue - Microsoft .NET Framework 3.5 Service Pack 1.


To whomever can assist.

I would greatly appreciate if someone could help me troubleshoot the download issues I am having with Microsoft .NET Framework 3.5 Service Pack 1.



Here is the log entry:

[11/26/10,10:34:14] Microsoft .NET Framework 3.5 (x64) 'package': [2] Error: Installation failed for component Microsoft .NET Framework 3.5 (x64) 'package'. MSI returned error code 1603
[11/26/10,10:34:31] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5 (x64) 'package' is not installed.
[11/26/10,10:45:59] WapUI: [2] Setup requires 398 MB of free space on System Drive, but only 279 MB is available.
[11/26/10,10:46:05] WapUI: [2] User has decided to continue
[11/26/10,10:46:10] Microsoft .NET Framework 2.0SP1 (x64) (CBS): [2] Failed to fetch setup file in CBaseComponent::PreInstall()
[11/26/10,10:46:10] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147467260.
[11/26/10,10:46:11] setup.exe: [2] CSetupManager::RunInstallPhase() - Call to Pre/Install/Post for InstallComponents failed
[11/26/10,10:46:11] setup.exe: [2] CSetupManager::RunInstall

how i can solve this issue in sql server



when i open my sql database in webmatrix then i got this error.  i already install sql server 2008 r2 and he work fine everywhere in my system.

how i can solve this issue.

How to solve concurrent site issue


Hi All,

I have developed a ASP.NET2.0 web site with SQL 2000 backend and number users to site is approx. 5-10.

I have developed one Administration page which controls user roles to access this site; onclick of Update button in admin page the role gets updated into the system. I have written simple query in the code to update the user roles into database; Ajax implemented in admin page;

Issue: If 2-3 users tries to update the admin roles; latest update reflected in the database and same displayed in the admin page;

I am looking for a solution to solve this problem by application code change since i dont have flexible to change the database end; if one users update the system, it should not allow other users to perform any operation; please let me know if any standard approach can be implemented with minor code change.

Thanks in Advance,

Saravana Prakash P.

Deserialization issue with returned from web service

Hi, I have a VS 2008 C#  client using a proxy generated by the Service Reference tool from a schema for a (prob Java?) ASMX web service.  I got serialisation errors when I tried connecting to the service around<xs:date> date fields, and on inspecting the incoming XML discovered the date format was yyyy-mm-dd hh:mm:ss.sss.   So 2 questions really.. 1) Is the schema I've been supplied with incorrect? 2)Is there a way to work around this, apart from manually editing the schema to xs:datetime and regenerating the classes?   Thanks MJ

Microsoft SQL Server 2005 Express Edition Service Pack 3 (KB955706) - will not download.install on W

I have tried and tried unsuccessfully to get this download to install properly. I get no error message at all but it quite clearly is not working properly. This has all ready taken me hours and hours of my time with no success (after following the fixes mentioned on this site). I look forward to suggestions at to how to proceed that may actually work. Many thanks cdbc81

An issue of using UDF in Excel Service

I am using Excel Service and it call an UDF(User Defined Function) to get data from a list. Currently I come accross following issues. Any one can give me suggestions are very appriciated. 1. In the UDF, if I marked the method as "ReturnsPersonalInformation=true". The data cannot be shown correctly, all cells appear "#Value?". 2. When I fist time upload a excel file to the Document Library, then open the excel on browser. All cells appear "<nativehr>0x80070005</nativehr><nativestack></nativestack>". When I manually click "Calculate Workbook", then the data comes correctly. Thanks again for any hints.

Permissions issue for custom web service in the _vti_bin folder.

Hello, I have created a custom ASMX webservice that returns in JSON format so that I can call the data from JQuery on SharePoint page content.  I placed it in the ISAPI (_vti_bin) folder and it works just fine when I go directly to the web service and call it the way JQuery calls it: /_vti_bin/ServiceabilityCheck.asmx/GetSystemIDByZIPCode?ipaddress= Which returns: <string>{"SystemID":"5"}</string> When I try to call it from the SharePoint site with JQuery, it errors out and gives an unspecified error.  Fiddler shows {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} as the response from the web service call. When I have the webservice on an IIS web app outside of SharePoint, it works fine.  I have anonymous access enabled on the SharePoint site, why would it give me this error?John Chapman | Blog: http://www.johnchapman.name

WF Service using EF4 POCO Entities Issue

Hi I've a WF Service using my EDMX and my Classes generated using a poco t4 template, but on execution when i include navigation properties related to a 1 to many or many to many relationships i got an underlying connection was closed error. I've traced the error and i got 2 exceptions different exceptions depending on which parameters i pass to my context and my ReciveAndSendReply Action. One is the related to that Navigation Property and the fact that it is generating a cyclic reference A.B  B.List<A> or viceversa and cant be serialized. The other changing my context property to enabling/disabling the proxy creation i get a overflow on the max message size or max message on the trace (the cyclic reference is doing an overflow and the entity back from the WF service is not coming back. Hope you can help me guys to figure out whats going on. Thx Pedro

Issue with SPTimer Service

I'm having isues creating a brand new SharePoint 2007 farm that I've never encountered before.  I'm installing a slipstream SharePoint 2007 EE with SP2, Infrastrucutre Updates and Dec 09 cumulative patchs (version 12.0.6524) I didn't have any issues or errors during the installation or during the configuration wizard but once I started to configure the farm, things just don't seem right. For example, if I try to start the Server Search Service, I'll get the error: An unhandled exception occurred in the user interface.Exception Information: Could not connect to the search administration Web service on server CDC-SPI-P01 because the web server is not running. I'll get this until I cycle both IIS and SPTimerv3 on both the Indexer and the Central Admin server. Also when I try to stop/start the timer server, it will hang on stopping and has to be manually killed. The last thing I noticed (and this might be the root cause) is that if I go to the Timer Job Status page, I'll get : There are no items to show in this view. even though jobs should have been run.  If I look at jobs in the definition page, even jobs that are suppose to run every minute have 'n/a' next to their last run time. Has anyone else seen something like this? I've used these binaries before so I know they're good but I am willing to do a complete uninstall/reinstall if its warranted.

How To "Upload a new document template" to Content Type via Web Service

I hope someone can help me. Let me begin by saying that I'm not a programmer; so I 'may' not get the terminology exactly right, but hopefully someone will know what I mean. I am using SharePoint 2010 along with a 3rd party application that I'm using for creating, managing and executing workflows.  The workflow application I'm using is Nintex Workflow 2010.  As such, I can only use functions, services, commands...etc...that are offered to me by that application. Anyway, what I am trying to do is simply replace a document template that is being used for a particular content type with another document template. For this I believe I need to use the Webs.UpdateContentTypeXmlDocument Method.  More information is provided here (http://msdn.microsoft.com/en-us/library/websvcwebs.webs.updatecontenttypexmldocument.aspx). The Webs.UpdateContentTypeXmlDocument method requires two parameters..."contentTypeId" and "newDocument". "contentTypeId" - I have got the Content Type ID by clicking on the content type and viewing the URL shown in my browser.  So, I am confident that my content type id is correct and is "0x010100C392CF11DE923A4E8AB9018B0A42119303". "newDocument" - The MSDN article states...'A string that represents the XML document to replace the existing XML document.".  To be honest, I'm not 100%

rdl Upload issue on SharePoint 2010

Hi all, I am deploying SSRS RDL files, Report Data Sources .rsds files on Sharepoint 2010 site using ReportService2006 Class available. I am doing the following steps; 1) Upload the file on Sharepoint using Filsteam Object. 2) Attached the Report Data Source to the RDL file uploaded. In this Step i first call _reportService2006.GetItemDataSources(rdlFileFullUrl) in case rdl is already uploaded and i get the error below; The item 'http://servername/Reporting/Report1.rdl' cannot be found. ---> Microsoft.ReportingServices.Diagnostics. Utilities.ItemNotFoundException: The item 'http://servername/Reporting/Report1.rdl' cannot be found. *** Report Deployment Failed. *** I checked the Sharepoint site to check the file is uploaded or not and file is uploaded correctly in the first step. Any suggestions, ideas will be helpful. Thanks, AmitAmit

Membership as a security/administration model for upload/download of documents

Hi community, I'm working on a website where it should be possible for registered users to upload word documents. The administration of users is done through Membership and Profiles. When the documents have been uploaded, the following needs to be achieved: Non-registered users should not be allowed to download documents I should be able to control which users that has access to which documents I should be able to register which user downloads which documents I should be able to track how many times a document has been downloaded Can this be achieved be using Membership and Profiles? Thanks in advance Best regards Phecdaret

How to upload and download files from remote servers without using FTP

Hi, Can we upload and download files from remote servers without using FTP? If yes can you please tell me how can we do that? Thanks in advance, Vikas Jaigude. 



Ajax issue: delay in getting data from web service using innerHTML, please guide

I am working on an ajax application which will display about a million records in an html table. Web service returns records from server, I build a logn string by concatinating data and tags and than put this string using innerHTML (not using DOM for getting better performance). For testing I have put 6000 recods in database (stored procedure takes about 4 seconds in completion of its execution). While testing on local system (database and application on same machine) it took about 5 minutes to display the records in page. After deplying on web server it did not responde even for more time. It looks very low performance. I put records in a CSV file and its weight was less than 2 MB. I couldn't understand why string concatinations to build html table and putting string in innerHTML is taking such a huge time (if it is the issue). Requiment is to show about million records in web page but performance on just 6000 records is disappointing. I am not gettign what to do to increase performance. Kindly guide me and help me.  

File Upload to database (and download)



How can I upload a file to a database (with as little code as possible!) along with a desciption of a file and then search through the descriptions to retrieve the appropriate files. Then how can I click on one and download it.

I am not a very advanced programmer and would like full step by step code if possible not just a link to a website.

Thank you very much


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend