Call application .exe
-
Hello, ¿Is possible to run a visual basic .NET aplication (app.exe) from ASP.NET?. We have a web application project and have a visual basic .NET then from ASP.NET we are trying to execute an exe file, but the message are "don't found the file or access denied". We try with: shell response.redirect process Javascript document.location And href=path We test with out example from the web site and run, but we need run from the web site. (sorry for my english) Thank you! gangeles
-
Hello, ¿Is possible to run a visual basic .NET aplication (app.exe) from ASP.NET?. We have a web application project and have a visual basic .NET then from ASP.NET we are trying to execute an exe file, but the message are "don't found the file or access denied". We try with: shell response.redirect process Javascript document.location And href=path We test with out example from the web site and run, but we need run from the web site. (sorry for my english) Thank you! gangeles
Serpiente wrote:
¿Is possible to run a visual basic .NET aplication (app.exe) from ASP.NET?.
I've never tried it. However, I think the answer is yes. By default, ASP.NET is run in a restricted security context. This is so that if a web application is compromised then it will not damage the system or reveal sensitive information. In IIS there are some security settings that allow executables to be run. However, this is not recommended. Think carefully about your application design first. Is there any way to do this without running the EXE? Espero que te ayudo. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
-
Hello, ¿Is possible to run a visual basic .NET aplication (app.exe) from ASP.NET?. We have a web application project and have a visual basic .NET then from ASP.NET we are trying to execute an exe file, but the message are "don't found the file or access denied". We try with: shell response.redirect process Javascript document.location And href=path We test with out example from the web site and run, but we need run from the web site. (sorry for my english) Thank you! gangeles
if you are using sql server or oracle ; make use of db jobs that are triggered by your query, as they have all permissions they 'll work just fine.. like an insert triggered job: insert into execReq values('',''.... Mikail Çetinkaya . The C# DEveloper
-
if you are using sql server or oracle ; make use of db jobs that are triggered by your query, as they have all permissions they 'll work just fine.. like an insert triggered job: insert into execReq values('',''.... Mikail Çetinkaya . The C# DEveloper
mikailcetinkaya wrote:
if you are using sql server or oracle ; make use of db jobs that are triggered by your query, as they have all permissions they 'll work just fine..
If you have an any way competant DBA that will be locked out because it is a security risk. Last year I was doing a number of presentations to the British Computer Society and Scottish Developers that showed what kind of damage that can inflict on your server (and potentially network) if you allow this. You must be VERY careful about what external applications you allow the database server to run. On the subject of permissions the default for SQL Server used to be SYSTEM which pretty much granted access at a greater level than the Administrator - the option is no longer the default in the installation of SQL Server, but many people still choose it because they are lazy. Do NOT choose SYSTEM as the account for SQL Server to run in. You should ALWAYS create a very limited account for the SQL Server to use. I'm sorry, but your advice shows a complete lack of awareness of the security implications and as such should not be followed blindly. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
-
mikailcetinkaya wrote:
if you are using sql server or oracle ; make use of db jobs that are triggered by your query, as they have all permissions they 'll work just fine..
If you have an any way competant DBA that will be locked out because it is a security risk. Last year I was doing a number of presentations to the British Computer Society and Scottish Developers that showed what kind of damage that can inflict on your server (and potentially network) if you allow this. You must be VERY careful about what external applications you allow the database server to run. On the subject of permissions the default for SQL Server used to be SYSTEM which pretty much granted access at a greater level than the Administrator - the option is no longer the default in the installation of SQL Server, but many people still choose it because they are lazy. Do NOT choose SYSTEM as the account for SQL Server to run in. You should ALWAYS create a very limited account for the SQL Server to use. I'm sorry, but your advice shows a complete lack of awareness of the security implications and as such should not be followed blindly. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
anyway, u are right; the best would be loading that dll at runtime and run that compiled functionality of compiled code in asp.net sandbox. Or atleast prepare a security restriction that just fits. Or any other suggestion? i would like to hear from u... Mikail Çetinkaya . The C# DEveloper