Search

You searched for the word(s): userid:691879

Matching Posts

  • Re: An attempt to attach an auto-named database for file ... failed

    I've just had this same problem and figured out what the cause is. This error message is happening because the account which the Application Pool is running does not have sufficient permissions to auto-attach the database. Please note this is NOT the account which is used to run the website. My Application Pool is the DefaultAppPool and was using Network Service account to run. I changed this to Local System and it started working. However, I believe this has security implications which I cannot
  • Re: Custom VB.NET Data Access Layer sample without tableadapters

    Thanks. The PetShop 4.0 example is the closest thing I've seen to my requirements so far. Although it's written in c# I managed to figure it out. Not sure I'll be directly copying the structure in that project though because I want my DAL/BLL to be much simpler - the petshop example seems a bit overkill in my opinion. Why can't I find a vb example of a simple DAL/BLL/Presentation layer project to download? I've searched for hours without any luck!
  • Re: how to check reader return nothing

    You are getting the error because you need to enclose your Email and Password variables in single quotations in your SQL statement, like so: "SELECT * FROM Customer WHERE Email='" & Email & "' AND Password='" & Pass & "'" Plus, you needed to have a space directly before the AND This will fix your error but it not related to your post question about checking if a datareader is returning null.
  • Custom VB.NET Data Access Layer sample without tableadapters

    Hi, Are there any good sample downloads of a custom data access layer written in vb.net? I'm talking about one which is written using classes in class libraries, preferably using the DAAB sqlhelper... NOT a data access layer using tableadapters! I have always used tableadapters before but now I need to create a custom data access layer written by my own hands. I just need examples so that I know I am doing it right. Thanks,
  • Re: can't access shared member of a class in a visual studio 'web site'

    I see, it's all starting to make sense now. I should have realised, I remember seeing lots of separate dll files with dynamically generated names in the bin folder, and because the page isn't referencing one site-wide dll file, that's where the problem is. Thanks for your help.
    Posted to Visual Basic .NET (Forum) by garrygrimshaw on 11/11/2008
  • Re: can't access shared member of a class in a visual studio 'web site'

    Hi, sorry for the late reply. Using Imports Page1 did not work. I messed around with using a namespace to wrap all my UI pages as I realised that Web Application Projects uses a root namespace in the project pages. However, when I tried setting a namespace in my pages I lost all my designer generated code, ie references to server controls in code behind. In WAPs there is a code-gen file where all this info is stored, but in Websites this is hidden somewhere but I don't know where! I am assuming
    Posted to Visual Basic .NET (Forum) by garrygrimshaw on 11/10/2008
  • Re: can't access shared member of a class in a visual studio 'web site'

    Hi, thanks for your reply. I first created the Utilities class file in the root of the web site and it wouldn't work. However, when I saved it into the App_Code folder (because VS prompts you to do this when creating a new class file) it works! So does this mean that if I want common shared functions across my site they all have to be in the one location of App_Code? I find this quite strange because page code-behind files are also classes just the same yet they don't work. It seems for code
    Posted to Visual Basic .NET (Forum) by garrygrimshaw on 11/5/2008
  • can't access shared member of a class in a visual studio 'web site'

    Hi, I have a simple web site created within visual studio 2005, (not a web application project). I have two pages, one which contains a shared function in the code-behind, and the other which calls this shared function. However, when I try to instantiate the class containing the shared member, I get a 'Name <classname> is not declared' error. Page 1 code behind: Partial Class Page1 Inherits System.Web.UI.Page Public Shared Function SomeFunction() As String 'Do Something End Function
    Posted to Visual Basic .NET (Forum) by garrygrimshaw on 11/5/2008
  • Re: User Controls getting cached when I don't want them to

    Hi, thanks for replying, No I don't use smart navigation at all, but I've figured out that it is a problem with offline file synchronization with Windows Vista and not related to asp.net directly. I use offline files because I use a laptop to take work around with me, but it seems that sometimes Vista cannot recognise when I am 'online' and still gives me the offline cached version instead of the one directly from my network file share. Very annoying!
    Posted to State Management (Forum) by garrygrimshaw on 3/17/2008
  • Re: User controls are getting cached when I don't want them to.

    Hi, thanks for replying but I've figured out that it is a problem with offline file synchronization with Windows Vista and not related to asp.net directly. I use offline files because I use a laptop to take work around with me, but it seems that sometimes Vista cannot recognise when I am 'online' and still gives me the offline cached version instead of the one directly from my network file share. Very annoying.
Page 1 of 6 (60 items) 1 2 3 4 5 Next > ... Last »