C# - How To Use Microsoft.Web.Administration.dll To Get The Site Information
Jun 11, 2010
I have a half dozen sites on my server and I would like to get some info from IIS7 to display in the footer of each page (as long as you are an admin of course). I am going through the ServerObject and found Sites but am not finding anything obvious for "this site". What should I do to get at the information for the exact site in IIS7 that the page is running on?
For a quick 'hack' style approach I wrote this on my default.aspx page code behind:
[code]....
View 1 Replies
Similar Messages:
Feb 9, 2011
I created a database in my local sql server, and ran aspnet_regsql.exe on it, which created all the user and membership tables. However, when I click on the "Asp.Net Configuration" button in VS (2010), it open the Asp.Net Web Site Administration Tool, but with an error that say "An error was encountered. Please return to the previous page and try again." (of course there's no "previous page". What is one to do here?
My solution consist of several class libraries (domain, contracts, services, etc, etc) and a Asp.net MVC project. In my web (mvc) project's web.config, my connectionstrings looks as follows (just guessing this matters):
Code:
<connectionStrings>
<add name="ApplicationServices"
connectionString="Data Source=LAP00281;Initial Catalog=ClientManager;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="ClientManagerEntities" connectionString="metadata=res://*/ClientManagerDB.csdl|res://*/ClientManagerDB.ssdl|res://*/ClientManagerDB.msl;provider=System.Data.SqlClient;provider connection string="Data Source=LAP00281;Initial Catalog=ClientManager;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
(only reason i want to use this is actually to create two roles, admin and client)
View 11 Replies
Jun 23, 2010
I got an error when trying to configure roles:
The following message may help in diagnosing the problem: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.
The schema is there and i configure web.config for using roles.
Web.config
[Code]....
Can this corce by insufficient permission?
View 7 Replies
Dec 8, 2010
i am trynig to connect to sql server 2005 express with Web Site Administration Tool in visual studio 2008 but i got this error in security tab: There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
i have already checked following links and done all hint but nothing [URL] i have MSSQLSERVER running but i can not run SQLEXPRESS
View 8 Replies
Aug 10, 2010
login control portion of Murach's web dev w/ c# book. According to the books instructions, you create a Login.aspx page, add the login control to the page, and create the users and roles for the directories within the asp.net web site configuration tool. I still do not get prompted for user name and passord to access the pages I want to be secured. Why is this? Isn't the asp.net configuration tool supposed to edit the web.config file? I'm trying to follow the book to the letter and ensure that I am following correctly before posting for answers online. According to the book you do not have to edit anything or write code withing login.aspx page.
View 3 Replies
Feb 19, 2010
I get the following error while running ASP.Net Web site administration tool: ASP.Net Web site administration tool I am using visual web developer 2008 express edition and windows XP pro version 2002 service pack 3. I am following Microsoft Visual web developer 2008 express edition by Eric Griffin and in chapter 4 I need to use the administrator tool to set up passwords.
View 1 Replies
Aug 5, 2010
I have just installed Visual Studio 2010 trial. Previously I have been using Visual Studio Web Developer 2010 Express. Now every time I try to invoke the ASP.net Cofiguration tool either via the icon or through the Project File Menu item, I get the error message "An error was encountered. Please return to the previous page and try again." I am trying to develop a bog standard Silverlight Business Application. There are no other diagnostics. Is there anywhere I can look for more clues or anything else to do to alleviate the problem? or is this something peculiar to the trial version I am using?
I also think it might have something to do with the fact that I have created this Silverlight Business App on a directory on my D: drive and not the normal, default c: drive path and maybe the web sit admin tool is looking somewhere else. Could this have something to do with it? If so what is my remedy?
View 6 Replies
May 13, 2010
I get the following message while trying to access the Security tab in ASP.NET Web Site Administration:A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)I have configured my own data store following this guide. Which essentially tells you to run aspnet_regsql.exe to set up a data store in order to keep authentication data for a SharePoint site (which is what I want to do).This is what I've written in the web.config at the end of the tag <system.web> for the Visual Studio 2008 project initiated to deal with the Web Site Administration:
<membership defaultProvider="AcAspNetSqlMembershipProvider">
<providers>
<add name="AcAspNetSqlMembershipProvider"
[code]...
View 6 Replies
Dec 12, 2010
i have been trynig to have "ASP.Net Web Site Administration Tool" save all user information in my database , is that doable?
if yes, how i can have all those asp_tables in mine?
View 6 Replies
Feb 10, 2011
Created an solution containing several class libraries (domain, contracts, etc, etc) and an Asp.Net MVC3 project. Created a database in my local sql server (2008) and ran aspnet_regsql.exe to create the relevant membership and authentication tables. (Though I did not create any code yet that uses it, and plan to just implement the standard forms and membership authentication.) However, when I click on the "Asp.Net Configuration" button in VS (2010), it open the Asp.Net Web Site Administration Tool, but with an error that say "An error was encountered. return to the previous page and try again." (of course there's no "previous page). Only reason i want to use this is actually to create two roles, admin and client. Guess my problem is not knowing where this tool get it's connectionstring from. At present, I got the following in my web.config
[Code.....]
View 4 Replies
Feb 8, 2011
Is anyone able to see Web Site --> ASP.NET Configuration if you are creating a web application using File --> New Project --> Visual C# --> Web. If so, how and where?
Base on what I've tried, the menu Web Site --> ASP.Net Configuration appears only if you create a website by File --> New Website.
What I am actually trying to find is the Web Site Administration Tool (WSAT).
View 5 Replies
May 14, 2010
I am using sqlserver express 2008 (Microsoft Web Platform Installer) and visual studio 10 professionnel.
I am also using last Silverlight4_Tools.exe.
When i enter in Web Site Administration Tool / security I obtain this error
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may in diagnosing the problem:
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
When I try userprovider
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
View 1 Replies
Jul 6, 2010
I recently installed VWDE 2010 and SQLE 2008 R2 and have built a basic site, but when I try to launch the Web Site Administration Tool, it fails to come up in a browser window. The server starts and I can right click on that and choose "Open in Web Browser", but when I do that an error message immediately shows up saying, an error was encountered. Please return to the previous page and try again with no other information given. When I click on "How do I Use this Tool?" in the top-right corner of the window, it immediately says the following:
Tool Has Timed Out
As a security measure, the Web Site Administration Tool times out after a period of inactivity. Changes to machine.config or web.config may also result in the tool needing to be restarted. To continue configuring your web site, restart the tool. The same message immediately comes up no matter what tab I click on. I have searched the internet and have made sure that the path doesn't have any spaces or non-alphabetic characters, run aspnet_regsql, restarted the IDE as well as the computer, but nothing works.
View 5 Replies
Jul 22, 2010
I Have a problem here with Visual Web devoloper 2010 , When I click the "Asp.net Configuration" , the browser doesn't open the Web Site Administration Tool but the icon does appear in the notification area , on right clicking the icon it opens up the Web Site Administration Tool in the browser and displays "An error was encountered. Please return to the previous page and try again."
On the other hand I don't have any issues using "Asp.net Configuration" with Visual Web Devoloper 2008
View 5 Replies
Jan 5, 2010
Does anyone know how to get to work the authentication mechanism configured using Web Site Administration Tool under Linux running Mono? Is it even possible?
View 3 Replies
Oct 28, 2010
So I have an ASP.net application, with an ActiveX Control which brings up a pop up
When I point to the application directly through IP there is no problem with the pop up eg. xxx.xxx.xxx.xxx/MyApp (under Default Website in the IIS -- IIS 7) Problem arises when I set up the IIS to point it to a domain [URL] which points to the above IP (under another "Site" i.e. not the "Default Site in IIS 7)
I then get this weird
Microsoft .net Security Warning Never enter personal information or passwords into a window unless you can verify and trust the source of the request.
Source: [URL]
The site is in the trusted list -- just like when I was using the IP only . Is there any setting in the IIS I need to tweak for IE to trust me fully.
View 2 Replies
Jul 23, 2010
I am trying to create an admin screen that will give me details about all open sessions in an application/site. I would also like to know how many session objects are active for each of them
Session object gives me info about my current session. How do i find info about all open sessions. How many sessions are active, etc.
View 1 Replies
Mar 9, 2010
I've been asked to create a page which will provide identical information from another page. The key thing is, from my understanding, that it is not data driven it's from a txt file wich is updated. This info will need to be reflected on the page I'm going to create. how to "pull" or get the information w/o the help of database?
View 13 Replies
Sep 2, 2010
I'm attempting to use the DotNetCart ecommerce module in a solution we are building. The problem i'm having is that i'm finding that the included .chm documentation is quite lacking. I've brought this up with their support dept and received no help there. My question is, is there a site or forum that is a good source of information on how to use different aspects of their API?
View 2 Replies
Mar 27, 2011
How woulld I set this up:
I wanna save what links a user clicks on in a website. I thought of creating a jquery function that would save the link name everytime a link is clicked , then ajax the info to the db after the user closes the site.
Does that sound like a proper way. Anyone have samples of that?
Since there are multiple pages with multpile links, I wanna create something equivalient to a Session variable in javascript so I can append info to it everytime a user clicks a link and send the info only once to the db, instead of everytime a user clicks a link open a db connection and send the info.
The links are products so I wanna save related products, so I wanna save related product infomation. Maybe I need a cookie instead?
View 3 Replies
Jan 14, 2010
[Code]....
I have the above statement in the Page_Load sub on the masterpage. When I run "Start Debugging" from VS 2008 it works fine. However, when I publish the Web Site (on the same machine) and try to load the site from our internal network, the information is blank.
View 2 Replies
Apr 6, 2010
I want to include Microsoft AntiXss V1.5 library on my live site running in a medium trust setting.However, I got an error something like:Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.I tried this in full trust setting on my development machine and everything works good.Looks like this will run only in full trust configuration.
View 2 Replies
Nov 23, 2010
I have a ASP.NET application. From that, User register, User will get email after registration. My Req : When user click on link provided in email. Then it should go to my ASP.Net application page . That page should install a wincows application on Client system through web ( I was inspired by Microsoft Windows update from Microsoft site)
View 1 Replies
Mar 28, 2011
We have developed apllication in Microsoft VS 2008 and when we opening this same application with Microsoft VS 2010. Then it's asking to convert.
So can anybody tell me what it is converting exactly. Means it's open application in Microsoft VS 2010 and running properly also. But i am understanding whats happning while converting.
View 3 Replies
Jan 19, 2011
I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.
So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.
If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.
I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.
View 1 Replies