Web App Unable To Access Remote File Through IIS 5.0

Jul 27, 2011

I have this web app that works just fine when I run it on IIS 6.0, but when I run it on a different machine with IIS 5.0, it ends up having file access problems. Basically, my web app uses a COM object, and this COM object uses resources, such as files, and these files are located in remote machines. A sample code would be:

Code:
MyComObj com = new MyComObj();
com.UseDataFiles("machineBdata.dat");

Again, it works fine on my machine with IIS 6.0, but in my other machine with IIS 5.0, it gives me an error. To be more precise, it's the COM object that gives me an error; the com object tells me that it can't find the file. What's weird is that when the web app calls this line:

System.IO.File.Exist("machineBdata.dat");

It returns True, which means my web app has permission to read, but when it does it through my com object, it can't see it. Again, I dont' think it's the COM object that has the problem since it runs fine on IIS 6.0. In fact, I ran a windows form application (that uses the COM) on the machine with IIS 5.0, and it works fine.

View 6 Replies


Similar Messages:

Security :: Unable To Create File In Remote Server

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

Web Forms :: Access Remote File In .NET Application?

Feb 14, 2011

I want to write text file on remote location using .NET application. So can anyone tell me how to do this.

View 5 Replies

File Upload Error/exception Details: System.bet .webexception. Unable To Connect To The Remote Server

Mar 2, 2010

I had this one working a while back i try to upload file to my root folder it works locally but when i try it from my website i get the following error: exception details: system.bet .webexception. unable to connect to the remote server

the code bomb at the following line

requestStream = uploadRequest.GetRequestStream() 'This is where the exception occurs
fileStream = File.Open(localFile, FileMode.Open)
[code]....

View 2 Replies

Read All File Names On Ftp Server / Unable To Connect To The Remote Server

May 27, 2010

I tried this code by inputting the ftp address as ftp//: and the correct username and password and I get the following error

"Unable to connect to the remote server" on line :

FtpWebResponse Response = (FtpWebResponse)Request.GetResponse();I tired this on my ftp server provided by a hosting service and an anonymous ftp located at 193.166.120.5 ?

Note: I was able to connect to both of these ftp through filezilla, via a webbrowser, and through windows command line.

View 1 Replies

Vb.net - Unable To Save File With FileUpload - Access Denied

Jan 17, 2011

the below code is use for my website to insert photos, On my compouter, i can insert pics but when i transfer it to the remote machine, i get error message. Here is the code:

[Code]....

View 1 Replies

C# - SmtpClient - Unable To Connect To The Remote Server

Jul 13, 2010

I am working on a project where one of the requirements is to re-write an ASP.NET application. The old ASP.NET application was based on .NET Framework 1.1. The new ASP.NET application is based on .NET Framework 3.5.

One of the functions in the old web application was the ability to send email. The old code used the System.Web.Mail.SmtpMail class, whereas the new web application uses the System.Net.Mail.SmtpClient class.

In testing this on our development servers, everything worked fine. However, we have two beta clients testing out our software, and they both run into problems sending email in the new web application.

The specific exception is as follows:

"Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it"

Both the old and new ASP.NET application are on the same server (Windows Server 2003). They both are using the same Exchange mail server. Why is it that the old ASP.NET application can successfully send email, but the new one cannot?

I looked at the old code, and it did not use any form of authentication, it just specified the sender's email address, the recipient's email address, the subject, body, and server, and sent the message. I did the same thing in the new code, with the only difference being that I used the SmtpClient class.

Below is a code snippet from the new ASP.NET application:

System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
mail.To.Add(messageTo);
mail.From = new MailAddress(messageFrom);
mail.Subject = messageSubject;
mail.Body = messageBody;
SmtpClient client = new SmtpClient();
client.Host = smtpServer;
client.Send(mail);

View 3 Replies

Unable To Connect To Remote SQL Server 2005

Jan 19, 2011

I have created my asp.net website using database ASPNETDB.MDF but when I try to host my site on server ...

The SQL Server 2005 hosting provider issue me the

database name dobriyalji
server ip : 69.112.222.220
database username : XXXX
database password : XXXX

I have imported all of my ASPNETDB.MDF tables to my server database dobriyalji ...

And I empty the Appdata.mdf and aspnetdb.log file from App_Data Folder ...

When I try to run my site the following error occurs ...

An attempt to attach an auto-named database for file UsersAshish DobriyalDocumentsVisual Studio 2008WebSitesVOLVOApp_DataASPNETDB.MDF

failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

MY LOCALHOST CONNECTION STRING :

<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>

MY REMOTE HOST CONNECTION STRING :

<connectionStrings>
<add name="vbi_india2kConnectionString" connectionString="Data Source=69.112.222.220;Initial Catalog=dobriyalji;Persist Security Info=True;User ID=XXXX;Password=XXXX" providerName="System.Data.SqlClient"/>
</connectionStrings>

View 2 Replies

C# - Unable To Connect To The Remote Server From Windows Service

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

Visual Studio :: Unable To Debug A Remote Web Project In VS 2005

Jan 14, 2011

I am not able to debug a Remote web project (Where the project files are located in another server which is in the same network). I am getting the below error message:

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder,
Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Excel.Range.get__Default(Object RowIndex, Object ColumnIndex) at InventoryADD.Button1_Click(Object sender, EventArgs e) in
\10.38.23.228q1uatassettrackInventoryADD.aspx.cs:line 670

It works fine when i try to access the website through IIS. Shud i do some setting changes on VS 2005?

I've tried with

<trust
level="Full"
originUrl="" />

View 1 Replies

Asp - SmtpClient.Send Exception - Unable To Connect To Remote Server

Mar 6, 2011

My site sends confirmation emails from a purchase. 95% of the time, it works. The other 5% after clicking the 'Confirm' button that runs the payment and should send the email, i get the following exception:

Details:
Exception: Failure sending mail.

Inner Exception: Unable to connect to the remote server

Inner Exception(2): 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 to respond 72.167.234.197:25

The code to send the email is this:

Dim smtpClientPayPalSuccess As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()
smtpClientPayPalSuccess.Host = "relay-hosting.secureserver.net"
smtpClientPayPalSuccess.Send(mailMessagePayPalSuccess)

FYI: I have confirmed with the hosting that I don't need any credentials, or a different port number than 25. This is also running over https. why this would be happening only a small percentage of the time?

View 2 Replies

Can't Send Smtp Email From Network Using C# Error / Unable To Connect To The Remote Server

Apr 1, 2010

I have my code here, it works fine from my home, where my user is administrator, and I am connected to internet via a cable network.

But, problem is when I try this code from my work place, it does not work. Shows error:

"unable to connect to the remote server"

From a different machine in the same network:

"A socket operation was attempted to an unreachable network 209.xxx.xx.52:25"

I checked with our network admin, and he assured me that all the mail ports are open [25,110, and other ports for gmail].

Then, I logged in with administrative privilege, there was a little improvement, it did not show any error, but the actual email was never received.

note that, the code was tested from development environment, visual studio 2005 and 2008.

try
{
MailMessage mail_message = new MailMessage("xxxxx@y7mail.com", txtToEmail.Text, txtSubject.Text, txtBody.Text);
SmtpClient mail_client = new SmtpClient("SMTP.y7mail.com");
NetworkCredential Authentic = new NetworkCredential("xxxxx@y7mail.com", "xxxxx");
mail_client.UseDefaultCredentials = true;......

View 4 Replies

Access :: Access Membership Provider / Unable To Edit/update The Data With Gridview

Jan 7, 2010

I made a project to use the access membership provider from [URL] and it works. But I need to edit my database but when I configure my database, I cannot see the tabel, I can only see the queries in mdb file. when I select the field from query, I am unable to update it. My code is as follows:

[Code]....

View 3 Replies

Access A Remote Directory From C#?

Mar 25, 2011

I am trying to access a remote network share from a C# program in asp.net. What I need is something like

function download(dirname)
{
directory = (This is the part I don't know how to do)

[code]...

View 3 Replies

Access :: Unable To Insert Data Into Access Database Using OLEDB

Sep 2, 2010

I have a form wilh couple of Drop downs and text boxes and a Data Grid View which displays data from Access Table. When I hit add button on the form, I can see the data being added to the Grid View. But when I close the form and open the Access Database File (.mdb), the respective table is empty. The Access Table is not being updated. Second time if I open the form, the Grid View is also empty.I am pasting my code here.

Public Class Home
Shared OleDbConnection As System.Data.OleDb.OleDbConnection
Shared ExpensesDataAdapter As System.Data.OleDb.OleDbDataAdapter [code]....

View 4 Replies

Web Forms :: Force File Download On Remote File Server

Sep 13, 2010

I'm trying to force a large (200+ MB) file to download that's on a remote server. The problem is that I can't use the "WriteFile()" function, since I'm not using a virtual path. Then, when I try:

Response.AppendHeader("content-disposition",

View 17 Replies

How To Find Remote Server That Don't Have Access To

Jan 27, 2010

I have an ASP.NET MVC site that is running into some conditions that it is pegging the processor on the iss boxes it's running on. I don't have access to these servers (it's a farm of about 5 iis6 boxes behind a netscalar). I am doing some logging to a sql database, but the problem is that when the cpu pegs my database starts timing out. The iis servers are hosted in house, but I can't get access to them.

And to make things ever more complicated, I can't reproduce any of these issues in my qa environment (which I don't have access to either). QA is setup to similarly to our prod environment, but it runs on a single box that isn't behind a netscalar.

View 3 Replies

C# - Cant Connect To Remote MS Access Database

Mar 17, 2011

I keep getting a

InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]

It is because my connection is closed. What is wrong with my connection string? Why won't it open.

[Code]....

View 2 Replies

How To Access Production Server IIS From The Remote Machine

Dec 27, 2010

We have staging server and production server for website. We will move the changes from the staging server to the Production server through the FTP.

Since we have the product release for every 3 months. So, we need to redirect to the latest version in the Production server IIS. Is it possible to access the Production server IIS and redirect the web site link from staging server ?

View 2 Replies

C# - How To Access Webservice Deployed In Remote Server

Jan 18, 2011

how to add web service which is deployed in remote server. externally i unable to access that service..in that remote server only that service will run but we don't have Ms.net Environment to add service to my application in that server. how to add that web service to my application ,not accessig externally that service URl, internally Executing that URl. How can i add that service to my application on my developer PC ?

View 2 Replies

Security :: How To Get Access To Aspnet_regiis.exe On Remote Machine

Jun 9, 2010

i have created a bat file to run the aspnet_regiis exe to encrypt the connectionStrings of web.config file on the remote machine. the same is working when i ran the file on remote machine itself. but is it not working when i call it from another bat file from my local machine which is shared with remote machine. my code loos like:

<remote_server><frmaework_path>aspnet_regiis.exe -pef "connetionStrings" <remote_server><physical_path_application>

<remote_server><frmaework_path>aspnet_regiis.exe -pa "netfrmaeworkconfigurationkey" "ASPNET"

View 2 Replies

Access Remote Computer Windows Service Using Asp

Dec 20, 2010

how to access remote computer windows service using asp.net

View 2 Replies

Configuration :: Upload Access Is Denied Only From Remote?

Aug 5, 2010

I am uploading video files, which are somewhat large (5mb - 50mb) via asyncfileupload. I am able to successfully uploaded files of all sizes up to 1.5gb, that I've tested, on my test server and also locally on the production server. It works great, locally.

However, when I process the form that is hosted on my VPS server from my home, it tanks out and I usually receive the error: Access is denied. However, it works occasionally for small files. <1.5mb

I have edited and re-edited all of the associated config files, etc...So it shouldn't be a file size issue-especially since large files are successful locally.

I've also adjusted the UploadReadAheadSize attribute as described in another forum.

I set all of the folder permission so that everyone can read write as well as IUser, IIS_WPG, IIS_Iusr, Network Service am I missing a permission field?

Does anyone know of other settings that I would have to implement in order to get this working for my users.

are there any c# tricks for slower connections?

I am working with VS2010 in a win2k8/iis7 .net4.0 environment.

View 1 Replies

Web Forms :: Access The Remote Master Page?

Nov 25, 2010

I would like to know that is there any way to access the master page which is located at the different site.

For example,

Master page url is www.something.com/master/some.master

Content page url is www.someurl2.com/page/som2.aspx

Is there any work around to access the above content page to use the master page.

View 3 Replies

Databases :: Remote Access Mysql Db Odbc?

Mar 29, 2010

I am trying to make connection to a remote database server and I am getting the following message. I think i have to grant access to the client maching from my database server.. How do i grant access to an ip addess?

ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'thelp'@'123.29.14.30' (using password: YES)
ERROR [HY000] [MySQL][ODBC 5.1 Driver]Access denied for user 'thelp'@'123.29.14.30'(using password: YES)

View 2 Replies







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