View Complete Post
I had successfully restored sql 2000 database to sql 2005. It works like charm
Now i am creating a database model in MVC
I follow these steps
Right click on model > ADO.NET entity data model > Generate from database > New connection (Microsoft sql server) > server name > select or enter database name
But no server name AND database name show in both drop down lists. When i mannually enter database name (which exists in sql 2005) then click on TEST CONNECTION. It gives follwoing error
"A network-related or instance-specific error 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.
Kindly help me with this
Suppose that I want to implement another method for a class namely
hasFiles for System.IO.Directory , How can I do that?
if I add <Extension()> _ tag before each function or Sub I can
add a new function or method for each Control.
How should it be
for a specific Class?
We have Single Server MOSS 2007 SP2 farm with DBA managed database server. We have different web applications running and deployed several solutions (SharePoint Learning Kit, Facet
Search, workflow extensions, new themes) in the farm.
Recently we wanted to scale out our farm by adding one WFE and one indexing server. I have installed MOSS 2007 SP2 slipstream in the C drive (default location) of both the new servers.
Then before running the SharePoint Product & Technology Configuration Wizard I uninstalled MOSS, restated the servers and reinstalled MOSS 2007 SP2 slipstream in D drive.
I didn't add farm administrators group to the local administrator group of the new servers but I added my own account which is a member of farm administrator group to
local administrator group. I didn't add Central Admin Webapp pool identity account (which is a service account) to the local administrator group either. But this service account as well as farm administrators group account has dbcreator & securityadmin
privileges in the sql server, both t
hi therei need to add a string in a existing resource filei am trying this but does not workdo you know the problem?
Private Function AddString(ByVal file As String, ByVal result As String)
Dim language As Google.API.Language = Google.API.Language.English
Dim resxFilePath As String = file '"c:\files"
Using rr As New ResXResourceReader(resxFilePath)
Dim outputFilePath As String = resxFilePath.Replace(".vb", "") & ".resx"
Using rw As New ResXResourceWriter(outputFilePath)
rw.AddResource(result, Replace(result, Chr(34), ""))
I have an existing sp 2010 enterprise server hosting websites and central administration. I have a seperate sql 2008 r2 server holding the databases. My goal is to setup another sp 2010 enterprise server to provide redundancy for the websites
and central admin. I believe I am able to accomplish this by adding another web front end to the farm. On the second server, I install sp 2010, run the config wizard and connect to the config database located on the sql server, however, I
am interrupted at step 3 when I am notified of the following:
Failed to connect to the configuration database.
An exception of type System.InvalidOperationException was thrown. Additional exception information: There was an error encrypting or decrypting credentials. Either a credential update is currently being performed, or you must update the farm account credentials
on this server before you can perform this task.
System.InvalidOperationException: There was an error encrypting or decrypting credentials. Either a credential update is currently being performed, or you must update the farm account credentials on this server before you can perform this task.
I want to undertand and change an existing website which was written long time back. It cntains a lot of code and I dont know where to start as there is no dicumentation.
Is there any way by which i can create a class diagram and sequence diagram of the existing one as I want to incorporate all the existing functionalities in the new one and dont miss out anyone. Only way I know is to debug the current application and go through whole of the code individually. Is there any way out by which I can undertand the current application quickly?
Any help is greatly appreciated!
I use in my ASP.NET MVC application repository pattern and I use in controller for example 3 models:
public class HomepageController : Controller
private IWebsitesRepository _repository_websites = new WebsitesRepository();
private IFirmRepository _repository_firm = new FirmRepository();
private IPhotosRepository _repository_photos = new PhotosRepository();
In WebsiteRepozitory, FirmRepository and PhotosRepository classes I have:
Database1Entities _entities = new Database1Entities();
So I have 3 connections to database ? Is it wrong ? How can I solve it ?