C# - Windows Azure - Role Entrypoint Could Not Be Created
Jan 5, 2011
I'm migrating an ASP .NET 2.0 WebSite to WebRole (ASP.NET 4.0 and VS2010). After created new web role, I moved all files and folders from website to WebRole then reference all needed dlls. I build and run web role stand alone and everything ok without problems. But when I build and run WindowsAzureProject, below errors come up
[fabric] Role state Stopping
[fabric] Role state Stopped
[fabric] Role state Aborted
[fabric] Role state Teardown
[fabric] Role state Destroyed
[runtime] Role entrypoint could not be created:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
and the status "Operation was canceled" It takes me days to resolve but nothing found. I did set "Copy local" to true for all reference dlls but it doesn't effect also. I've just thought spring.core and spring.aop caused the error but I don't know how to debug and catching where it crash
I have a Silverlight/RIA application that worked fine locally and on my IIS 7 server. Now that I've moved it to Azure, I'm getting EndpointNotFoundExceptions.
[EndpointNotFoundException]: There was no channel actively listening at [URL]
DomainService.svc/binary/SeviceEndpoint
ive seen the solution for wcf services here [URL] but im not sure if this is also applicable for ria services
I just downloaded and installled the Microsoft Windows Azure SDK yesterday for the first time and I am having issues running the application as I all I am getting is 503 errors. I run Windows Server 2008 R2 on my development machine and even tested it on another co-workers 2008 R2 and couldn't even compile the application. He got this error instead "A problem occurred while trying to set the "References" parameter for the IDE's in-process compiler. Error HRESULT E_FAIL has been returned from a call to a COM component."
From within my Windows Server 2008 R2 Hyper-V Virtual Windows 7 x86 enviroment, I was able to successfully build and run the Windows Azure SDK and it even showed the base ASP.NET application.So my question is, does the Windows Azure SDK for Visual Studio 2010 w/ Visual Studio 2010 SP 1 installed not work under Microsoft Server 2008 R2?
This is going to be a question really for someone who has knowledge with PingIdentity and ACS, which could be pretty limited.I've got my ACS set up, all working fine and I know how to add a custom STS (PingIdentity) but I can't find any of the PingIdentity Federation MetaData (FederationMetaData.xml) to authenticate with.
Apparently our current system's workflow is such:
Us -> Our PingIdentity server -> Supplier -> Supplier's PingIdentity server -> Route token back to us.
Would I have to use our local PingIdentity Federation MetaData as the STS in order to achieve what I'm looking for (same scenario, but with ACS)? And where can I find this?
does windows azure automatically scale up(by providing more instances), or I need to change this? the extra small instance costs 0.05$/hour. According to Azure SLA I need to use at least 2 instances. This means 2 * $0.05*24*30=$72/month minimum. I can get on premise asp.net hosting for $5/month. Is there any offer I don't know about so I can build from the start on Azure architecture, or should I just switch to azure when I need more scaling and other servies that Azure offers because the difference in price is too high for me.
I've currently got Windows Azure AppFabric system set up and running with my own registered Namespace, in which uses the Google/Yahoo/Windows Live STS providers. That all works fine, I can use them and login to my application. Easy.
However, I can't find anything in any way useful on the web that related to adding my own STS to this list from a 3rd party supplier. I've read that it's possible, and it's the last hurdle I'm stuck on here - replacing the Google/Yahoo/Windows Live STS with the ones I need my application to authenticate with. I cannot find anywhere in the STS control panel to allow for this (AppFabric Labs).
I have written an web application in VS2010 ASP.net C#, to display Crystal reports. I moved this application to Azure Emulator. It was working fine locally. However after deploying it with Azure, crystal report is not getting displayed and not even an exception is thrown.
I have installed
Installed CRforVS_13_0.exe
Then installed CRRuntime_64bit_13_0, on my machine sequentially.Any input from any1 will be helpful. Please let know if you want more information.
My current ASP.NET site requires to launch FFMPEG.EXE to convert uploaded videos. With shared web hosting server, can't be done but via a Virtual Private Server (VPS) or a dedicated server.
I've been reading some info about Windows Azure but haven't found any info regarding:
1. Be able to launch external executable
2. Be able to remote desktop into the allocated virtual machines
We have a Web Role that we are hosting in Windows Azure that uses an old ASMX based Web Reference to contact an external system. The Web Reference proxy code is big enough that instantiating it the first time has a significant cost.
We'd like to be able to have this run when the Web Role starts instead of on the first request.
I know IIS 7.5 has an Application Warm-Up module that would allow us to achieve this, but I'm having trouble figuring out if something similar exists with hosting on Windows Azure.
In one of our ASP.NET Web site solutions I need to roll out an update that might take reasonable time. It spawns multiple Windows Azure Workers and projects and so simple Deployment Swap is ruled out.
Essentially I'm just thinking about way to redirect all web requests to a "site is under maintenance" page for some time, given the project is under Windows Azure.
I'm aware of the app-offline.htm trick with IIS, but I doubt that Azure Web Role will allow this one to be deployed or run (it spins down the app domain).
I am working on an intranet website using ASP.NET and was wondering what exactly I can gain by enabling roles when Windows authentication is enabled for my website. I can check if users belong to groups with the User object so why would I need to enable roles given that windows authentication is enabled?
I would like to use the asp.net membership and role management. However, all I found is fixed role control on the page level. Is there a way to let customer (administrator) to create their own roles, and assign the permission (edit, add, or view) to them, and then, use the permission to control te display (for example: edit button visible or not)?
I'm new with MVC. I would like the standard code a bit. When an new user is registrated, I would like to have that his useraccount get automaticly the role "trial".
I created (and used) a Windows Media Encoder object in Microsoft Visual C# 2008 Express Edition on MS Server 2003 64 bit. This worked fine.
However, when I attempted to create the equivalent Windows Media Encoder object using Microsoft Visual Web Developer 2008 on MS Server 2003 64 bit, the following exception was thrown:
"Retrieving the COM class factory for component with CLSID {632B606A-BBC6-11D2-A329-006097C4E476} failed due to the following error: 80040154."
It cannot be that the component isn't registered, because both have a reference to the same WMEncEng.dll file. The Microsoft Visual Web Developer 2008 code also worked fine on XP 32 bit.
We use Sharepoint to control our websites. We build the sites, then load them into the sharepoint server. My question is if I use windows authentication, how can I get my role security in my web config file to coencide with the asp.net controls that use the Forms authentication. Is there a differenence? Our security uses a session variable for security but there is no where to set up their permissions except in active directory. I hope this makes sense because I would like to implement the LoginView with Role groups but how can I give them the role="administrator"? Do I have to go into active directory and give them these permissions(would take awhile due to the size of the company)? Or do I have to set up priveladges in the web.config file for each user(difficult I think)?
To work with the ASP.NET 2.0 Membership and Role, we will use Forms authentication for the public Internet. On the other hand, we use Windows authentication for Intranet applications. uestion: In a website with Windows authentication, can I still have some kind ofole management for different groups of the Intranet users? If yes, how?
We have created an ASP.NET web app that upload files to WSS Doc Libary. The files get added under 'SYSTEM ACCOUNT' in the library. The FullTextSqlQuery class is used to search the document libary items. But it only searches files that has been uploaded by a windows user account like 'Administrator' and ignores the ones uploaded by 'SYSTEM ACCOUNT'. As a result the search results are empty even though we have the necessary data in the document library. What could be the reason for this? The code is given below:
public static List GetListItemsFromFTSQuery(string searchText) { string docLibUrl = "http://localhost:6666/Articles%20Library/Forms/AllItems.aspx"; List items = new List(); DataTable retResults = new DataTable(); SPSecurity.RunWithElevatedPrivileges(delegate { using (SPSite site = new SPSite(docLibUrl)) { SPWeb CRsite = site.OpenWeb(); SPList ContRep = CRsite.GetListFromUrl(docLibUrl); FullTextSqlQuery fts = new FullTextSqlQuery(site); fts.QueryText = "SELECT Title,ContentType,Path FROM portal..scope() WHERE freetext('" + searchText + "') AND (CONTAINS(Path,'"" + ContRep.RootFolder.ServerRelativeUrl + ""'))"; fts.ResultTypes = ResultType.RelevantResults; fts.RowLimit = 300; if (SPSecurity.AuthenticationMode != System.Web.Configuration.AuthenticationMode.Windows) fts.AuthenticationType = QueryAuthenticationType.PluggableAuthenticatedQuery; else fts.AuthenticationType = QueryAuthenticationType.NtAuthenticatedQuery; ResultTableCollection rtc = fts.Execute(); if (rtc.Count > 0) { using ( ResultTable relevantResults = rtc[ResultType.RelevantResults]) retResults.Load(relevantResults, LoadOption.OverwriteChanges); foreach (DataRow row in retResults.Rows) { if (!row["Path"].ToString().EndsWith(".aspx")) //if (row["ContentType"].ToString() == "Item") { using ( SPSite lookupSite = new SPSite(row["Path"].ToString())) { using (SPWeb web = lookupSite.OpenWeb()) { SPFile file = web.GetFile(row["Path"].ToString()); items.Add(file.Item); } } } } } } //using ends here }); return items; }
Usually in sub-folder we will limit the access right to some roles and this feature requires pre-defined database schema.
However, if i still want to use this role feature of asp.net, but I do not like the pre-define database schema, I want to extract role information from my own database table and bind it to the role.
When adding a role (making use of asp.net's role provider), i cannot find a method to add a role including a description.the asp.net Role table in SQL makes provision for a role description, however the only method available is:Roles.CreateRole(string RoleName);here is no overload to include a description.Is there an out of the box way of including the description? or should i go about this myself?
Where I work, we're planning to develop a web application (for internal use) with the help of ASP.NET MVC, me being the intended developer. I have no real background in web app development, but I have dabbled a bit with RoR in my spare time and loved that way of doing things. At work .NET is de rigeur however, so I am looking at ASP.NET MVC (looks promising so far, for that matter).
Since we're new to developing web applications, we're unsure about how to best handle the administration of the application's platform (i.e., the web server and the database server etc.), and are wondering if we might be better off deploying it on Azure. While I know that there is support for ASP.NET MVC on Azure, I don't know the concrete methods of managing an application throughout its lifecycle: create it initially, deploy new versions, change database schema etc. On the other hand, I know at least superficially how to manage Rails applications on Heroku.Could someone please provide us with some much needed advise on running ASP.NET applications on Azure compared to on-premise, and thus help us decide? If we could be pointed toward some practical info, tutorials perhaps, showing how an ASP.NET MVC application (or even just a straight ASP.NET application) on Azure is managed throughout its lifecycle,