Showing posts with label studio. Show all posts
Showing posts with label studio. Show all posts

Wednesday, March 28, 2012

control cannot be created because Visual Studio Cannot find the Controls type in the Contr

Hi Friends, I have installed Visual Studion 2005 on my machine. After creating an AJAX FutureRelese Web project. I tried to add Future Release Controls to my web page. I am getting the following error "control cannot be created because Visual Studio Cannot find the Controls type in the Control Assembly" Could you please get back to me with the solution for this. Thanks and Regards, Baburaj P V

Pls make sure you have System.Web.Extensions referenced. If Not Add it from the Reference Dialog, it is insalled in the GAC. If you also have the previous version then you have to modify the web.config.


It would be greatful, if I could know how to modify the Web.Conf. I have installed ASPDOTNETFutureRelease on Dot Net Fwk 2.0

Best Regards,

Babz


Try adding another entry for System.web.extensions for AJAX controls and prefix it in the control creation in web forms

control cannot be created because visual studio cannot find the controls type in the contr

Just installed Ajax extensions and ajax control toolkit for Vs2005.All fine.

I can drag drop update panel or script manager.

But if I do so with ajax toolkit controls I get a a error as : "control cannot be created because visual studio cannot find the control's type in the control assembly".

I have downloaded and worked with the toolkit at my home comp and it works all fine. But here at my work its giving me this problem.

I googled up to see any solutions but dint find much help!!

So any help with this would be appreciated!! Thanks!!


Hey guys!!

Anyone for the solution??


Did you remember to register it in the GAC? On your work PC, it may not have done that automagically.


Hey thanks for that.

It did work out.

Strange I have added toolkit on couple of PC's and never saw this error.

Just added the Dll to Gac and the problem is solved on my box.

Thanks.

Consistent nuisance with AjaxControlToolkit. Possible PublicKeys.

Hi.

I've been developing a web site in Visual Studio 2005. I had various problems with the Ajax Extensions such as ScriptManager and UpdatePanel. They were all of validation nature for ASP and sometimes went away without notice and sometimes opening up the Web.config was enough. Not logical to me I kept on and then finally ended up updating Visual Studio to Service Pack 1. All of the problems are now gone but then, new one surface.


Even when I make a new AjaxControlToolkit enabled web site, and just drag and drop a TextBox and AutoCompleteExtender, I get validation errors on both the AutoCompleteExtender and then the default added ToolkitScriptManager. The error I get is sometimes of the likes of

Error 34 Element'ToolkitScriptManager'is not a known element. This can occurif thereis a compilation errorin the Web site.

And yeah, the build failes. Then I get this error:

Error32Requestfor the permission of type'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
 
So, just so you know what I've tried to do to fix this. I've tried: * Searched the PublicKeyToken and changed it to all uppercase.

* Reinstalled the Ajax Extension msi
* Re-added the AjaxControlToolkit in to the Toolbox (reset it first).
* Put the Trust Level to Medium in web.config.
* Taken out PublicKeyToken on System.Web.Extensions

And this is happening to me with default values of all things. I really understand if some of you who are kind enough to try and help me can't reproduce this error but,
these errors have crippled my work for 2 days by now and it's really uncomfortible to realise that this tool that's supposed to help me is more a burden then help.
I can pass on a screenshot of this peculiar error and it's safe to say that I expected more from Microsoft.

Hi,

This seems to be a security issue, please specify trust level to FullTrust and try again.

Monday, March 26, 2012

Connect to a web reference

I have a web service running on my local machine and I have added it to a Atlas project in Visual Studio using web reference. There are three files created under App_WebReferences\localhost: xxx.disco, xxx.discomap and xxx.wsdl. How should I reference it in the following Atlas tag:

<atlas:servicereferencepath="??"type="text/javascript"/>

Also in my web service code, it has the following line:

<%@dotnet.itags.org. WebService Language="c#" Codebehind="ServerStatus.asmx.cs" Class="Microsoft.TeamFoundation.Server.ServerStatus" %>

But when I use the methodMicrosoft.TeamFoundation.Server.ServerStatus.GetSupportedContractVersion, I get an error saying "Microsoft" is undefined.

In general the service code is not available. I suppose its class information should be in .wsdl file. But I am not sure where to locate it. Please help. Thanks.

I had the same problem. You are not able to call external webservices by importing a web reference. You need to wrap the external webservice in your own webservice implemented by an asmx file.
For this I created a C# library with Visual Studio and added a web reference in the library. Now I was able to add a reference to the reulting DLL and call the external webservice from MyWebservice.asmx.
You are obligate to use this solution when the webservice is located on a different server than where your website will be hosted, because Javascript can not make HTTP requests to other servers.
Maybe you can bridge to that particular external web service. I am currently reading the followinghttp://atlas.asp.net/docs/atlas/doc/bridge/default.aspx.

Saturday, March 24, 2012

Configuration Error

To any one that can help, here is my situation--

I am completely new to AJAX. No one I know uses it or knows how to. I am using Visual Studio for ASP.net and C#.

The error that is given to me is:

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=XX, Culture=neutral, PublicKeyToken=XX' or one of its dependencies. The system cannot find the file specified. (C:\Documents and Settings\Project\web.config line XX)

I am completely unsure of even where to start. If someone could give me a starting point I would be much obliged. Thanks.

-Adam

Copy the web.config which comes with the Asp.net Ajax Installation. Visit http://ajax.asp.net/docs to get started.