Showing posts with label machine. Show all posts
Showing posts with label machine. Show all posts

Thursday, March 29, 2012

OFFLINE with Online Conectivity (IMP)

hi

i have a website like

www.mysite.com

which is on USA machine both webhosting and database when i open my site huge reports open fastly because both are on same machine.

But on other side when i have offline asp.net pages with 1.1 and connecting with Online USA server like (64.6.5.121 etc) then the speed is v slow because database on other machine and pages on my machine.

what is solution for improvement????

i have also fast DSL...

Please??????

Hi,

Put your database server on the same ASP.NET is the best idea!

If you must run your db in different location, you can caching your database connections or usingConnection Pooling
and you can even cache your data from db like this:

http://www.2enetworx.com/dev/articles/caching6.asp

There is other tips that you can try, check the Network Bandwith and Database issue section of

http://www.15seconds.com/issue/000106.htm

for more details!

hope it helps!

Monday, March 26, 2012

Okay to mix applications (VS2005 Pro and VWD 2005)

I am use VS2005 Pro on my machine because I do a lot of websites involving SQL databases.

Our department is looking to upgrade our internal website (no databases or anything too fancy).

I am considering installing VWD2005 on their machines because they want to manage their own pages on the new internal site (right now they use Dreamweaver which is not working well with asp.net 2.0 pages).

Will it cause problems if I am using VS2005 Pro while they use VWD 2005 to manage the same website?

Thanks.

Hi climber9,

I go between "real" VS and VWD frequently, you shouldn't have any issues providing you watch out for a couple of things.

You'll have to stick to "Web site" projects as VWD doesn't support the web application project model.

You also can't give it anything more than a website, so if you're organized and have for example a data layer project in the same solution you'll have to separate them out (you should be able to open that datalayer projet in vb/vc express though).

The "web site" model in its own right is pretty portable. I typically use source control, but I've never had an issue when I've had to manually copy a site between the two apps.

The one thing I wasn't clear on was if you wanted to work on the site simultaneously. I've never tried it, and I'd generally recommend against it on purely elitist grounds ;) but as it's all file based you could potentially make that work off a file share (you may need to change permissions/add trusted locations/something if you're not on the same domain). A quick search didn't turn up a definitive yes/no so you'll probably have to try it to know for sure, and do so with a test site incase it eats whatever you're working on. ;)

I hope that helps.


Imco,

Thanks for the great response. We shouldn't have any problem with concurrency since each person in the dept has their own functional areas and thus shouldn't be stepping on others files. It's a small, relatively static set of files, too, so that should also minimize possibilities of undoing someone else's work.

Question about VWD vs VS. In VS, there is the "Copy Website" feature that allows for easily copying a website from one server to another (I use it with mapped network drives from my dev server to my prod server). Can VWD do this as well?

Thanks!


climber9:

I am use VS2005 Pro on my machine because I do a lot of websites involving SQL databases.

Our department is looking to upgrade our internal website (no databases or anything too fancy).

I am considering installing VWD2005 on their machines because they want to manage their own pages on the new internal site (right now they use Dreamweaver which is not working well with asp.net 2.0 pages).

Will it cause problems if I am using VS2005 Pro while they use VWD 2005 to manage the same website?

Thanks.

If your current website doesnt use any database etc stuff and its designed in html then perhaps an upgrade of the site should consider upgrading its UI through standard html (i.e. 4.01 or xhtml) and use CSS etc with perhaps javascript, not asp.net 2.0 because Asp.net 2.0 would be an overhead for that and would increase loadtimes, performace etc if not managed properly.

For the purpose of above, I think dreamweaver is a fantastic tool as it produces standards code that Validates to W3C standards compared to VS2005 or VWD which do not.

For the matter of the question, it wont create a conflict, (other then the conflict of interest, because all users will like to have powerful tool set).


Hi climber9,

climber9:

Question about VWD vs VS. In VS, there is the "Copy Website" feature that allows for easily copying a website from one server to another (I use it with mapped network drives from my dev server to my prod server). Can VWD do this as well?

Yep, VWD has the "Copy Website" functionality. However it does not have the "publish website" option. Having access to VS Pro that's probably not an issue for you. Personally, I prefer the copy method anyways (I like having source I can edit w/notepad when necessary) but sometimes having the site precompiled is a good thing. ;)

I hope that helps.

Saturday, March 24, 2012

Old Dos Program from asp.net website

I have a requirement to execute a legacy DOS program from within an
ASP.NET Website. I have it working in my sandbox machine but when I
put it live and select the option via asp:button the site simply
refreshes and no new window with said DOS application appears. The
application is present in the task list on the server. The
environement is windows 2003 with IIS 6.0. I have checked the 'Allow
serviec to interact with desktop' check box in the IIS Admin services
and have modified the machine.config process model tag to
<processModel userName="SYSTEM" password="AutoGenerate" /as per the
msdn article 'Unable to Start a Process from ASP.NET' (not sure that
is exactly what I should put). I have tried to modify the IIS_WPG
group to allow system privileges and even assigned it adminstrator
rights for a bit to see if that did anything. I have also played
around with the ASPNET account in IIS and gave in admin privileges to
see if that does anything. I added the process code that starts the
app below but since I see it in the task list I assume that is good.
I can't think of anything else I can do any help would be appreciated.

System.Diagnostics.Process cmd = new System.Diagnostics.Process();
cmd.StartInfo.FileName = "cmd.exe";
cmd.StartInfo.RedirectStandardInput = true;
cmd.StartInfo.RedirectStandardOutput = true;
cmd.StartInfo.CreateNoWindow = true;
cmd.StartInfo.UseShellExecute = false;
bool started = cmd.Start();
if (started)
{
Button btn = (Button)sender;
string arg1 = btn.CommandArgument.ToString();
cmd.StandardInput.WriteLine(@dotnet.itags.org."D:\wincmd\TotalCmd.exe",
arg1);
cmd.StandardInput.Flush();
cmd.StandardInput.Close();
}"wmotter" <wmotter@.prolist.comwrote in message
news:1189698723.321670.180540@.g4g2000hsf.googlegro ups.com...

Quote:

Originally Posted by

I have a requirement to execute a legacy DOS program from within an
ASP.NET Website. I have it working in my sandbox machine


What are you actually expecting to happen here...?

Presumably, your sandbox machine is the one at which you're sitting while
you're developing...?

Quote:

Originally Posted by

System.Diagnostics.Process cmd = new System.Diagnostics.Process();


Which will try to run on the webserver, not a client machine...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net
On Sep 13, 12:11 pm, "Mark Rae [MVP]" <m...@.markNOSPAMrae.netwrote:

Quote:

Originally Posted by

"wmotter" <wmot...@.prolist.comwrote in message
>
news:1189698723.321670.180540@.g4g2000hsf.googlegro ups.com...
>

Quote:

Originally Posted by

I have a requirement to execute a legacy DOS program from within an
ASP.NET Website. I have it working in my sandbox machine


>
What are you actually expecting to happen here...?
>
Presumably, your sandbox machine is the one at which you're sitting while
you're developing...?
>

Quote:

Originally Posted by

System.Diagnostics.Process cmd = new System.Diagnostics.Process();


>
Which will try to run on the webserver, not a client machine...
>
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net


Thanks for the response. I am running my website local (localhost on
the 'sandbox' machine) using IIS 5.0 and what happens is a second
window pops with the dos application executing when I select a button
on the asp.net website. You have raised an issue I am unsure about
and that is running a DOS app from an asp.net web site. Can I execute
a dos app on the web server from an asp.net website so that an
individual can view/use it from their client machine. I would think
there might be something inherently prohibited about this from a
security standpoint but maybe that is why I need to jump through all
of these permission hoops. BTW, I log on as sys admin to the web
server that is running the live site in question and try to execute
this scenario to no avail. This server is an internal server not
accessible outside of the office.
"wmotter" <wmotter@.prolist.comwrote in message
news:1189703475.238000.23400@.w3g2000hsg.googlegrou ps.com...

Quote:

Originally Posted by

Thanks for the response. I am running my website local (localhost on
the 'sandbox' machine)


That's what I thought...

Quote:

Originally Posted by

Can I execute a dos app on the web server from an asp.net website...


Yes.

...so that an individual can view/use it from their client machine.

No.

Quote:

Originally Posted by

I would think there might be something inherently prohibited about this
from a security standpoint but maybe that is why I need to jump through
all
of these permission hoops.


It's nothing to do with security - it's simply that ASP.NET is running on
the server, and that's where any processes which ASP.NET initiates will
run...

Quote:

Originally Posted by

BTW, I log on as sys admin to the web server that is running the live site
in
question and try to execute this scenario to no avail.


That won't make any difference.

Quote:

Originally Posted by

This server is an internal server not accessible outside of the office.


Irrelevant...

What does this DOS app do? Why does someone need to watch it run...?

--
Mark Rae
ASP.NET MVP
http://www.markrae.net
re:
!...so that an individual can view/use it from their client machine.

!No.

The standard output (stdout) could be captured and displayed, couldn't it ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Mark Rae [MVP]" <mark@.markNOSPAMrae.netwrote in message news:%23vGF%23qi9HHA.5424@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

"wmotter" <wmotter@.prolist.comwrote in message news:1189703475.238000.23400@.w3g2000hsg.googlegrou ps.com...
>

Quote:

Originally Posted by

>Thanks for the response. I am running my website local (localhost on
>the 'sandbox' machine)


>
That's what I thought...
>

Quote:

Originally Posted by

>Can I execute a dos app on the web server from an asp.net website...


>
Yes.
>
...so that an individual can view/use it from their client machine.
>
No.
>

Quote:

Originally Posted by

>I would think there might be something inherently prohibited about this
>from a security standpoint but maybe that is why I need to jump through all
>of these permission hoops.


>
It's nothing to do with security - it's simply that ASP.NET is running on the server, and that's where any processes
which ASP.NET initiates will run...
>

Quote:

Originally Posted by

>BTW, I log on as sys admin to the web server that is running the live site in
>question and try to execute this scenario to no avail.


>
That won't make any difference.
>

Quote:

Originally Posted by

>This server is an internal server not accessible outside of the office.


>
Irrelevant...
>
What does this DOS app do? Why does someone need to watch it run...?
>
>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


"Juan T. Llibre" <nomailreplies@.nowhere.comwrote in message
news:u9Nuiyi9HHA.1416@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

re:
!...so that an individual can view/use it from their client machine.
>
!No.
>
The standard output (stdout) could be captured and displayed, couldn't it
?


Oh sure, but I got the impression that the OP needs to have user interaction
with the DOS app...

Obviously if that's not the case, then this will present no problem at
all...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net
re:
!Oh sure, but I got the impression that the OP
!needs to have user interaction with the DOS app...

That won't happen, as you well know...

;-)

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Mark Rae [MVP]" <mark@.markNOSPAMrae.netwrote in message news:%23Duqm8i9HHA.5316@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

"Juan T. Llibre" <nomailreplies@.nowhere.comwrote in message news:u9Nuiyi9HHA.1416@.TK2MSFTNGP03.phx.gbl...
>

Quote:

Originally Posted by

>re:
>!...so that an individual can view/use it from their client machine.
>>
>!No.
>>
>The standard output (stdout) could be captured and displayed, couldn't it ?


>
Oh sure, but I got the impression that the OP needs to have user interaction with the DOS app...
>
Obviously if that's not the case, then this will present no problem at all...
>
>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


"wmotter" <wmotter@.prolist.comwrote in message
news:1189706106.858456.44480@.50g2000hsm.googlegrou ps.com...

Quote:

Originally Posted by

The DOS app needs to be local on each machine that is going to use it
(not a problem since it is an interanl app).


Ah...

Quote:

Originally Posted by

But the question remains can a web app start a local copy of a DOS app
with .net?


Absolutely not natively, for fairly obvious security reasons - "format c:"
is a useful utility, but you wouldn't want a website to be able to execute
it on client machines... :-)

Your only hope with this is to write an ActiveX control (or Java applet if
you're not using IE) which will kick the DOS app off, but you'll need to
ramp down your browser security for this...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net
"Mark Rae [MVP]" <mark@.markNOSPAMrae.netwrote in message
news:eoThiFj9HHA.1204@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

Your only hope with this is to write an ActiveX control (or Java applet if
you're not using IE) which will kick the DOS app off, but you'll need to
ramp down your browser security for this...


Or you might be able to use the WSH (Windows Scripting Host) Shell object to
launch it:
http://www.pcsupportadvisor.com/Win..._host_page2.htm
--
Mark Rae
ASP.NET MVP
http://www.markrae.net