VS2012 extension with 2013.1
I have tried very hard to learn MVC 5, but is vs2012 is failing me?
I have wathced many videos on mvc, studied, and now doing. Sort of. I have received wrox mvc 5 professional developer with author Jon Galloway. My question is after installing the 2012 extensions should I not be seeing
in the menu on start of new project->Web->mvc 5 web application as a selection? Well, I don't. After much looking, and reading, I not seeing any information on this. I would like to follow the book of mvc 5, but after
my first debug, exception resulted and yelled at me in red. Not a real big deal, but I would like all the entities installed, the controllers, and view pre-installed to get me going with the book. Thanks in advance
Hi Orinart,
Thank you for posting in MSDN forum.
I agree with the pvdg42's suggestion, so I suggest you could try the pvdv42's suggestion to check your issue.
In addition, I suggest you can also refer the following link to create a MVC5 project in VS2012.
http://www.codeproject.com/Articles/696518/Using-ASP-NET-MVC-within-Visual-Studio
Since I am not the MVC experts, so if the above suggestion still could not help you. I suggest you could try to consult this issue to this ASP.NET MVC forum:http://forums.asp.net/1146.aspx/1?MVC , you will
get better support.
Thanks for your understanding.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
Problem setting file extension with jspc
I'm using xhtml which it appears the Jasper compiler (Tomcat 5.5) can't handle. It seems to only recognize files with the jsp and jspx extensions. Is there a way (either on the command line or via the Ant task) to set this? What is the proper way of pre-compiling these pages?
Thanks in advance.
Scott CzadzeckHi,
You can restrict them to save in any other format by making the check.
Simply add listner for the Event.OPEN on the fileReference and inside this check for your allowed extension,if the extension is not what you want then
simply right a line there like:-
fileReference.cancel();
And addtionally you can give any alert that your file should be of that particular extension.
with Regards,
Shardul -
Associating other extensions with text PDF Maker
Is there any plan to allow users to associate other file extensions with a PDF Maker that are plain text? We have proprietary files with extensions bom,bot,dbk,drd, dts,emn,ewprj and more that are essentially text files that can be opened with Notepad. Rather than converting these one by one using the Create PDF from Web Page functionality and using the Text File Type settings, can Acrobat be configured to recognize these formats as text to more efficiently process these files?
I had this a long time ago and one of my students pointed out a setting in WORD. Unfortunately I do not remember the item that had to be fixed, but it was definitely a WORD problem.
-
How can i use jpg extension with forms 10g and webutil
I have a form with webutil and i want to open imege jpg extension but thier are Bmp but my
image jpg and image item has no jpg extension .
How can i use jpg extension with forms 10g and webutil ?You can use the JFIF image format for jpg files.
-
Workaround for using Oracle JDBC extension with WLS pooling
Reading the newsgroup I saw that many of us encountered the problems
with ClassCastException when tried to use Oracle JDBC extension
with WLS pooling. I also had.
In this case BEA recommends to use dangerous
method getVendorConnection() which exposes
the physical connection object to your code.
Yes it's really dangerous because of unsafe usage may breaks
WLS pooled connection(s).
Moreover, this practice will make your JDBC code
unportable (your JDBC code in addition to Oracle dependence
became Weblogic dependent):
void doSmth() {
Connection con = ...;
Connection vCon = ((WLConnection)con).getVendorConnection();
// + mess of usage con in one places and vCon in others
// (where Oracle extensions are needed)
// !Don't forget to don't close vCon!
Sux.
I found the workaround.
Introduction
============
Yes the real cause of ClassCastException is that
in depth of Oracle driver the casting
to class oracle.jdbc.driver.OracleConnection
(not to interface oracle.jdbc.OracleConnection)
is performed.
Someone can say that this is bug or pure desing.
Weblogic pooled connection provide dynamic
implementation for all public interfaces
which real physical (wrapped) connection object implements.
Great feature!
But I guess that all interface methods implemented
by simple call-delegation to physical (wrapped) connection object.
In case of oracle.jdbc.OracleConnection interface
this approach doesn't work for at least one its method:
public OracleConnection unwrap()
WLS pooled connection shoudn't implement this method by
delegation to physical connection object BUT should
return physical connection object itself!
// Wrong implementation of unwrap()
// delegation is used
public OracleConnection unwrap() {
return physicalConnection.unwrap();
// Right implementation of unwrap()
// physical connection returned
public OracleConnection unwrap() {
return physicalConnection;
Workaround
==========
1. Develop your own OracleConnection wrapper class:
import oracle.jdbc.OracleConnection;
import weblogic.jdbc.extensions.WLConnection;
public class MyOracleConnectionImpl implements OracleConnection {
private OracleConnection con;
public MyOracleConnectionImpl(OracleConnection connection)
throws SQLException
this.con = connection;
public OracleConnection unwrap() {
return (OracleConnection)
((WLConnection)con).getVendorConnection();
/* Implement all other methods by delegation to con object */
2. Don't get Connections directly from DataSource --
develop your own simple (may be static) utility
class which retrives Connections from dataSource
and returns them wrapped into your MyOracleConnectionImpl
to your code from some method:
puclic abstract class MyConnectionSource {
public static Connection getConnection() {
Connection con = // get it from DataSource
return new MyOracleConnectionImpl((OracleConnection)con);
3. Add attribute RemoveInfectedConnectionsEnabled="false"
to definition of your JDBCConnectionPool within config.xml
You may do it because of you `safely` use vendorConnection --
you don't expose it to application code.
4. Enjoy the Oracle JDBC extensions in your code!
Example:
Connection con = MyConnectionSource.getConnection;
ArrayDescriptor add =
ArrayDescriptor.createDescriptor("your_type", con);
Hope it helps to someone.
Best regards,
Eugene VoytitskyHello Eugene Voytitsky,
Thanks Eugene Voytitsky for your idea
I have tried the solution suggested by You, but it did not work.
It still throws ClassCastException.
I am sorry for posting the whole code of two classes below.
I did this to give you more clarity.
I am also indicating the place where the exception was thrown..
Please let me know if I am doing something wrong.
OracleConnection Wrapper class
package ejbTesting;
// sql imports
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
// util imports
import java.util.Map;
import java.util.Properties;
// imports from Oracle Driver Classes
import oracle.jdbc.OracleConnection;
import oracle.jdbc.OracleOCIFailover;
import oracle.jdbc.OracleSavepoint;
// import from Weblogic extensions
import weblogic.jdbc.extensions.WLConnection;
public class WeblogicConnectionWrapper implements OracleConnection
// oracle connection object
private OracleConnection connection;
public WeblogicConnectionWrapper (OracleConnection orclConnection)
try
this.connection = orclConnection;
catch(Exception unexpected )
unexpected.printStackTrace();
public OracleConnection unwrap()
try
// The datasource returns a weblogic.jdbc.pool.Connection
// This needs to be type casted to weblogic.jdbc.extensions.WLConnection
// Only this weblogic.jdbc.extensions.WLConnection CAN BE type casted
// to OracleConnection
return (OracleConnection) ((WLConnection) connection).getVendorConnection();
catch(Exception sqlException )
sqlException.printStackTrace ();
return null;
/* Implement all other methods by delegation to connection object */
public Connection _getPC()
return connection._getPC();
public void archive(int i, int j, String s)
throws SQLException
connection.archive(i, j, s);
public void assertComplete()
throws SQLException
connection.assertComplete();
public void clearWarnings()
throws SQLException
connection.clearWarnings();
public void close()
throws SQLException
connection.close();
public void commit()
throws SQLException
connection.commit();
public Statement createStatement()
throws SQLException
return connection.createStatement();
public Statement createStatement(int i, int j)
throws SQLException
return connection.createStatement(i, j);
public boolean getAutoClose()
throws SQLException
return connection.getAutoClose();
public boolean getAutoCommit()
throws SQLException
return connection.getAutoCommit();
public CallableStatement getCallWithKey(String s)
throws SQLException
return connection.getCallWithKey(s);
public String getCatalog()
throws SQLException
return connection.getCatalog();
public boolean getCreateStatementAsRefCursor()
return connection.getCreateStatementAsRefCursor();
public int getDefaultExecuteBatch()
return connection.getDefaultExecuteBatch();
public int getDefaultRowPrefetch()
return connection.getDefaultRowPrefetch();
public Object getDescriptor(String s)
return connection.getDescriptor(s);
public boolean getExplicitCachingEnabled()
throws SQLException
return connection.getExplicitCachingEnabled();
public boolean getImplicitCachingEnabled()
throws SQLException
return connection.getImplicitCachingEnabled();
public boolean getIncludeSynonyms()
return connection.getIncludeSynonyms();
public Object getJavaObject(String s)
throws SQLException
return connection.getJavaObject(s);
public DatabaseMetaData getMetaData()
throws SQLException
return connection.getMetaData();
public Properties getProperties()
return connection.getProperties();
public boolean getRemarksReporting()
return connection.getRemarksReporting();
public boolean getRestrictGetTables()
return connection.getRestrictGetTables();
public String getSQLType(Object obj)
throws SQLException
return connection.getSQLType(obj);
public String getSessionTimeZone()
return connection.getSessionTimeZone();
public int getStatementCacheSize()
throws SQLException
return connection.getStatementCacheSize();
public PreparedStatement getStatementWithKey(String s)
throws SQLException
return connection.getStatementWithKey(s);
public int getStmtCacheSize()
return connection.getStmtCacheSize();
public short getStructAttrCsId()
throws SQLException
return connection.getStructAttrCsId();
public boolean getSynchronousMode()
return connection.getSynchronousMode();
public int getTransactionIsolation()
throws SQLException
return connection.getTransactionIsolation();
public Map getTypeMap()
throws SQLException
return connection.getTypeMap();
public String getUserName()
throws SQLException
return connection.getUserName();
public boolean getUsingXAFlag()
return connection.getUsingXAFlag();
public SQLWarning getWarnings()
throws SQLException
return connection.getWarnings();
public boolean getXAErrorFlag()
return connection.getXAErrorFlag();
public boolean isClosed()
throws SQLException
return connection.isClosed();
public boolean isLogicalConnection()
return connection.isLogicalConnection();
public boolean isReadOnly()
throws SQLException
return connection.isReadOnly();
public String nativeSQL(String s)
throws SQLException
return connection.nativeSQL(s);
public Object openJoltConnection(String s, short word0, short word1)
return connection.openJoltConnection(s, word0, word1);
public void oracleReleaseSavepoint(OracleSavepoint oraclesavepoint)
throws SQLException
connection.oracleReleaseSavepoint(oraclesavepoint);
public void oracleRollback(OracleSavepoint oraclesavepoint)
throws SQLException
connection.oracleRollback(oraclesavepoint);
public OracleSavepoint oracleSetSavepoint()
throws SQLException
return connection.oracleSetSavepoint();
public OracleSavepoint oracleSetSavepoint(String s)
throws SQLException
return connection.oracleSetSavepoint(s);
public int pingDatabase(int i)
throws SQLException
return connection.pingDatabase(i);
public CallableStatement prepareCall(String s)
throws SQLException
return connection.prepareCall(s);
public CallableStatement prepareCall(String s, int i, int j)
throws SQLException
return connection.prepareCall(s, i, j);
public CallableStatement prepareCallWithKey(String s)
throws SQLException
return connection.prepareCallWithKey(s);
public PreparedStatement prepareStatement(String s)
throws SQLException
return connection.prepareStatement(s);
public PreparedStatement prepareStatement(String s, int i, int j)
throws SQLException
return connection.prepareStatement(s, i, j);
public PreparedStatement prepareStatementWithKey(String s)
throws SQLException
return connection.prepareStatementWithKey(s);
public void purgeExplicitCache()
throws SQLException
connection.purgeExplicitCache();
public void purgeImplicitCache()
throws SQLException
connection.purgeImplicitCache();
public void putDescriptor(String s, Object obj)
throws SQLException
connection.putDescriptor(s, obj);
public void registerApiDescription(String s, short word0, short word1, String
s1)
connection.registerApiDescription(s, word0, word1, s1);
public void registerSQLType(String s, Class class1)
throws SQLException
connection.registerSQLType(s, class1);
public void registerSQLType(String s, String s1)
throws SQLException
connection.registerSQLType(s, s1);
public void registerTAFCallback(OracleOCIFailover oracleocifailover, Object
obj)
throws SQLException
connection.registerTAFCallback(oracleocifailover, obj);
public void rollback()
throws SQLException
connection.rollback();
public void setAutoClose(boolean flag)
throws SQLException
connection.setAutoClose(flag);
public void setAutoCommit(boolean flag)
throws SQLException
connection.setAutoCommit(flag);
public void setCatalog(String s)
throws SQLException
connection.setCatalog(s);
public void setCreateStatementAsRefCursor(boolean flag)
connection.setCreateStatementAsRefCursor(flag);
public void setDefaultExecuteBatch(int i)
throws SQLException
connection.setDefaultExecuteBatch(i);
public void setDefaultRowPrefetch(int i)
throws SQLException
connection.setDefaultRowPrefetch(i);
public void setExplicitCachingEnabled(boolean flag)
throws SQLException
connection.setExplicitCachingEnabled(flag);
public void setImplicitCachingEnabled(boolean flag)
throws SQLException
connection.setImplicitCachingEnabled(flag);
public void setIncludeSynonyms(boolean flag)
connection.setIncludeSynonyms(flag);
public void setReadOnly(boolean flag)
throws SQLException
connection.setReadOnly(flag);
public void setRemarksReporting(boolean flag)
connection.setRemarksReporting(flag);
public void setRestrictGetTables(boolean flag)
connection.setRestrictGetTables(flag);
public void setSessionTimeZone(String s)
throws SQLException
connection.setSessionTimeZone(s);
public void setStatementCacheSize(int i)
throws SQLException
connection.setStatementCacheSize(i);
public void setStmtCacheSize(int i)
throws SQLException
connection.setStmtCacheSize(i);
public void setStmtCacheSize(int i, boolean flag)
throws SQLException
connection.setStmtCacheSize(i, flag);
public void setSynchronousMode(boolean flag)
connection.setSynchronousMode(flag);
public void setTransactionIsolation(int i)
throws SQLException
connection.setTransactionIsolation(i);
public void setTypeMap(Map map)
throws SQLException
connection.setTypeMap(map);
public void setUsingXAFlag(boolean flag)
connection.setUsingXAFlag(flag);
public void setWrapper(OracleConnection oracleconnection)
connection.setWrapper(oracleconnection);
public void setXAErrorFlag(boolean flag)
connection.setXAErrorFlag(flag);
public void shutdown(int i)
throws SQLException
connection.shutdown(i);
public void startup(String s, int i)
throws SQLException
connection.startup(s, i);
Util class to get Wrapped Connections from
datasource
package ejbTesting;
// j2ee imports
import javax.naming.InitialContext;
import javax.sql.DataSource;
// sql imports
import java.sql.Connection;
// imports from Oracle Driver Classes
import oracle.jdbc.OracleConnection;
* Wrapper class for the DataSource Connection from Weblogic pool
public class DataSourceConnectionWrapper
// datasource variable
private static transient DataSource datasource = null;
private static String dbName = "jdbc/workbench";
* Method that returns the database connection
public static Connection getConnection()
try
// initialsing the datasource object
initialiseDataSource ();
// Getting a connection from the datasource
Connection con = datasource.getConnection( );
// wrapping it custom wrapper class and
// returning the connection object
return new WeblogicConnectionWrapper((OracleConnection)con);
catch(Exception exception )
exception.printStackTrace();
return null;
private static void initialiseDataSource( ) throws Exception
if ( datasource == null )
try
InitialContext ic = new InitialContext( );
datasource = (DataSource) ic.lookup( dbName );
catch (Exception ne )
throw new Exception( "NamingException while looking up DataSource with
JNDI name" +
dbName + ": \n" + ne.getMessage( ) );
Exception Stack Trace
The line 46 in DataSourceConnectionWrapper
corresponds to
return new WeblogicConnectionWrapper((OracleConnection)con);
Which I feel is logical as the connection which we get from Weblogic
datasource cannot be type casted to OracleConnection
java.lang.ClassCastException: weblogic.jdbc.pool.Connection
at ejbTesting.DataSourceConnectionWrapper.getConnection(DataSourceConnectionWrapper.java:46) -
Associate .indd file extension with CS6
I have not been able to associate the file extension with CS6 in Windows Vista. The .indd extension is already taken by another application, yet when I try to change it, it does not save.
While highly unlikely as the reason, Vista was not tested and is not supported for CS6.
What “other application” has the INDD association? Is it a different version of InDesign? Did you install the other version AFTER CS6?
Bob -
How to uninstall Pocket as no option in Safari Extensions with Yosemite OS?
How do I uninstall Pocket and icon from Safari as no option in Extensions with Yosemite OS?
Where you running Mavericks previously or an older version of OS X? If you were running Mavericks, download and run the combo updater.
OS X Mavericks 10.9.3 (Update (Combo)
http://support.apple.com/kb/DL1746
May 15, 2014
Combo updaters will install on the same version as they're applying--no need to roll back or do a clean install.
If you still have problems after running the combo updater, download EtreCheck copy the results to the Clipboard and paste here.
http://www.etresoft.com/etrecheck -
Hi everyone
Is it possible to make a CS extension with Flash professional instead of Flash Builder?Short answer is no.
Extension Builder (based on Flash Builder) provids full support for extension development.
Besides, you can use CSSDK.
http://www.adobe.com/devnet/creativesuite.html
http://blogs.adobe.com/cssdk/
http://forums.adobe.com/community/creativesuites/cs_sdk -
HT3775 I can not see a movie with .mov extension with the quick time player
i can not see a movie with .mov extension with the quick time player.
Hello ANVIRO
Could you please elaborate so i can help?
xeni -
Associate file extension with air app on Android
Hi,
I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.
In the .xml-file for the app, under the <android> tag I have written:
<activity>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="file" />
<data android:pathPattern=".*\\.csml" />
<data android:host="*" />
</intent-filter>
</activity>
Does anyone have an idea how this could be solved?
Thanks in advance
JensIf it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?
See also:
http://www.mail-archive.com/[email protected]/msg47862.html//www.mail-archive.com/[email protected]/msg47862.html
http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-ext ension -
How do you include kodo extensions with xdoclet 1.2-beta2?
Latest xdoclet version (1.2-beta2) has moved on from the kodo documentation
(not least the inclusion of a </kodo> ant tag) to the extent that the
documentation is misleading (at best).
a. The syntax seems to have changes
@jdo:* -> @jdo.*
b. @jdo:persit -> @jdo.persistence-capable
c. there doesn't seem to be any way to specify vendor extensions with the
latest xdoclet :((((((
ISTM that this is fundamental to how a kodo developer can customise the
..jdo
d. perhaps YOU could indicate what the </kodo> ant tag does - the xdoclet
team don't try :(
AFAIK there is a class tag @sql.table and a number of member @field tags
which get translated into vendor-specific extensions ... no docs of course
(PLEASE correct me if I'm wrong) ... that'd be too easy ;^(
Perhaps it's time to review the xdoclet instructions ;-)
MTIAThe documentation on xdoclet covers the Kodo integration we did
ourselves, using the previous version of xdoclet. Now it appears the
xdoclet team has written their own Kodo integration implementation for
xdoclet 1.2, but we had no part in it. It also looks like they've
changed the API sufficiently that our previous integration doesn't
work with xdoclet 1.2.
We have plans to integrate with the xdoclet 1.2, including working with
the xdoclet team if necessary. But for now, we can only support our own
integration with xdoclet 1.1, and we recommend users stick with that
version. -
I have attempted unsuccessfully to create a webpage template using Dreamweaver CS6. On investigation I found that my computer was interpreting the dwt. suffix as an AutoCAD template rather than a Dreamweaver template. I do have AutoCAD programmes on my computer and in that software dwt. is a valid suffix for templates. Please someone kindly tell me how to overcome this problem?
One way is to associate the extension with the relevant program as in Choose the apps Windows uses by default - Windows Help
Another way is to right click the template file and choose Open With->Dreamweaver
A third way, if you are running a PHP server is to give the temple a PHP extension as in myTemplate.dwt.php -
Possible to associate file extension with webstarted app?
A common property of microsoft apps is to associate file extensions with specifiec apps.
For example, when you double click on a .xl file, Excel is launched.
Can the same kind of thing be done for Webstarted apps? If so how?I have an idea on how to do this, but I have not tried it.
1. On first launch, the application does an "install" before starting the main screen.
2. The install checks the OS, and writes a .sh or .bat file to disk. That batch file runs the command-line to start the application. Hmm, but how does it pass along $*?
3. The install associates the proper file extension with the .bat file, and/or with the unix file manager software, and/or with IE, Netscape, and Mozilla.
Then, when a user clicks on a link to a document, or a file in the windows explorer, then the JWS application should lanch and load the file(s). -
IOS Native Extension with external Framework
Hi there,
I am developing a native extension for iOS based CityGrid framework. I compiled .a file and packaged it to ANE file. However when I am trying to compile the app, compiler shows me the error:
Error occurred while packaging the application:
Undefined symbols:
"_OBJC_CLASS_$_CityGrid", referenced from:
__objc_classrefs__DATA@0 in libcom.example.SomeAPI.a(SomeAPI.o)
ld: symbol(s) not found
Compilation failed while executing : ld64
I tried few options in XCode. However I still have the error.
Is anybody tried to do a native extension with external frameworks?How did you compile your ane file? I met same issue before.
adt -package -target ane myextension.ane extension.xml -swc mySwc.swc -platform iPhone-ARM library.swf libmylib.a -platformoptions myplatformoptions.xml
lnside myplatformoptions.xml, I linked all the framework and shared libraries, as following
<platform xmlns="http://ns.adobe.com/air/extension/3.1">
<sdkVersion>5.1</sdkVersion>
<linkerOptions>
<!-- to use the CoreMotion framework -->
<option>-framework CoreMotion<option>
<!-- to link with the libiconv.dylib -->
<option>-liconv</option>
</linkerOptions>
</platform>
Please let me know, if it does work. -
XML form: associate the file extension with an image
Hello!
I am creating some XML forms and i have to ulpoad a file.This isn´t a problem, but in RenderListItem I have to associate the file extension with an image(For example .doc with Word icon).Is it possible to do this? ThanksHello ,
I'm sorry, but this is not covered within the standart. You have the opportunity to do so in normal LayoutSets but not within a link in XML Forms. Maybe it's a workaround for you to provide a image selection for the author in the edit form, to select such an image manualy.
hope this helps,
Axel
Please consider rewarding points to helpful answers on SDN
Maybe you are looking for
-
Still having a problem with Themes in imovie hd 6
I am having difficulty placing a Theme segment into the movie timeline. It seems to render then it disappears. Steps I have taken to remedy this situation: (1) Checked for conflicting software (plug-in) in QuickTime and iMovie (2) Created another use
-
Is it possible to record the output of a Windows Laptop in iMove to create training videos?
I have been asked by my company to look at creating some training videos of the software we make. The software itself runs on a windows platform. So I am looking for a way to capture the video from my work windows 7 laptop and import this into iMovie
-
iPad sync to the iCloud account
-
I have purchased Adobe Professional for another PC, unfortunately that PC has died and I want to get Adobe on to this PC, any ideas?
-
Hi we are creating a vendor down payment using F-48. However, on the vendor line item, system is asking for tax code field as being compulsory. I have checked the field status of the Reconcilliation Account for Vendor and the Posting Key. The Tax cod