Connecting Tech Pros Worldwide Forums | Help | Site Map

.Net C# Enabling a Windows App to run as Web App

Newbie
 
Join Date: Jan 2008
Posts: 18
#1: Jul 3 '08
Hi there, i have created a windows application and urgently need this application to run as a web app, ie: so that users may click on a link and download this application to their machines.I have tried the Build >Publish method but i keep getting an error when loading the app after downloading from the link...can anybody please assist me??
I am using Visual Studio 2005 Version 8
Thank you....

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Jul 3 '08

re: .Net C# Enabling a Windows App to run as Web App


That's not "running as a webapp". That's putting your file online and allowing people to download it.
Just upload it to a server and have people download it then?
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#3: Jul 3 '08

re: .Net C# Enabling a Windows App to run as Web App


What's the error? The publish command is likely the best method for you to do what you are asking. Post your error text. Make sure that any resources that you need are installed on the user's computer. For example, a recent project I did included Adobe Reader's COM object. But when I published it, even though it came with the DLL, it crashed. Turns out I needed Reader already installed on the machine. Make sure that you don't have a similar situation.
Newbie
 
Join Date: Jan 2008
Posts: 18
#4: Jul 3 '08

re: .Net C# Enabling a Windows App to run as Web App


Quote:

Originally Posted by Plater

That's not "running as a webapp". That's putting your file online and allowing people to download it.
Just upload it to a server and have people download it then?

Yes i agree. But according to the proj spec, i need to give the user's a link, whereby they can download the application. These users have no permissions to servers and cannot access the app using that way.
Thanks...Will continue to research.
Newbie
 
Join Date: Jan 2008
Posts: 18
#5: Jul 3 '08

re: .Net C# Enabling a Windows App to run as Web App


Quote:

Originally Posted by insertAlias

What's the error? The publish command is likely the best method for you to do what you are asking. Post your error text. Make sure that any resources that you need are installed on the user's computer. For example, a recent project I did included Adobe Reader's COM object. But when I published it, even though it came with the DLL, it crashed. Turns out I needed Reader already installed on the machine. Make sure that you don't have a similar situation.

Ok Insert...heres the problem....i have tried the npublish wizard again and again...these are the errors i am receiving...

Warning 2 Files could not be downloaded from http://mtc-dev04/ITPCReader/. The remote server returned an error: (404) Not Found. 1 1 prjITPcReader

The other Error is :

Warning 3 Unable to view published application at http://mtc-dev04/ITPCReader/publish.htm. 1 1 prjITPcReader

Now there seems to be a problem with the Dll's created....i think it has to do with the naming of the files..
If i can sort that out, im sure it would work as i need i to.....

Whats your view on this??

Please note, this is my first time as a c# developer, and i have not worked with it before.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#6: Jul 3 '08

re: .Net C# Enabling a Windows App to run as Web App


If the users have no access to the servers to download the file...
How are they going to click a link and download it?
Member
 
Join Date: Apr 2007
Posts: 75
#7: Jul 3 '08

re: .Net C# Enabling a Windows App to run as Web App


Quote:

Originally Posted by Ice Vato

Yes i agree. But according to the proj spec, i need to give the user's a link, whereby they can download the application. These users have no permissions to servers and cannot access the app using that way.
Thanks...Will continue to research.

If the clients have no access to the server web service then how are you expecting them to download files?


Edit 1: OOps didnt see Platers comment before me.
Newbie
 
Join Date: Jan 2008
Posts: 18
#8: Jul 4 '08

re: .Net C# Enabling a Windows App to run as Web App


Quote:

Originally Posted by Plater

If the users have no access to the servers to download the file...
How are they going to click a link and download it?

Ok..they have no permissions to be more specific, however they will only beable to acces the link, as far as i know.
I was just assigned the task, and i am not sure whats they are allowed to see from where there are, given it is a casino environment....
Reply