[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Writing Textfile From One Server To Another Server

Posted on 2010-03-30
7
Medium Priority
?
331 Views
Last Modified: 2013-11-26
Hello programmers.  I have the following vb.net script attempting to create a textfile from one server to another.  When I run it from my vb.net development version of the project on my local computer (Host) logged into windows xp it works.  However, when I attempt to run it from my intranet server I get the following error message.  Can someone help me with where this error might be resolved.  Here is what i did to try and resolve the problem:
1. I created on the intranet server a short cut to the folder on the external server and made sure the permissions for all users local windows logins were set.

2. I tried mapping the external server/folder directly onto the intranet server

3. On my local computer(host) I am mapped to the server/drive, maybe that's why it works in my vb.net development version.

3. Is there some sort of login script (il.e. administrative, etc.) that needs to be added to the output file script below?

'Dim outputfile As New System.IO.StreamWriter("\\fman\Vo\Acct\BT_2k\blinetxtapp_2k\Blin1.txt")

ERROR:
Server Error in '/ilfonet' Application.
--------------------------------------------------------------------------------

Logon failure: unknown user name or bad password.

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.IO.IOException: Logon failure: unknown user name or bad password.


Thank you,

ic
0
Comment
Question by:ilfocorp
  • 4
  • 3
7 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 29219417
From the description, it looks like it is ASP.NET right? What authentication are you using? Looks like the anonymous user is trying to access the other server. Try using windows authentication or give anonymous user access to the shared folder.
0
 

Author Comment

by:ilfocorp
ID: 29248577
You're correct, it is ASP.NET and VB scripting.  How do I use windows authentication in a web form such as this.  is it part of the vb script?  Thanks.

ic
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 375 total points
ID: 29317068
Here is how to use Windows Authentication in ASP.NET

http://msdn.microsoft.com/en-us/library/ms998358.aspx
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Author Comment

by:ilfocorp
ID: 32350008
Is asp.net a user? can I add it as a permission onto the folder on the other server I'm trying to save the file to?  Thanks.

ic
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 32352957
Yes. There is a user for ASP.NET. You can try giving the permission but i am not sure if it would work.
0
 

Author Comment

by:ilfocorp
ID: 32785601
ok i will look into this.
0
 

Author Closing Comment

by:ilfocorp
ID: 33300503
Some of the answer was correct.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Suggested Courses
Course of the Month7 days, 13 hours left to enroll

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question