What Is The Accurate Method To Use Aspnet_regiis.exe When Ready To Start App In The IIS
Dec 21, 2010
Ok what i want to know is what is the accurate method to use aspnet_regiis.exe when you are ready to start you app in the IIS.
What i have done but only tested locally is use this suntax:
aspnet_regiis -pef "connectionStrings" "d:aspdirmysite"
As i see lot of switches in aspnet_regiis (p.e. i have seen something like:
aspnet_regiis -pe "connectionStrings" -app "/SampleApplication"), i'm not sure what is the accurate one or if they deliver the same result.
The -pef i presume is when your app is on your hard drive.Will it play when on the IIS? Anyway what is the common way to encrypt.
View 6 Replies
Similar Messages:
Aug 6, 2010
My web services have base web service method called IsGood()I want to make sure every methods in my web service call IsGood() in base web service automatically without add code in each web service method, can I do that?
View 2 Replies
Oct 28, 2010
What is the right approach when users (authenticated domain admins) should be able to start batch jobs (usually exe files) from an IIS (7.x) aspx (c#) page? This is an intranet site. The batch jobs have to run on the web server as Domain Admins. The website pool is executed by network service or some similar restricted account in AD.
Approaches I can think of (and their disadvantages):
1. Start exe file with System.Diagnostics.Process.Start with another account. This feature is disabled in IIS 7.x, how do I allow it?
2. Create a sheduled task and call scheduled task-api. This unmanaged dll is giving VS compiler warnings because it's unsafe to call from managed code.
3. I suppose there's a better approach, because the previous suggestions doesn't appear safe or robust.
View 2 Replies
Mar 29, 2011
In my project i am having the VB Script file openHTML.vbs which is used to open the .HTML file in the server location.
If i run the following code in VS2005 it's working fine but if i use the same code to publish and work in the server machine it's not working.
[Code]....
[Code]....
View 11 Replies
Aug 2, 2010
i install iis in windows7home premium .after that i will select vs.net2008 command promtin that i typed aspnet_regiis -i.It will giving error like ASP.Net Setup Custom actions has stopped working ..please give reply for my problem..
View 2 Replies
Dec 3, 2010
I am trying to encrypt a section of a web.config file in the root of a virtual server. The server is not the 'default server' in IIS, so aspnet_regiis -pe "appSettings" -app "/" doesn't work as it defaults to the default web site. Also, the source code is access through a UNC path and is load balanced across multiple servers (web farm environment). aspnet_regiis -pef "appSettings" "\UNCpath" fails, stating "The configuration for physical path '\UNCpath' cannot be opened. The user account that I'm running the utility as, has rights to the path. I found one post (from very early .NET 2.0 days) that indicated that you could use
aspnet_regiis -pe "connectionStrings" -app "w3svc/72/root/" -prov "CustomProvider".
But this syntax returns an error stating that "The value used in the -app parameter must begin with a forward slash." Can anyone tell me what the correct syntax would be in a case like this?
View 2 Replies
Sep 23, 2010
If I encrypt something in my config file using aspnet_regiis.exe -pef "appsettings" "path" which i think will use my logged in id's credentials. If i deploy this application on some other machine where some other user id is used to login. Will there be any issues or .......?
View 1 Replies
Jun 9, 2010
i have created a bat file to run the aspnet_regiis exe to encrypt the connectionStrings of web.config file on the remote machine. the same is working when i ran the file on remote machine itself. but is it not working when i call it from another bat file from my local machine which is shared with remote machine. my code loos like:
<remote_server><frmaework_path>aspnet_regiis.exe -pef "connetionStrings" <remote_server><physical_path_application>
<remote_server><frmaework_path>aspnet_regiis.exe -pa "netfrmaeworkconfigurationkey" "ASPNET"
View 2 Replies
Jul 22, 2010
I would like to encrypt the connectionstrings section in my web.config file using the : ASPNET_REGIIS utility However I'm running Windows 7 pro, that is without any IIS.
Is it possible for me to do it.
The path (on my local pc) to the website containing the web.config file is like this:
C:UsersmyUserDocumentsVisual Studio 2010ProjectsmyWebsitemyWebsiteWeb.config
View 3 Replies
Jan 15, 2010
Some people qualify their class variables with "this" when there is a potential resolution problem, which makes sense. But today I am looking at code that looks like well done code, and it has a "this" on the front of almost every line of code in the class. Since the code is complex and appears otherwise well done, I am wondering what is the purpose of this? Why have the private method calls start with "this" for example?
View 5 Replies
Jan 26, 2011
I am trying to register the route collection in .net based on each session. The code I have works fine, you goto website/username and it loads the correct sub pages, but you have to restart the application to goto website/username2 to load those sub pages. But when the application is restarted the second one works, but then not the first one. Is there some way to create a different route collection per session not per application using system.web.routing.
View 3 Replies
Jan 29, 2010
Is there any risk associated by using asp.net mvc 2 on production or stick to the asp.net mvc 1.
View 4 Replies
Sep 16, 2010
I am trying to create a page where I can attach sticky notes at runtime exactly as explained in this tutorial.
I have converted the sample in ASP.NET MVC 2 (which is the technology I am using) and everything works fine.
So I have a DIV in my view
[code]....
Of course I could change my view to create dinamically the notes div on DOM ready but before going to change all the code I was wondering if i can have some code to make them respect the positions they have meant to be to.
View 1 Replies
Feb 9, 2011
I just spent the last week and a half working on a gridview for a user and now he says he wants it so that all the records are updatable! He doesn't want to click on the Edit button, he just wants everything open for update. Is this possible? Or would anther control do it?
View 3 Replies
Jun 29, 2010
I made a simple network tool using Visual Studio 2010 Express, ASP.NET C#.
When I finished, I deployed it to a Local IIS 5.1 Server. I'm running XP(BTW).
The situation right now is that every time I add/change something to suit my needs, it changes it directly on the server - which is obviously unwanted. I want to understand why this is and how to change it. I don't want every test I do to be implemented directly on save.
ps.
On Project->Properties, Web tab. I verified that under the "Servers" option, "Visual Studio Development Server" in checked and not "Local IIS Web Server"
View 4 Replies
Mar 15, 2011
a have two aspx pages page1.aspx and page2.aspx. i have an href in page1.aspx <a id="GoHref" href="page2.aspx"> i want that when users click docHref to be redirected to page2.aspx and download a doc file via an automatic click on <a id="DocHref" runat="server">
page2.load is as below:
[code]......
But it doesn't work !
is this a good way to download a doc file ? Or there a better server side way?
View 2 Replies
Jul 14, 2010
I have this below alert set on Document.Ready function. But this alert is not seen when I user Firefox. the alert is seen in IE7
$(document).ready(function() {//hide err messages
alert('you are here');
});
View 3 Replies
Jan 26, 2011
I want to use jQuery in my ASP.NET 3.5 website that uses master pages and content pages. How do I do document ready() functions for the child pages for those that will use jQuery ? Where do I put the code?I figured the jQuery declarations should go in the master page, but don't know how to make sure any jQuery calls go into the HEAD of the resolved page.
View 3 Replies
Jan 20, 2011
Previously, I've only used Microsoft-centric solutions, but for an upcoming ASP.Net project I'm considering using Mono and hosting it on a Linux Amazon EC2 instance. Based on the responses to my previous question, this sounds doable. However, I'm most comfortable with VB.Net and I'm wondering how well Mono supports it.
Does anyone have first-hand experience writing ASP.Net applications for Mono using VB.Net? If so, I'd like to know how it went, what kind of compatibility issues you ran into, and if you consider Mono's VB.Net support ready for use on a production site? I know Mono's C#.Net support is very good, so that's my fall-back plan, but I'd really prefer to use VB.Net.
View 4 Replies
Mar 25, 2011
I have written a code to write some information to text file and save this file on disk. However i have harcoded the path on which to save the file. I am getting System.IO.IOException: The device is not ready. error Is it because of that hardcoded the path. How to get path to folder on server?? On my local machine I am giving path "D:/telephone_management/AMS/files/" and within files folder i m saving my text files On server machine, the drvive is E, so path is wrong. Is there any way I can dynamically get path to my files folder on server ??
View 1 Replies
May 19, 2010
i want to know what is the steps to do when distrubuting an web application for web Hosting.
View 3 Replies
Jun 8, 2010
I would like to start a System.Threading.Timer in my application when it launches (maybe deploy is the correct word). I have seen that you can use Application_Start() but this is only fired once the first request comes to the application. I need the timer to start as soon as the application is running so that it can check for work to process even if a user is not interacting with the site. How can I get the application to start the timer once it is up and running?
View 4 Replies
Jan 17, 2011
Is it mandatory to write $(document).ready(function () {... }) every time ?
Can't we do it without this line?
View 6 Replies
Apr 22, 2010
The problem is to render huge reports. Basically we have lots of data that get rendered in html reports (mostly using repeater or gridview). As it so happens, the data started out small and now we have tons of it. There are lots of such reports already built so total rewrite is not an option. Heck, the business is not even letting us page the data. Now server memory is shooting up each time we try to render some reports. So the question is - is there some way we can bind data to repeater and have it stream html to browser as and when chunks are ready? That way we hope to not bring all that data into app server at once. I'm thinking we'll use a datareader or something to get parts of data and render it to browser.
View 3 Replies
Nov 1, 2010
I got a $(document).ready() handler in my aspx page that fires twice. I trapped it to the follwing line of html (this line is part of the itemtemplate of a listview):
<img src='Images.ashx?Url=<%# Eval("Url")%>&Type=3' alt=''></img>
Seems that using the images.ashx is causing my problem, putting a 'normal' url as src gives me no problems.
It must be because the handler is called, but why is loading an image giving a second fire on $(document).ready()
It is only in IE8. Chrome, FF and safari work as expected.
View 1 Replies