473,657 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET way of handling the "Network" Token issue KB207671

I'm writing an .ashx page that needs to be able to write files to a
network share.

Example:
string fullPath = @"\\someserver\ someshare\log.t xt";
File.WriteAllTe xt(fullPath,"te st");

I seem to be running into that old Network Token issue from Classic
ASP. I had solved this in the past by writing a .COM component to
impersonate the same user as the requester but as a "real" token
instead of the network crippled token.

What is the proper way to solve this in ASP.NET ? Do something with
the current thread? Kick up a new thread with new rights? I saw the
impersonate web.config stuff but this doesn't seem to be quite what I
am looking for.

A reference to the issue
http://support.microsoft.com/kb/207671

Thanks in advance,
Kelly Greer
Ke*********@nos pam.com
replace nospam with yahoo

Nov 14 '07 #1
0 1133

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1982
by: vsk | last post by:
Hai all, How to retrieve the information about the Network Interface Card(NIC) in C++ ?. Please help me in this regard. Thanks, vsk.
1
22566
by: Dennis | last post by:
I use the below code to get the Network Places items. However, this requires "Late Binding". I read that you can avoid late binding by adding a reference to the Com Types in your application. Does anyone know what reference to add and what to import? Dim drives() As String Dim ob As Object = CreateObject("WScript.Network") Dim odrives As Object = ob.EnumNetworkDrives dim k as integer If odrives.count > 0 Then
0
1158
by: postings | last post by:
Hi Microsoft need to reopen this bug... http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f4c529ae-4879-41a0-9f24-984923f20999 Visual Studio 2005 Pro (final) has this bug. Suggested workaround works (adding an entry in the hosts file) but this is an annoyance and Microsoft needs to confirm it is developing a fix for this. It appears they keep closing the bug (twice now) when they see the workaround.
31
3547
by: damacy | last post by:
hi, there. i have a problem writing a program which can obtain ip addresses of machines running in the same local network. say, there are 4 machines present in the network; , , and and if i run my program on , it should be able to find "host names" and "ip addresses" of the other machines; , and ? i have read some threads posted on this group, however, they only work for localhost, not the entire network.
1
1145
by: cider123 | last post by:
I don't know what our Server Admins changed, or if it's something else. I'm in the Administrator group on this Server, so I don't know what else they may need. When I attempt to publish to a Remote Server on our WAN, I get prompted with a Network Login dialog. I key in the correct credentials for my account, and it simply flips right back to the Network Login dialog again.
1
15432
by: yoram.ayalon | last post by:
Hello, we have this situation. web farm, several server 2003 machines, and several win2K, SP 4 machines all machines access files on a Network appliance using CIFS I am testing a ASP.NET 2.0 project that is residing on the share. I
3
3379
by: radrain | last post by:
Unable to CreateObject("wscript.network") in IE7. This works fine in IE6 BUT this is now considered to be 'unsafe' and I cannot find any alternatives to getting the computer name and the UserDomain. Any suggestions? Richard
2
5558
by: moodyman13 | last post by:
Hi all, Hoping someone can help me. I'm using WSH to automatically map a network drive when someone opens a webpage. Below are the codes <HTML> <Body> <script language="VBScript" type="text/vbscript"> Option Explicit On Error Resume Next
3
1502
by: Evan | last post by:
Hello, one of my PC is window system, and in "control panel -Network Connections", I can see some network connections such as PPPOE or VPN which I created by click "create a new connection". My question is, is it possible to create a new connection by using Python script? which means I do not want to use Window UI (via "control panel"), if it is possible, I can save so many time to create various network connection when I want to do...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.