I have recently come across a problem that hopefully someone may be able to help me with. I have checked the FAQs regarding Logins but am unable to find my problem. Basically I have been working on a simple web application using C# on VS2008. The application contains a private folder which contains web forms that can only be accessed after logging in as admin. When I run this application through Visual Studios it works fine and I am able to login and view the private database pages.
I inherited a .Net website project. Except for just 3 .aspx.cs files, pretty much every other file is a .aspx file.
I don't see any .csproj or any .sln files.
If I want to load up this website on my localhost, how would I go about doing it? Am I supposed to load up Visual Studios and "import" these *.aspx.cs and *.aspx file?
I already successfully set up the SQL Server database and updated the web.config with the appropriate credentials.
I'm trying to run the performance wizard on an ASP.Net website. However, whenever I try to start it I get the following error.
"The website contains unexpected information or you do not have permission to access the metabase. You must be a member of the Administrators group on the local computer to access the IIS matabase. Therefore, you cannot create or open a local IIS website. If you have Read, Write, and Modify Permissions for the folder where the files are located, you can create a file system website that points to the folder in order to proceed"
I am an Administrator on my machine. Tried googling but came up with nothing. Anyone run it before and know how to deal with it?
I am finding it near impossible to format a word document into visual studios, is it just me? For example i have a page with loads of bullet point on and im not sure how to show these without it looking rubbish and putting it into a table..
I recently found out that you can only do full text indexing with the advanced series of SQL Express and I managed to download and install it on my machine. My question is how do I integrate it with Visual studios 2010 so that I can do the full text indexing ?
When I installed SQL Express with advanced series 2008, it created an instance of SQL Server management studio so im wondering if I have to do it there and then move the database into my project or if I can do the full text indexing from inside my project
I have a gridview that shows when something is check out. I would like to only show results from todays date and forward. I have done this in Expression Web but when I tried to use the same code in Visual Studios it doesn't work.
Anybody else find the web page editor for Visual Studios (2008) to be horribly buggy? Almost every other time I try to debug a program, it sputters around for a minute or two, and then I get this error: Unable to Start Program [URL]. Element not found. Sometimes it happens two or three times in a row, and each time it leaves a hung browser I have to go and end the process for and then try again, so it can get up to 10 minutes at times just to get the damn debugger going. Really frustrating, especially when it's at the end of the day and I'm trying to finish things up.
Can a query output made in MS ACCESS be accessed as a database in Visual Studio 2008?
I have a Parent and Child Table in MS Access with a one-to-many relationship. I created a query in Access that would produce a result table and I want the contents of this Query to be displayed in a Data Grid in Visual Studio 2008.
I want a piece of code for asp.net 3.5 using visual basic. and i am using MS access database.
I have two three text boxes and 2 image upload controls and a submit button.
I want a piece of code in which a user can upload images and store it in our database . i want an asp.net visual basic working code. also i need query behind the submit button.
I trying dotnetzip on localhost everything works fine.but on a real dotnet hosting it raises error :
Access to the path 'C:inetpubvhostslahblah.comsubdomains aporhttpdocsDotNetZip-luqevaxu.tmp' is denied. using (ZipFile zip = new ZipFile(Server.MapPath("~")+"/a.zip")) { zip.AddFile(Server.MapPath("~")+"/deneme.txt"); zip.Save(); }
I'm writing a simple Intranet application using windows authentication. I want to restrict access to Safe/UCantSeeMe.aspx. I am aware of the AuthorizeAttribute, but this only works on methods. I also found a good post on doing this with the MVC pattern, but I'm not using MVC. This can be done with roles in forms based security. I read on MSDN that using windows based security means roles are based on groups, but it doesn't go into any detail. how can I restrict access to Safe/UCantSeeMe.aspx?
I have implemented role based security in my asp.net 2.0 vb.net application using windows authentication and the windowstokenroleprovider and limiting access to certain pages using the location tag to specific active directory groups.
The issue is that when a user tries to access a page they are not authorized to view it brings up a login prompt and when it does not pass it takes them to the default page that tells them they are not authorized to view the page. I am wondering if there is a way to throw up a custom page that tells them they are not athorized to view the page that I can incorporate into the site itself with the header and so forth? if this page could come up in lieu of the sign in box popping up as well.
I need to implement Code Access Security, and URL based security using the roles & types...
For instance, the (Subscriber/Basic) would need to view a different set of pages, and have different access to things then a (Subscriber/Business).
I think I can handle the Code Access security with a custom attribute, but I am unsure to how enforce a User be apart of 2 roles in the URL Authorization.
I am currently using the web.config to deny/allow access to the directories/pages.
e.g.
/Areas/Admin/web.config
[Code]....
Is it possible to force the user to be apart of 2 roles with this technique?
i developed an asp.net(2.0) applicaions which contains the attachments of the clients . these attachments are saved in the shared folder and retrive the file when the user requests.if i maintain the application and the shared folders in the same system it will work properly.if i maintain the application in one server and the file folder in the other server i face a lot of security issus like1.Access Denied2.Couldnot find the part of the path......for this i made an common account for the application server and the file server and also set impersonation to true.Even the i got the couldnot find the part of the path error.i already gave the everyone with full control to the shared folder and i added the common account and gave it to full controlIs there is any alternate for the save and retrive the files to and from the shared folder.
i am working in asp.net and csharp, we have 10 user, but certain user only need to put dataentry. how to enable and disable based on the user to access certain form ,like add, modify view options.
I can't seem to add an Access DB to my ASP.Net project. I can see the DB in the Database Explorer Window, but I can't see any of the Tables or Views; nothing at all. I click Test Connection, and I get a message that 'Test Connection Succeeded', but I can't see anything and I don't seem to have any kind of control whatsoever. If I click on the Tables folder, I get this message: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt'. When I double-click directly on the DB, it opens and runs just fine.
The Access DB is on my desktop. Originally developed in Access 2000; using 2007 now. Also, this is VWD and ASP.Net 3.5. Any thoughts on what I'm doing wrong? It seems like a pretty easy thing, but it's turning out to be not quite as easy as I thought.
i'm trying an example by trying to creating two projects in one solution to seperate logic and UI. so let's say test.logic and test.ui
in test.ui i have a page called lets say contact me. in the code behind for this page i want to call a method that belongs in a class called processData in test.logic
in contact me cs i tried something like:
namespace test.ui { using test.logic //code here }
but that does not work as class/method not shown in intellisense.
I am trying to put a simple website on my web server. My hosting company only allows .mdb files. When I try to use .mdb files in asp.net visual web developer 2008 I get the following error.
I have a window form app with reports that connects to an Access Database i had already build the project and every single report works fine without any problem, Here is what's stange, when i try to add a new report to the project and try to connect to the database i am getting 'Visual studio has a problem and need to close' i don't know what is the problem, i can open the database and run queries without any problem but whenever i want to connect my newly created report to the database it just failed. It does not give me a detail error so i can fix it.
I've recently upgraded to WIndows 7. When I try to sing the assembly in VS2010 I get an "Access is denied" error. I am logged as admin so I'm puzzled. What service account does VS uses that I should elevate its privilages?