473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

it's a question abuot vs2005 default web server and the iis web server between.

question describe:

i used C# write the follow method:
--------------------------------------------------------------------------------
public static void GetMp3FileFromAudio(string ExeFilePath,string
AudioFilePath, string SaveFilePath)
{
System.Diagnostics.ProcessStartInfo ps = new
System.Diagnostics.ProcessStartInfo(ExeFilePath);
ps.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;
ps.Arguments = "-i " + AudioFilePath.Replace(@"\\", @"\") +
" " + SaveFilePath.Replace(@"\\", @"\");
System.Diagnostics.Process.Start(ps);
}
---------------------------------------------------------------
it's worked normal in the vs2005's default web server.but in the iis
environment,it's return a error: Win32Exception (0x80004005): can't
find the files.

the parameter ExeFilePath is a net-share file.and AudioFilePath is a
net share path.

can u tell me how to setup the iis to use the page normal?

thanks adv.

Jul 8 '06 #1
2 1572
Topgene,
it's worked normal in the vs2005's default web server.but in the iis
environment,it's return a error: Win32Exception (0x80004005): can't
find the files.

the parameter ExeFilePath is a net-share file.and AudioFilePath is a
net share path.
Your problem is in improper security settings and/or user accounts.

When you use IIS 6.0 to run your ASP.NET web applications, they run under a
different user account, namely the "Network Service" by default. When you
log in to the server, you are usually the Administrator. When you map a
network drive (for instance, use "net share"), you are doing so for the
Administrator account only. When IIS runs your ASP.NET app, it won't be able
to "see" that networked drive, because it was for the different user.

This is how it goes simplified, anyway. Now, you could try using a UNC paths
(\\servername\share\path\app.exe) instead of regular paths (K:\path\app.exe)
to see if that helps. However, this might not work, also because of the
security. In that case, you need to either change the user account that runs
your application pool in IIS or you need to give permissions to your file
share (and possibly, NTFS file system rights on the server) for the Network
Service user.

All in all, you need to learn a bit more about security in IIS 6.0, and the
definite place to start is obviously the documentation:

http://technet2.microsoft.com/Window....mspx?mfr=true

Also, if you have the .NET 2.0 SDK documentation (that comes with Visual
Studio 2005) installed, then this link is also useful:

ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_aspnetconfig/html/47ebf3b5-98de-4d31-a335-57e2ccd974b8.htm

Finally, this link might prove useful in your situation:

http://support.microsoft.com/default...b;en-us;842789

Hope this helps you to solve your issue.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jul 10 '06 #2
thank you very much.

Jani Järvinen [MVP] wrote:
Topgene,
it's worked normal in the vs2005's default web server.but in the iis
environment,it's return a error: Win32Exception (0x80004005): can't
find the files.

the parameter ExeFilePath is a net-share file.and AudioFilePath is a
net share path.

Your problem is in improper security settings and/or user accounts.

When you use IIS 6.0 to run your ASP.NET web applications, they run undera
different user account, namely the "Network Service" by default. When you
log in to the server, you are usually the Administrator. When you map a
network drive (for instance, use "net share"), you are doing so for the
Administrator account only. When IIS runs your ASP.NET app, it won't be able
to "see" that networked drive, because it was for the different user.

This is how it goes simplified, anyway. Now, you could try using a UNC paths
(\\servername\share\path\app.exe) instead of regular paths (K:\path\app.exe)
to see if that helps. However, this might not work, also because of the
security. In that case, you need to either change the user account that runs
your application pool in IIS or you need to give permissions to your file
share (and possibly, NTFS file system rights on the server) for the Network
Service user.

All in all, you need to learn a bit more about security in IIS 6.0, and the
definite place to start is obviously the documentation:

http://technet2.microsoft.com/Window....mspx?mfr=true

Also, if you have the .NET 2.0 SDK documentation (that comes with Visual
Studio 2005) installed, then this link is also useful:

ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_aspnetconfig/html/47ebf3b5-98de-4d31-a335-57e2ccd974b8.htm

Finally, this link might prove useful in your situation:

http://support.microsoft.com/default...b;en-us;842789

Hope this helps you to solve your issue.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jul 26 '06 #3

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

Similar topics

3
by: dennist685 | last post by:
How to add a component in vs2005 I'm stepping through an asp.net walkthrough at:...
3
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... ...
3
by: SteveCriscuoli | last post by:
I originally posted this in microsoft.public.xml ... my apologies to those to who read both groups ... Someone please tell me if I'm missing something here. The XML Comment generator in VS2005...
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
5
by: Tony | last post by:
Hi all, Here's the link to the issue we were seeing on our ASP.NET system when modifying, adding and deleting directories in framework 2.0....
4
by: AlanJSmith | last post by:
I am converting some C++ projects from 6 to vs2005 I turned off precompiled headers and common lanuage runtime support. template<int nSizeclass DBString { public: // Indicates status of...
6
by: Joe | last post by:
I've been getting this message at all different times since a few days ago. I understand the message but not why I get it. I don't have any other threads. This happens when closing dialog boxes,...
11
by: raylopez99 | last post by:
Keep in mind this is my first compiled SQL program Stored Procedure (SP), copied from a book by Frasier Visual C++.NET in Visual Studio 2005 (Chap12). So far, so theory, except for one bug...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.