473,666 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error executing winform application using zero touch deployment

Hi,

I have deployed my winform application on iis server in a virtual directory.
On the start of my application, it is reading some information from the
config file (app.config). When i am running this application by typing the
URL of the virtual directory (and name of my application), the assemblies
are getting downloaded to my machine's GAC but the application is giving
error that cannot find the configuration file.

Is there any way to bundle the config file inside the excutables itself, I
have tried all build actions (compile,conten t,embeded resource) but still
the winform applicaiton is looking for physical config file at runtime.

Thanks

- Pramod
Jul 21 '05 #1
1 1778
Hi,

IIS by default blocks download of *.config files since it need to protect
web.config files from being downloaded by the users.

Read Chris Sells articles on Smart Clients for work arounds to this issue.
[ http://msdn.microsoft.com/vcsharp/us...s/default.aspx ]

Regards,
Saurabh Nandu
[ www.AksTech.com ]
[ www.MasterCSharp.com ]

"Pramod Thewarkar" wrote:
Hi,

I have deployed my winform application on iis server in a virtual directory.
On the start of my application, it is reading some information from the
config file (app.config). When i am running this application by typing the
URL of the virtual directory (and name of my application), the assemblies
are getting downloaded to my machine's GAC but the application is giving
error that cannot find the configuration file.

Is there any way to bundle the config file inside the excutables itself, I
have tried all build actions (compile,conten t,embeded resource) but still
the winform applicaiton is looking for physical config file at runtime.

Thanks

- Pramod

Jul 21 '05 #2

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

Similar topics

2
336
by: cgia | last post by:
I found out that only using winform I can use the winword interop and generate word document in the client machine and connect to a remote database, so that I have made a winform application which accesses winword on the client and a remote db. Afterwards I wanted to use the no touch deployment but the winform cannot anymore start winword on the client, and I get a security exception. Does that mean that I cannot use no touch deployment...
0
1200
by: rmike | last post by:
Hi, I have deployed a .NET winform application using a web server. The application has some dependencies on a 3rd party assemblies. 1) If I have those assemblies dlls in a client's GAC, the client could run the application. 2) Also, if the client doesn't use the web deployment, but the XCOPY approach where the assemblies dlls are included in the same directory
3
2089
by: Matthias Heuer | last post by:
Hi, we try to deploy a quite heavyweight .NET (C#) Rich Client App (2 Tier) via IIS Server Zero Touch, but it requires about 4-6 times more Processor Time and is thus 3-4 times slower than if started locally. We have already set up Dummy Resource Files and we can see from the Web Server Log that no Web Server Access happens anymore. What is it that eats up Performance and how can we switch this off? It is especially blatant when just...
5
2701
by: NormD | last post by:
I have a windows form application distributed via no click deployment. I am thinking about adding xp theme support using an application manifest. I know the manifest is not downloaded to the client machine because of this I embedded the manifest as resource in the *.exe file, as recommended by many people. If I run the application using a url(No click) then xp style visualization isn't enabled. If i run it locally(clicking on the .exe file)...
4
1425
by: Yoni Gibbs | last post by:
Hi, Once an assembly has been downloaded into the GAC, is it possible to execute it locally somehow? e.g. if I download an exe into the GAC, can the client PC simply run this assembly directly, rather than going back to the URL that it downloaded the assembly from? Additionally, is there a way to execute local assemblies on startup? Thanks in advance,
3
1788
by: VB Programmer | last post by:
How can I launch a local winform application from a web page? (FYI: My goal is to have this winform be a "no touch deployment" application.) Thanks.
3
1374
by: Anil Kripalani | last post by:
I have a .NET Windows Forms application that I launch from a web browser. The user clicks an HTTP link from an ASP.NET page that launches a .NET exe (All .NET 1.1). The application runs fine so long as I change the IIS virtual root "Execute Permissions" to "Scripts and Executables". Under those circumstances however, when the application exits, I get the error: CGI Error The specified CGI application misbehaved by not returning a...
0
1605
by: feng | last post by:
Hi, I am having a strange problem right now and I don't even know how to go about it. Someone please help me! Any inputs will be highly appreciated. We have an application that has a VB.Net windows form front-end and a middle tier that's also in VB.Net. The two talk to each other via .Net Remoting. If we just run the windows form exe directly, then the application works just
1
279
by: Pramod Thewarkar | last post by:
Hi, I have deployed my winform application on iis server in a virtual directory. On the start of my application, it is reading some information from the config file (app.config). When i am running this application by typing the URL of the virtual directory (and name of my application), the assemblies are getting downloaded to my machine's GAC but the application is giving error that cannot find the configuration file. Is there any way...
0
8448
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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
8871
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
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
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
5666
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
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
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.